接口 CollectionElementDefinition
-
public interface CollectionElementDefinitionRepresents a collection element.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
-
-
-
方法详细资料
-
getCollectionDefinition
CollectionDefinition getCollectionDefinition()
Returns the collection definition.- 返回:
- the collection definition.
-
getType
Type getType()
Returns the collection element type.- 返回:
- the collection element type
-
toAnyMappingDefinition
AnyMappingDefinition toAnyMappingDefinition()
If the element type returned bygetType()is anAnyType, then the any mapping definition for the collection element is returned; otherwise, IllegalStateException is thrown.- 返回:
- the any mapping definition for the collection element.
- 抛出:
IllegalStateException- if the collection element type returned bygetType()is not of typeAnyType.
-
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.- 返回:
- the entity definition for the collection element.
- 抛出:
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.- 返回:
- the composite element definition for the collection element.
- 抛出:
IllegalStateException- if the collection element type returned bygetType()is not of typeCompositeType.
-
-