Package org.hibernate.metadata
Interface CollectionMetadata
- All Known Implementing Classes:
AbstractCollectionPersister,BasicCollectionPersister,OneToManyPersister
public interface CollectionMetadata
Exposes collection metadata to the application
-
Method Summary
Modifier and TypeMethodDescriptionThe collection element typeThe collection index type (or null if the collection has no index)The collection key typegetRole()The name of this collection rolebooleanhasIndex()Is this collection indexed?booleanisArray()Is the collection an array?booleanisLazy()Is the collection lazily initialized?booleanIs the collection a primitive array?
-
Method Details
-
getKeyType
Type getKeyType()The collection key type -
getElementType
Type getElementType()The collection element type -
getIndexType
Type getIndexType()The collection index type (or null if the collection has no index) -
hasIndex
boolean hasIndex()Is this collection indexed? -
getRole
String getRole()The name of this collection role -
isArray
boolean isArray()Is the collection an array? -
isPrimitiveArray
boolean isPrimitiveArray()Is the collection a primitive array? -
isLazy
boolean isLazy()Is the collection lazily initialized?
-