Class DelegatingJoinable

  • All Implemented Interfaces:
    Serializable, Joinable

    public class DelegatingJoinable
    extends Object
    implements Joinable
    Delegates to another Joinable after doing column translation. Useful for joins that are not managed by any fields on the joined-from side. For example, a vertical class mapping manages foreign key columns linking to the superclass table. It needs to use the joinables of the superclass to actually extract the column values from field values and so forth, but in order for other mappings to join to its foreign key columns it needs joinables of its own. So it creates delegating joinables.
    Author:
    Abe White
    See Also:
    Serialized Form
    • Constructor Detail

      • DelegatingJoinable

        public DelegatingJoinable​(Joinable join,
                                  ForeignKey fk)
        Constructor.
        Parameters:
        join - the mapping to delegate to
        fk - the foreign key to use to translate any given columns to the given delegate's columns
      • DelegatingJoinable

        public DelegatingJoinable​(Joinable join,
                                  Column[] cols)
        Constructor.
        Parameters:
        join - the mapping to delegate to
        cols - translated columns