Top Fields Constructors Methods
org.hibernate.loader.plan.exec.internal

public Class CollectionReferenceAliasesImpl

extends Object
implements CollectionReferenceAliases
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases
Imports
org.hibernate.internal.util.StringHelper, org.hibernate.loader.CollectionAliases, org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases, .EntityReferenceAliases

Authors
Steve Ebersole, Gail Badner

Field Summary

Modifier and TypeField and Description
private final CollectionAliases
private final EntityReferenceAliases
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
CollectionReferenceAliasesImpl(String tableAlias, String manyToManyAssociationTableAlias, CollectionAliases collectionAliases, EntityReferenceAliases entityElementAliases)

Method Summary

Modifier and TypeMethod and Description
public CollectionAliases
getCollectionColumnAliases()

Implements org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.getCollectionColumnAliases.

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

Implements org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.getCollectionTableAlias.

Obtain the table alias used for the collection table of the CollectionReference.
public String
getElementTableAlias()

Implements org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.getElementTableAlias.

Obtain the alias of the table that contains the collection element values.
public EntityReferenceAliases
getEntityElementAliases()

Implements org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.getEntityElementAliases.

Obtain the entity reference aliases for the element values when the element of the collection is an entity.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

collectionAliasesback to summary
private final CollectionAliases collectionAliases
entityElementAliasesback to summary
private final EntityReferenceAliases entityElementAliases
manyToManyAssociationTableAliasback to summary
private final String manyToManyAssociationTableAlias
tableAliasback to summary
private final String tableAlias

Constructor Detail

CollectionReferenceAliasesImplback to summary
public CollectionReferenceAliasesImpl(String tableAlias, String manyToManyAssociationTableAlias, CollectionAliases collectionAliases, EntityReferenceAliases entityElementAliases)

Method Detail

getCollectionColumnAliasesback to summary
public CollectionAliases getCollectionColumnAliases()

Implements org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.getCollectionColumnAliases.

Doc from org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.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.

Annotations
@Override
getCollectionTableAliasback to summary
public String getCollectionTableAlias()

Implements org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.getCollectionTableAlias.

Doc from org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.getCollectionTableAlias.

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

Returns:String

The collection table alias.

Annotations
@Override
getElementTableAliasback to summary
public String getElementTableAlias()

Implements org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.getElementTableAlias.

Doc from org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.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.

Annotations
@Override
getEntityElementAliasesback to summary
public EntityReferenceAliases getEntityElementAliases()

Implements org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.getEntityElementAliases.

Doc from org.hibernate.loader.plan.exec.spi.CollectionReferenceAliases.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.

Annotations
@Override