类 JoinHelper
- java.lang.Object
-
- org.hibernate.engine.internal.JoinHelper
-
public final class JoinHelper extends Object
Helper for dealing with joins.- 作者:
- Gavin King
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 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 joinstatic 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 joinstatic 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 joinstatic 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 StringgetLHSTableName(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
-
-
-
方法详细资料
-
getAliasedLHSColumnNames
public 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- 参数:
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).- 返回:
- The qualified column names.
-
getLHSColumnNames
public 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.- 参数:
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).- 返回:
- The unqualified column names.
-
getAliasedLHSColumnNames
public 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- 参数:
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).- 返回:
- The qualified column names.
-
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- 参数:
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)- 返回:
- The columns for the left-hand-side of the join
-
getLHSTableName
public static String getLHSTableName(AssociationType type, int propertyIndex, OuterJoinLoadable lhsPersister)
Determine the name of the table that is the left-hand-side of the join. Usually this is the name of the main table from the left-hand-side persister. But that is not the case with property-refs.- 参数:
type- The type representing the joinpropertyIndex- The property index for the typelhsPersister- The persister for the left-hand-side of the join- 返回:
- The table name
-
getRHSColumnNames
public static String[] getRHSColumnNames(AssociationType type, SessionFactoryImplementor factory)
Get the columns of the associated table which are to be used in the join- 参数:
type- The typefactory- The SessionFactory- 返回:
- The columns for the right-hand-side of the join
-
-