类 CollectionReferenceAliasesImpl
- java.lang.Object
-
- org.hibernate.loader.plan.exec.internal.CollectionReferenceAliasesImpl
-
- 所有已实现的接口:
CollectionReferenceAliases
public class CollectionReferenceAliasesImpl extends Object implements CollectionReferenceAliases
- 作者:
- Steve Ebersole, Gail Badner
-
-
构造器概要
构造器 构造器 说明 CollectionReferenceAliasesImpl(String tableAlias, String manyToManyAssociationTableAlias, CollectionAliases collectionAliases, EntityReferenceAliases entityElementAliases)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CollectionAliasesgetCollectionColumnAliases()Obtain the aliases for the columns related to the collection structure such as the FK, index/key, or identifier (idbag).StringgetCollectionTableAlias()Obtain the table alias used for the collection table of the CollectionReference.StringgetElementTableAlias()Obtain the alias of the table that contains the collection element values.EntityReferenceAliasesgetEntityElementAliases()Obtain the entity reference aliases for the element values when the element of the collection is an entity.
-
-
-
构造器详细资料
-
CollectionReferenceAliasesImpl
public CollectionReferenceAliasesImpl(String tableAlias, String manyToManyAssociationTableAlias, CollectionAliases collectionAliases, EntityReferenceAliases entityElementAliases)
-
-
方法详细资料
-
getCollectionTableAlias
public String getCollectionTableAlias()
从接口复制的说明:CollectionReferenceAliasesObtain the table alias used for the collection table of the CollectionReference.- 指定者:
getCollectionTableAlias在接口中CollectionReferenceAliases- 返回:
- The collection table alias.
-
getElementTableAlias
public String getElementTableAlias()
从接口复制的说明:CollectionReferenceAliasesObtain the alias of the table that contains the collection element values. Unlike in the legacy Loader case, CollectionReferences in the LoadPlan code refer to both the collection and the elements *always*. In Loader the elements were handled by EntityPersister associations entries for one-to-many and many-to-many. In LoadPlan we need to describe the collection table/columns as well as the entity element table/columns. For "basic collections" and one-to-many collections, the "element table" and the "collection table" are actually the same. For the many-to-many case this will be different and we need to track it separately.- 指定者:
getElementTableAlias在接口中CollectionReferenceAliases- 返回:
- The element table alias. Only different from
CollectionReferenceAliases.getCollectionTableAlias()in the case of many-to-many.
-
getCollectionColumnAliases
public CollectionAliases getCollectionColumnAliases()
从接口复制的说明:CollectionReferenceAliasesObtain the aliases for the columns related to the collection structure such as the FK, index/key, or identifier (idbag).- 指定者:
getCollectionColumnAliases在接口中CollectionReferenceAliases- 返回:
- The collection column aliases.
-
getEntityElementAliases
public EntityReferenceAliases getEntityElementAliases()
从接口复制的说明:CollectionReferenceAliasesObtain the entity reference aliases for the element values when the element of the collection is an entity.- 指定者:
getEntityElementAliases在接口中CollectionReferenceAliases- 返回:
- The entity reference aliases for the entity element;
nullif the collection element is not an entity.
-
-