Top Methods
org.hibernate.loader.plan.exec.spi

public Interface CollectionReferenceAliases

Known Direct Implementers
org.hibernate.loader.plan.exec.internal.CollectionReferenceAliasesImpl
Imports
org.hibernate.loader.CollectionAliases

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public CollectionAliases

Returns:

The collection column aliases.
getCollectionColumnAliases
()

Obtain the aliases for the columns related to the collection structure such as the FK, index/key, or identifier (idbag).

public String

Returns:

The collection table alias.
getCollectionTableAlias
()

Obtain the table alias used for the collection table of the CollectionReference.

public String

Returns:

The element table alias. Only different from getCollectionTableAlias() in the case of many-to-many.
getElementTableAlias
()

Obtain the alias of the table that contains the collection element values.

public EntityReferenceAliases

Returns:

The entity reference aliases for the entity element; null if the collection element is not an entity.
getEntityElementAliases
()

Obtain the entity reference aliases for the element values when the element of the collection is an entity.

Method Detail

getCollectionColumnAliasesback to summary
public CollectionAliases getCollectionColumnAliases()

Obtain the aliases for the columns related to the collection structure such as the FK, index/key, or identifier (idbag).

Returns:CollectionAliases

The collection column aliases.

getCollectionTableAliasback to summary
public String getCollectionTableAlias()

Obtain the table alias used for the collection table of the CollectionReference.

Returns:String

The collection table alias.

getElementTableAliasback to summary
public String getElementTableAlias()

Obtain 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.

Returns:String

The element table alias. Only different from getCollectionTableAlias() in the case of many-to-many.

getEntityElementAliasesback to summary
public EntityReferenceAliases getEntityElementAliases()

Obtain the entity reference aliases for the element values when the element of the collection is an entity.

Returns:EntityReferenceAliases

The entity reference aliases for the entity element; null if the collection element is not an entity.