public final class JoinHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String[] |
getAliasedLHSColumnNames(AssociationType associationType,
String columnQualifier,
int propertyIndex,
int begin,
OuterJoinLoadable lhsPersister,
Mapping mapping)
Get the qualified (prefixed by alias) names of the 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 qualified (prefixed by alias) names of the 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 unqualified names of the columns of the owning entity which are to be used in the join.
|
static String |
getLHSTableName(AssociationType type,
int propertyIndex,
OuterJoinLoadable lhsPersister)
Determine the name of the table that is the left-hand-side of the join.
|
static String[] |
getRHSColumnNames(AssociationType type,
SessionFactoryImplementor factory)
Get the columns of the associated table which are to be used in the join
|
public static String[] getAliasedLHSColumnNames(AssociationType type, String alias, int property, OuterJoinLoadable lhsPersister, Mapping mapping)
type
- The association type for the association that represents the joinalias
- The left-hand side table aliasproperty
- The index of the property that represents the association/joinlhsPersister
- The persister for the left-hand side of the association/joinmapping
- The mapping (typically the SessionFactory).public static String[] getLHSColumnNames(AssociationType type, int property, OuterJoinLoadable lhsPersister, Mapping mapping)
type
- The association type for the association that represents the joinproperty
- The name of the property that represents the association/joinlhsPersister
- The persister for the left-hand side of the association/joinmapping
- The mapping (typically the SessionFactory).public static String[] getAliasedLHSColumnNames(AssociationType associationType, String columnQualifier, int propertyIndex, int begin, OuterJoinLoadable lhsPersister, Mapping mapping)
associationType
- The association type for the association that represents the joincolumnQualifier
- The left-hand side table aliaspropertyIndex
- The index of the property that represents the association/joinbegin
- The index for any nested (composites) attributeslhsPersister
- The persister for the left-hand side of the association/joinmapping
- The mapping (typically the SessionFactory).public static String[] getLHSColumnNames(AssociationType type, int property, int begin, OuterJoinLoadable lhsPersister, Mapping mapping)
type
- The type representing the joinproperty
- The property index for the association typebegin
- ?lhsPersister
- The persister for the left-hand-side of the joinmapping
- The mapping object (typically the SessionFactory)public static String getLHSTableName(AssociationType type, int propertyIndex, OuterJoinLoadable lhsPersister)
type
- The type representing the joinpropertyIndex
- The property index for the typelhsPersister
- The persister for the left-hand-side of the joinpublic static String[] getRHSColumnNames(AssociationType type, SessionFactoryImplementor factory)
type
- The typefactory
- The SessionFactoryCopyright © 2019 JBoss by Red Hat. All rights reserved.