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

public Class EntityReferenceAliasesImpl

extends Object
implements EntityReferenceAliases
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.plan.exec.spi.EntityReferenceAliases
Imports
org.hibernate.loader.EntityAliases, org.hibernate.loader.plan.exec.spi.EntityReferenceAliases

Authors
Gail Badner, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final EntityAliases
private final String

Constructor Summary

AccessConstructor and Description
public
EntityReferenceAliasesImpl(String tableAlias, EntityAliases columnAliases)

Method Summary

Modifier and TypeMethod and Description
public EntityAliases
getColumnAliases()

Implements org.hibernate.loader.plan.exec.spi.EntityReferenceAliases.getColumnAliases.

Obtain the column aliases for the select fragment columns associated with the described entity reference.
public String
getTableAlias()

Implements org.hibernate.loader.plan.exec.spi.EntityReferenceAliases.getTableAlias.

Obtain the table alias used for referencing the table of the EntityReference.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnAliasesback to summary
private final EntityAliases columnAliases
tableAliasback to summary
private final String tableAlias

Constructor Detail

EntityReferenceAliasesImplback to summary
public EntityReferenceAliasesImpl(String tableAlias, EntityAliases columnAliases)

Method Detail

getColumnAliasesback to summary
public EntityAliases getColumnAliases()

Implements org.hibernate.loader.plan.exec.spi.EntityReferenceAliases.getColumnAliases.

Doc from org.hibernate.loader.plan.exec.spi.EntityReferenceAliases.getColumnAliases.

Obtain the column aliases for the select fragment columns associated with the described entity reference. These are the column renames by which the values can be extracted from the SQL result set.

Returns:EntityAliases

The column aliases associated with the described entity reference.

Annotations
@Override
getTableAliasback to summary
public String getTableAlias()

Implements org.hibernate.loader.plan.exec.spi.EntityReferenceAliases.getTableAlias.

Doc from org.hibernate.loader.plan.exec.spi.EntityReferenceAliases.getTableAlias.

Obtain the table alias used for referencing the table of the EntityReference.

Note that this currently just returns the "root alias" whereas sometimes an entity reference covers multiple tables. todo : to help manage this, consider a solution like TableAliasRoot from the initial ANTLR re-work see http://anonsvn.jboss.org/repos/hibernate/core/branches/antlr3/src/main/java/org/hibernate/sql/ast/alias/TableAliasGenerator.java

Returns:String

The (root) table alias for the described entity reference.

Annotations
@Override