Interface CollectionElementDefinition
-
public interface CollectionElementDefinitionRepresents a collection element.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CollectionDefinitiongetCollectionDefinition()Returns the collection definition.TypegetType()Returns the collection element type.AnyMappingDefinitiontoAnyMappingDefinition()CompositeCollectionElementDefinitiontoCompositeElementDefinition()If the element type returned bygetType()is aCompositeType, then the composite element definition for the collection element is returned; otherwise, IllegalStateException is thrown.EntityDefinitiontoEntityDefinition()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.
-
-