org.hibernate.loader.custom
Class ColumnCollectionAliases
java.lang.Object
org.hibernate.loader.custom.ColumnCollectionAliases
- All Implemented Interfaces:
- CollectionAliases
public class ColumnCollectionAliases
- extends java.lang.Object
- implements CollectionAliases
CollectionAliases that uses columnnames instead of generated aliases.
Aliases can still be overwritten via
- Author:
- Max Rydahl Andersen
Method Summary |
java.lang.String |
getSuffix()
Returns the suffix used to unique the column aliases for this particular alias set. |
java.lang.String[] |
getSuffixedElementAliases()
Returns the suffixed result-set column-aliases for the columns making up the collection's elements. |
java.lang.String |
getSuffixedIdentifierAlias()
Returns the suffixed result-set column-aliases for the column defining the collection's identifier (if any). |
java.lang.String[] |
getSuffixedIndexAliases()
Returns the suffixed result-set column-aliases for the collumns making up the collection's index (map or list). |
java.lang.String[] |
getSuffixedKeyAliases()
Returns the suffixed result-set column-aliases for columns making up the key for this collection (i.e., its FK to
its owner). |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ColumnCollectionAliases
public ColumnCollectionAliases(java.util.Map userProvidedAliases,
SQLLoadableCollection persister)
getSuffixedKeyAliases
public java.lang.String[] getSuffixedKeyAliases()
- Returns the suffixed result-set column-aliases for columns making up the key for this collection (i.e., its FK to
its owner).
- Specified by:
getSuffixedKeyAliases
in interface CollectionAliases
- Returns:
- The key result-set column aliases.
getSuffixedIndexAliases
public java.lang.String[] getSuffixedIndexAliases()
- Returns the suffixed result-set column-aliases for the collumns making up the collection's index (map or list).
- Specified by:
getSuffixedIndexAliases
in interface CollectionAliases
- Returns:
- The index result-set column aliases.
getSuffixedElementAliases
public java.lang.String[] getSuffixedElementAliases()
- Returns the suffixed result-set column-aliases for the columns making up the collection's elements.
- Specified by:
getSuffixedElementAliases
in interface CollectionAliases
- Returns:
- The element result-set column aliases.
getSuffixedIdentifierAlias
public java.lang.String getSuffixedIdentifierAlias()
- Returns the suffixed result-set column-aliases for the column defining the collection's identifier (if any).
- Specified by:
getSuffixedIdentifierAlias
in interface CollectionAliases
- Returns:
- The identifier result-set column aliases.
getSuffix
public java.lang.String getSuffix()
- Returns the suffix used to unique the column aliases for this particular alias set.
- Specified by:
getSuffix
in interface CollectionAliases
- Returns:
- The uniqued column alias suffix.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008 Hibernate.org. All Rights Reserved.