Top Description Fields Constructors Methods
org.hibernate.mapping

public Class List

extends IndexedCollection
Class Inheritance
Known Direct Subclasses
org.hibernate.mapping.Array
Imports
java.util.function.Supplier, org.hibernate.MappingException, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.resource.beans.spi.ManagedBean, org.hibernate.type.CollectionType, .ListType, org.hibernate.usertype.UserCollectionType

A mapping model object representing a collection of type java.util.List. A list mapping has a primary key consisting of the key columns + index column.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private int
Inherited from org.hibernate.mapping.IndexedCollection:
DEFAULT_INDEX_COLUMN_NAME

Constructor Summary

AccessConstructor and Description
public
List(MetadataBuildingContext buildingContext, PersistentClass owner)

hbm.xml binding

public
List(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)

annotation binding

protected
List(List original)

Method Summary

Modifier and TypeMethod and Description
public Object
public List
public int
public CollectionType
public boolean
public void
setBaseIndex(int baseIndex)

Inherited from org.hibernate.mapping.IndexedCollection:
createPrimaryKeygetIndexisIndexedisSameisSamesetIndexvalidate

Field Detail

baseIndexback to summary
private int baseIndex

Constructor Detail

Listback to summary
public List(MetadataBuildingContext buildingContext, PersistentClass owner)

hbm.xml binding

Listback to summary
public List(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)

annotation binding

Listback to summary
protected List(List original)

Method Detail

acceptback to summary
public Object accept(ValueVisitor visitor)

Implements org.hibernate.mapping.Value.accept.

copyback to summary
public List copy()

Implements org.hibernate.mapping.Value.copy.

Annotations
@Override
getBaseIndexback to summary
public int getBaseIndex()
getDefaultCollectionTypeback to summary
public CollectionType getDefaultCollectionType() throws MappingException

Implements abstract org.hibernate.mapping.Collection.getDefaultCollectionType.

isListback to summary
public boolean isList()

Overrides org.hibernate.mapping.IndexedCollection.isList.

setBaseIndexback to summary
public void setBaseIndex(int baseIndex)