Top Description Methods
org.hibernate.persister.walking.spi

public Interface CollectionElementDefinition

Imports
org.hibernate.type.Type

Represents a collection element.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public CollectionDefinition

Returns:

the collection definition.
getCollectionDefinition
()

Returns the collection definition.

public Type

Returns:

the collection element type
getType
()

Returns the collection element type.

public AnyMappingDefinition

Returns:

the any mapping definition for the collection element.
toAnyMappingDefinition
()

If the element type returned by getType() is an org.hibernate.type.AnyType, then the any mapping definition for the collection element is returned; otherwise, IllegalStateException is thrown.

public CompositeCollectionElementDefinition

Returns:

the composite element definition for the collection element.
toCompositeElementDefinition
()

If the element type returned by getType() is a org.hibernate.type.CompositeType, then the composite element definition for the collection element is returned; otherwise, IllegalStateException is thrown.

public EntityDefinition

Returns:

the entity definition for the collection element.
toEntityDefinition
()

If the element type returned by getType() is an org.hibernate.type.EntityType, then the entity definition for the collection element is returned; otherwise, IllegalStateException is thrown.

Method Detail

getCollectionDefinitionback to summary
public CollectionDefinition getCollectionDefinition()

Returns the collection definition.

Returns:CollectionDefinition

the collection definition.

getTypeback to summary
public Type getType()

Returns the collection element type.

Returns:Type

the collection element type

toAnyMappingDefinitionback to summary
public AnyMappingDefinition toAnyMappingDefinition()

If the element type returned by getType() is an org.hibernate.type.AnyType, then the any mapping definition for the collection element is returned; otherwise, IllegalStateException is thrown.

Returns:AnyMappingDefinition

the any mapping definition for the collection element.

Exceptions
IllegalStateException:
if the collection element type returned by getType() is not of type org.hibernate.type.AnyType.
toCompositeElementDefinitionback to summary
public CompositeCollectionElementDefinition toCompositeElementDefinition()

If the element type returned by getType() is a org.hibernate.type.CompositeType, then the composite element definition for the collection element is returned; otherwise, IllegalStateException is thrown.

Returns:CompositeCollectionElementDefinition

the composite element definition for the collection element.

Exceptions
IllegalStateException:
if the collection element type returned by getType() is not of type org.hibernate.type.CompositeType.
toEntityDefinitionback to summary
public EntityDefinition toEntityDefinition()

If the element type returned by getType() is an org.hibernate.type.EntityType, then the entity definition for the collection element is returned; otherwise, IllegalStateException is thrown.

Returns:EntityDefinition

the entity definition for the collection element.

Exceptions
IllegalStateException:
if the collection element type returned by getType() is not of type org.hibernate.type.EntityType.