Top Description Fields Constructors Methods
org.hibernate.loader

public Class GeneratedCollectionAliases

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

CollectionAliases which handles the logic of selecting user provided aliases (via return-property), before using the default aliases.
Authors
Steve Ebersole, Max Rydahl Andersen

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
GeneratedCollectionAliases(Map<K, V> userProvidedAliases, CollectionPersister persister, String suffix)

public

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
suffixback to summary
private final String suffix
userProvidedAliasesback to summary
private Map<K, V> userProvidedAliases

Constructor Detail

GeneratedCollectionAliasesback to summary
public GeneratedCollectionAliases(Map<K, V> userProvidedAliases, CollectionPersister persister, String suffix)
GeneratedCollectionAliasesback to summary
public GeneratedCollectionAliases(CollectionPersister persister, String string)

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