Top Description Fields Constructors Methods
org.hibernate.loader.custom

public Class ColumnCollectionAliases

extends Object
implements CollectionAliases
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.CollectionAliases
Imports
java.util.Map, org.hibernate.loader.CollectionAliases, org.hibernate.persister.collection.SQLLoadableCollection

CollectionAliases that uses column names instead of generated aliases. Aliases can still be overwritten via <return-property>
Author
Max Rydahl Andersen

Field Summary

Modifier and TypeField and Description
private final String[]
private final String
private final String[]
private final String[]
private Map<K, V>

Constructor Summary

AccessConstructor and Description
public
ColumnCollectionAliases(Map<K, V> userProvidedAliases, SQLLoadableCollection persister)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The uniqued column alias suffix.
getSuffix
()

Implements org.hibernate.loader.CollectionAliases.getSuffix.

Returns the suffix used to unique the column aliases for this particular alias set.
public String[]

Returns:

The element result-set column aliases.
getSuffixedElementAliases
()

Implements org.hibernate.loader.CollectionAliases.getSuffixedElementAliases.

Returns the suffixed result-set column-aliases for the columns making up the collection's elements.
public String

Returns:

The identifier result-set column aliases.
getSuffixedIdentifierAlias
()

Implements org.hibernate.loader.CollectionAliases.getSuffixedIdentifierAlias.

Returns the suffixed result-set column-aliases for the column defining the collection's identifier (if any).
public String[]

Returns:

The index result-set column aliases.
getSuffixedIndexAliases
()

Implements org.hibernate.loader.CollectionAliases.getSuffixedIndexAliases.

Returns the suffixed result-set column-aliases for the columns making up the collection's index (map or list).
public String[]

Returns:

The key result-set column aliases.
getSuffixedKeyAliases
()

Implements org.hibernate.loader.CollectionAliases.getSuffixedKeyAliases.

Returns the suffixed result-set column-aliases for columns making up the key for this collection (i.e., its FK to its owner).
private String
getUserProvidedAlias(String propertyPath, String defaultAlias)

private String[]
getUserProvidedAliases(String propertyPath, String[] defaultAliases)

private String
join(String[] aliases)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

elementAliasesback to summary
private final String[] elementAliases
identifierAliasback to summary
private final String identifierAlias
indexAliasesback to summary
private final String[] indexAliases
keyAliasesback to summary
private final String[] keyAliases
userProvidedAliasesback to summary
private Map<K, V> userProvidedAliases

Constructor Detail

ColumnCollectionAliasesback to summary
public ColumnCollectionAliases(Map<K, V> userProvidedAliases, SQLLoadableCollection persister)

Method Detail

getSuffixback to summary
public String getSuffix()

Implements org.hibernate.loader.CollectionAliases.getSuffix.

Returns the suffix used to unique the column aliases for this particular alias set.

Returns:String

The uniqued column alias suffix.

getSuffixedElementAliasesback to summary
public String[] getSuffixedElementAliases()

Implements org.hibernate.loader.CollectionAliases.getSuffixedElementAliases.

Returns the suffixed result-set column-aliases for the columns making up the collection's elements.

Returns:String[]

The element result-set column aliases.

getSuffixedIdentifierAliasback to summary
public String getSuffixedIdentifierAlias()

Implements org.hibernate.loader.CollectionAliases.getSuffixedIdentifierAlias.

Returns the suffixed result-set column-aliases for the column defining the collection's identifier (if any).

Returns:String

The identifier result-set column aliases.

getSuffixedIndexAliasesback to summary
public String[] getSuffixedIndexAliases()

Implements org.hibernate.loader.CollectionAliases.getSuffixedIndexAliases.

Returns the suffixed result-set column-aliases for the columns making up the collection's index (map or list).

Returns:String[]

The index result-set column aliases.

getSuffixedKeyAliasesback to summary
public String[] getSuffixedKeyAliases()

Implements org.hibernate.loader.CollectionAliases.getSuffixedKeyAliases.

Returns the suffixed result-set column-aliases for columns making up the key for this collection (i.e., its FK to its owner).

Returns:String[]

The key result-set column aliases.

getUserProvidedAliasback to summary
private String getUserProvidedAlias(String propertyPath, String defaultAlias)
getUserProvidedAliasesback to summary
private String[] getUserProvidedAliases(String propertyPath, String[] defaultAliases)
joinback to summary
private String join(String[] aliases)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override