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

public Interface EntityReferenceAliases

Known Direct Implementers
org.hibernate.loader.plan.exec.internal.EntityReferenceAliasesImpl
Imports
org.hibernate.loader.EntityAliases

Aggregates the alias/suffix information in relation to an org.hibernate.loader.plan.spi.EntityReference todo : add a contract (interface) that can be shared by entity and collection alias info objects as lhs/rhs of a join ?
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public EntityAliases

Returns:

The column aliases associated with the described entity reference.
getColumnAliases
()

Obtain the column aliases for the select fragment columns associated with the described entity reference.

public String

Returns:

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

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

Method Detail

getColumnAliasesback to summary
public EntityAliases 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.

getTableAliasback to summary
public String 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.