public class LoadQueryAliasResolutionContextImpl extends Object implements LoadQueryAliasResolutionContext
Constructor and Description |
---|
LoadQueryAliasResolutionContextImpl(SessionFactoryImplementor sessionFactory,
int suffixSeed,
Map<Return,String[]> aliasesByReturn) |
Modifier and Type | Method and Description |
---|---|
String[] |
resolveAssociationAliasedLhsColumnNames(JoinableAssociation joinableAssociation)
Resolve the column aliases on the left-hand-side of the specified association.
|
String |
resolveAssociationLhsTableAlias(JoinableAssociation joinableAssociation)
Resolve the table alias on the left-hand-side of the specified association.
|
String |
resolveAssociationRhsTableAlias(JoinableAssociation joinableAssociation)
Resolve the table alias on the right-hand-side of the specified association.
|
CollectionAliases |
resolveCollectionColumnAliases(CollectionReference collectionReference)
Returns the description of the aliases in the JDBC ResultSet that identify values "belonging" to
the specified
CollectionReference . |
EntityAliases |
resolveCollectionElementColumnAliases(CollectionReference collectionReference)
If the elements of this collection are entities, this methods returns the JDBC ResultSet alias descriptions
for that entity;
null indicates a non-entity collection. |
String |
resolveCollectionReturnAlias(CollectionReturn collectionReturn)
Resolve the alias associated with the specified
CollectionReturn . |
String |
resolveCollectionTableAlias(CollectionReference collectionReference)
Resolve the SQL table alias for the specified
CollectionReference . |
EntityAliases |
resolveEntityColumnAliases(EntityReference entityReference)
Returns the description of the aliases in the JDBC ResultSet that identify values "belonging" to
an entity.
|
String |
resolveEntityReturnAlias(EntityReturn entityReturn)
Resolve the alias associated with the specified
EntityReturn . |
String |
resolveEntityTableAlias(EntityReference entityReference)
Resolve the SQL table alias for the specified
EntityReference . |
String[] |
resolveScalarReturnAliases(ScalarReturn scalarReturn)
Resolve the aliases associated with the specified
ScalarReturn . |
protected SessionFactoryImplementor |
sessionFactory() |
public LoadQueryAliasResolutionContextImpl(SessionFactoryImplementor sessionFactory, int suffixSeed, Map<Return,String[]> aliasesByReturn)
public String resolveEntityReturnAlias(EntityReturn entityReturn)
LoadQueryAliasResolutionContext
EntityReturn
.resolveEntityReturnAlias
in interface LoadQueryAliasResolutionContext
entityReturn
- - the EntityReturn
.EntityReturn
.public String resolveCollectionReturnAlias(CollectionReturn collectionReturn)
LoadQueryAliasResolutionContext
CollectionReturn
.resolveCollectionReturnAlias
in interface LoadQueryAliasResolutionContext
collectionReturn
- - the CollectionReturn
.CollectionReturn
.public String[] resolveScalarReturnAliases(ScalarReturn scalarReturn)
LoadQueryAliasResolutionContext
ScalarReturn
.resolveScalarReturnAliases
in interface LoadQueryAliasResolutionContext
scalarReturn
- - the ScalarReturn
.ScalarReturn
.public String resolveEntityTableAlias(EntityReference entityReference)
LoadQueryAliasResolutionContext
EntityReference
.resolveEntityTableAlias
in interface LoadQueryAliasResolutionContext
entityReference
- - the EntityReference
.EntityReference
.public EntityAliases resolveEntityColumnAliases(EntityReference entityReference)
LoadQueryAliasResolutionContext
resolveEntityColumnAliases
in interface LoadQueryAliasResolutionContext
entityReference
- - the EntityReference
for the entity.EntityReference
public String resolveCollectionTableAlias(CollectionReference collectionReference)
LoadQueryAliasResolutionContext
CollectionReference
.resolveCollectionTableAlias
in interface LoadQueryAliasResolutionContext
collectionReference
- - the CollectionReference
.CollectionReference
.public CollectionAliases resolveCollectionColumnAliases(CollectionReference collectionReference)
LoadQueryAliasResolutionContext
CollectionReference
.resolveCollectionColumnAliases
in interface LoadQueryAliasResolutionContext
CollectionReference
public EntityAliases resolveCollectionElementColumnAliases(CollectionReference collectionReference)
LoadQueryAliasResolutionContext
null
indicates a non-entity collection.resolveCollectionElementColumnAliases
in interface LoadQueryAliasResolutionContext
null
public String resolveAssociationRhsTableAlias(JoinableAssociation joinableAssociation)
LoadQueryAliasResolutionContext
resolveAssociationRhsTableAlias
in interface LoadQueryAliasResolutionContext
joinableAssociation
- - the joinable association.public String resolveAssociationLhsTableAlias(JoinableAssociation joinableAssociation)
LoadQueryAliasResolutionContext
resolveAssociationLhsTableAlias
in interface LoadQueryAliasResolutionContext
joinableAssociation
- - the joinable association.public String[] resolveAssociationAliasedLhsColumnNames(JoinableAssociation joinableAssociation)
LoadQueryAliasResolutionContext
resolveAssociationAliasedLhsColumnNames
in interface LoadQueryAliasResolutionContext
joinableAssociation
- - the joinable associationprotected SessionFactoryImplementor sessionFactory()
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.