Interface CollectionElementDefinition
-
public interface CollectionElementDefinition
Represents a collection element.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CollectionDefinition
getCollectionDefinition()
Returns the collection definition.Type
getType()
Returns the collection element type.AnyMappingDefinition
toAnyMappingDefinition()
CompositeCollectionElementDefinition
toCompositeElementDefinition()
If the element type returned bygetType()
is aCompositeType
, then the composite element definition for the collection element is returned; otherwise, IllegalStateException is thrown.EntityDefinition
toEntityDefinition()
If the element type returned bygetType()
is anEntityType
, then the entity definition for the collection element is returned; otherwise, IllegalStateException is thrown.
-
-
-
Method Detail
-
getCollectionDefinition
CollectionDefinition getCollectionDefinition()
Returns the collection definition.- Returns:
- the collection definition.
-
getType
Type getType()
Returns the collection element type.- Returns:
- the collection element type
-
toAnyMappingDefinition
AnyMappingDefinition toAnyMappingDefinition()
-
toEntityDefinition
EntityDefinition toEntityDefinition()
If the element type returned bygetType()
is anEntityType
, then the entity definition for the collection element is returned; otherwise, IllegalStateException is thrown.- Returns:
- the entity definition for the collection element.
- Throws:
java.lang.IllegalStateException
- if the collection element type returned bygetType()
is not of typeEntityType
.
-
toCompositeElementDefinition
CompositeCollectionElementDefinition toCompositeElementDefinition()
If the element type returned bygetType()
is aCompositeType
, then the composite element definition for the collection element is returned; otherwise, IllegalStateException is thrown.- Returns:
- the composite element definition for the collection element.
- Throws:
java.lang.IllegalStateException
- if the collection element type returned bygetType()
is not of typeCompositeType
.
-
-