org.hibernate.engine

Class JoinHelper


public final class JoinHelper
extends java.lang.Object

Author:
Gavin King

Method Summary

static String[]
getAliasedLHSColumnNames(AssociationType type, String alias, int property, int begin, OuterJoinLoadable lhsPersister, Mapping mapping)
Get the aliased columns of the owning entity which are to be used in the join
static String[]
getAliasedLHSColumnNames(AssociationType type, String alias, int property, OuterJoinLoadable lhsPersister, Mapping mapping)
Get the aliased columns of the owning entity which are to be used in the join
static String[]
getLHSColumnNames(AssociationType type, int property, int begin, OuterJoinLoadable lhsPersister, Mapping mapping)
Get the columns of the owning entity which are to be used in the join
static String[]
getLHSColumnNames(AssociationType type, int property, OuterJoinLoadable lhsPersister, Mapping mapping)
Get the columns of the owning entity which are to be used in the join
static String
getLHSTableName(AssociationType type, int property, OuterJoinLoadable lhsPersister)
static String[]
getRHSColumnNames(AssociationType type, SessionFactoryImplementor factory)
Get the columns of the associated table which are to be used in the join

Method Details

getAliasedLHSColumnNames

public static String[] getAliasedLHSColumnNames(AssociationType type,
                                                String alias,
                                                int property,
                                                int begin,
                                                OuterJoinLoadable lhsPersister,
                                                Mapping mapping)
Get the aliased columns of the owning entity which are to be used in the join

getAliasedLHSColumnNames

public static String[] getAliasedLHSColumnNames(AssociationType type,
                                                String alias,
                                                int property,
                                                OuterJoinLoadable lhsPersister,
                                                Mapping mapping)
Get the aliased columns of the owning entity which are to be used in the join

getLHSColumnNames

public static String[] getLHSColumnNames(AssociationType type,
                                         int property,
                                         int begin,
                                         OuterJoinLoadable lhsPersister,
                                         Mapping mapping)
Get the columns of the owning entity which are to be used in the join

getLHSColumnNames

public static String[] getLHSColumnNames(AssociationType type,
                                         int property,
                                         OuterJoinLoadable lhsPersister,
                                         Mapping mapping)
Get the columns of the owning entity which are to be used in the join

getLHSTableName

public static String getLHSTableName(AssociationType type,
                                     int property,
                                     OuterJoinLoadable lhsPersister)

getRHSColumnNames

public static String[] getRHSColumnNames(AssociationType type,
                                         SessionFactoryImplementor factory)
Get the columns of the associated table which are to be used in the join