Package org.hibernate.mapping
Class List
- java.lang.Object
-
- org.hibernate.mapping.Collection
-
- org.hibernate.mapping.IndexedCollection
-
- org.hibernate.mapping.List
-
- All Implemented Interfaces:
Serializable
,Fetchable
,Filterable
,Value
- Direct Known Subclasses:
Array
public class List extends IndexedCollection
A mapping model object representing a collection of typeList
. A list mapping has a primary key consisting of the key columns + index column.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.mapping.IndexedCollection
DEFAULT_INDEX_COLUMN_NAME
-
Fields inherited from class org.hibernate.mapping.Collection
DEFAULT_ELEMENT_COLUMN_NAME, DEFAULT_KEY_COLUMN_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description List(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)
annotation bindingList(MetadataBuildingContext buildingContext, PersistentClass owner)
hbm.xml bindingprotected
List(List original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(ValueVisitor visitor)
List
copy()
int
getBaseIndex()
CollectionType
getDefaultCollectionType()
boolean
isList()
void
setBaseIndex(int baseIndex)
-
Methods inherited from class org.hibernate.mapping.IndexedCollection
getIndex, isIndexed, isSame, isSame, setIndex, validate
-
Methods inherited from class org.hibernate.mapping.Collection
addFilter, addManyToManyFilter, addSynchronizedTable, createAllKeys, createForeignKey, createUniqueKey, getBatchSize, getBuildingContext, getCacheConcurrencyStrategy, getCacheRegionName, getCollectionPersisterClass, getCollectionSemantics, getCollectionTable, getCollectionType, getColumnInsertability, getColumnIterator, getColumns, getColumnSpan, getColumnUpdateability, getComparator, getComparatorClassName, getCustomSQLDelete, getCustomSQLDeleteAll, getCustomSQLDeleteAllCheckStyle, getCustomSQLDeleteCheckStyle, getCustomSQLInsert, getCustomSQLInsertCheckStyle, getCustomSQLUpdate, getCustomSQLUpdateCheckStyle, getElement, getFetchMode, getFilters, getKey, getLoaderName, getManyToManyFilters, getManyToManyOrdering, getManyToManyWhere, getMappedByProperty, getMetadata, getOrderBy, getOwner, getOwnerEntityName, getReferencedPropertyName, getRole, getSelectables, getServiceRegistry, getSynchronizedTables, getTable, getType, getTypeName, getTypeParameters, getWhere, hasAnyInsertableColumns, hasAnyUpdatableColumns, hasFormula, hasOrder, hasOrphanDelete, isAlternateUniqueKey, isArray, isColumnInsertable, isColumnUpdateable, isCustomDeleteAllCallable, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isExtraLazy, isIdentified, isInverse, isLazy, isMap, isMutable, isNullable, isOneToMany, isOptimisticLocked, isPrimitiveArray, isSame, isSame, isSet, isSimpleValue, isSorted, isSubselectLoadable, isValid, setBatchSize, setCacheConcurrencyStrategy, setCacheRegionName, setCollectionPersisterClass, setCollectionTable, setComparator, setComparatorClassName, setCustomSQLDelete, setCustomSQLDeleteAll, setCustomSQLInsert, setCustomSQLUpdate, setElement, setExtraLazy, setFetchMode, setInverse, setKey, setLazy, setLoaderName, setManyToManyOrdering, setManyToManyWhere, setMappedByProperty, setMutable, setOptimisticLocked, setOrderBy, setOrphanDelete, setReferencedPropertyName, setRole, setSorted, setSubselectLoadable, setTypeName, setTypeParameters, setTypeParameters, setTypeUsingReflection, setWhere, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.mapping.Value
checkColumnDuplication, getConstraintColumns, getExtraCreateTableInfo, getSelectableType, getVirtualSelectables
-
-
-
-
Constructor Detail
-
List
public List(MetadataBuildingContext buildingContext, PersistentClass owner)
hbm.xml binding
-
List
public List(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)
annotation binding
-
List
protected List(List original)
-
-
Method Detail
-
copy
public List copy()
-
isList
public boolean isList()
- Overrides:
isList
in classIndexedCollection
-
getDefaultCollectionType
public CollectionType getDefaultCollectionType() throws MappingException
- Specified by:
getDefaultCollectionType
in classCollection
- Throws:
MappingException
-
accept
public Object accept(ValueVisitor visitor)
-
getBaseIndex
public int getBaseIndex()
-
setBaseIndex
public void setBaseIndex(int baseIndex)
-
-