public interface CollectionIndexDefinition
Modifier and Type | Method and Description |
---|---|
CollectionDefinition |
getCollectionDefinition()
Returns the collection definition.
|
Type |
getType()
Returns the collection index type.
|
AnyMappingDefinition |
toAnyMappingDefinition()
|
CompositionDefinition |
toCompositeDefinition()
If the index type returned by
getType() is a
CompositeType , then the composite
index definition for the collection index is returned;
otherwise, IllegalStateException is thrown. |
EntityDefinition |
toEntityDefinition()
If the index type returned by
getType() is an
EntityType , then the entity
definition for the collection index is returned;
otherwise, IllegalStateException is thrown. |
CollectionDefinition getCollectionDefinition()
Type getType()
EntityDefinition toEntityDefinition()
getType()
is an
EntityType
, then the entity
definition for the collection index is returned;
otherwise, IllegalStateException is thrown.IllegalStateException
- if the collection index type
returned by getType()
is not of type
EntityType
.CompositionDefinition toCompositeDefinition()
getType()
is a
CompositeType
, then the composite
index definition for the collection index is returned;
otherwise, IllegalStateException is thrown.IllegalStateException
- if the collection index type
returned by getType()
is not of type
CompositeType
.AnyMappingDefinition toAnyMappingDefinition()
getType()
is an
AnyType
, then the any mapping
definition for the collection index is returned;
otherwise, IllegalStateException is thrown.IllegalStateException
- if the collection index type
returned by getType()
is not of type
AnyType
.Copyright © 2016 JBoss by Red Hat. All rights reserved.