Top Description Methods
org.hibernate.metadata

public Interface CollectionMetadata

Known Direct Subinterfaces
org.hibernate.persister.collection.DeprecatedCollectionStuff
Annotations
@Deprecated
since:6.0
Imports
org.hibernate.type.Type

Deprecated

since 6.0.

Use Hibernate's mapping model org.hibernate.metamodel.MappingMetamodel

Exposes collection metadata to the application
Author
Gavin King

Method Summary

Modifier and TypeMethod and Description
public Type
getElementType()

The collection element type

public Type
getIndexType()

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

public Type
getKeyType()

The collection key type

public String
getRole()

The name of this collection role

public boolean
hasIndex()

Is this collection indexed?

public boolean
isArray()

Is the collection an array?

public boolean
isLazy()

Is the collection lazily initialized?

public boolean
isPrimitiveArray()

Is the collection a primitive array?

Method Detail

getElementTypeback to summary
public Type getElementType()

The collection element type

getIndexTypeback to summary
public Type getIndexType()

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

getKeyTypeback to summary
public Type getKeyType()

The collection key type

getRoleback to summary
public String getRole()

The name of this collection role

hasIndexback to summary
public boolean hasIndex()

Is this collection indexed?

isArrayback to summary
public boolean isArray()

Is the collection an array?

isLazyback to summary
public boolean isLazy()

Is the collection lazily initialized?

isPrimitiveArrayback to summary
public boolean isPrimitiveArray()

Is the collection a primitive array?