站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

CollectionMetadata (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.metadata
Interface CollectionMetadata

All Known Implementing Classes:
AbstractCollectionPersister

public interface CollectionMetadata

Exposes collection metadata to the application

Author:
Gavin King

Method Summary
 Type getElementType()
          The collection element type
 Type getIndexType()
          The collection index type (or null if the collection has no index)
 Type getKeyType()
          The collection key type
 String getRole()
          The name of this collection role
 boolean hasIndex()
          Is this collection indexed?
 boolean isArray()
          Is the collection an array?
 boolean isLazy()
          Is the collection lazily initialized?
 boolean isPrimitiveArray()
          Is the collection a primitive array?
 

Method Detail

getKeyType

public Type getKeyType()
The collection key type


getElementType

public Type getElementType()
The collection element type


getIndexType

public Type getIndexType()
The collection index type (or null if the collection has no index)


hasIndex

public boolean hasIndex()
Is this collection indexed?


getRole

public String getRole()
The name of this collection role


isArray

public boolean isArray()
Is the collection an array?


isPrimitiveArray

public boolean isPrimitiveArray()
Is the collection a primitive array?


isLazy

public boolean isLazy()
Is the collection lazily initialized?