Package org.hibernate.mapping
Class IndexedCollection
- java.lang.Object
-
- org.hibernate.mapping.Collection
-
- org.hibernate.mapping.IndexedCollection
-
- All Implemented Interfaces:
Serializable,Fetchable,Filterable,Value
public abstract class IndexedCollection extends Collection
Indexed collections include Lists, Maps, arrays and primitive arrays.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_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 IndexedCollection(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)IndexedCollection(MetadataBuildingContext buildingContext, PersistentClass owner)protectedIndexedCollection(IndexedCollection original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValuegetIndex()booleanisIndexed()booleanisList()booleanisSame(Collection other)booleanisSame(IndexedCollection other)voidsetIndex(Value index)voidvalidate(Mapping mapping)-
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, getDefaultCollectionType, 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
accept, copy, getConstraintColumns, getExtraCreateTableInfo, getSelectableType, getVirtualSelectables
-
-
-
-
Field Detail
-
DEFAULT_INDEX_COLUMN_NAME
public static final String DEFAULT_INDEX_COLUMN_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IndexedCollection
public IndexedCollection(MetadataBuildingContext buildingContext, PersistentClass owner)
-
IndexedCollection
public IndexedCollection(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)
-
IndexedCollection
protected IndexedCollection(IndexedCollection original)
-
-
Method Detail
-
getIndex
public Value getIndex()
-
setIndex
public void setIndex(Value index)
-
isIndexed
public final boolean isIndexed()
- Overrides:
isIndexedin classCollection
-
isSame
public boolean isSame(Collection other)
- Overrides:
isSamein classCollection
-
isSame
public boolean isSame(IndexedCollection other)
-
validate
public void validate(Mapping mapping) throws MappingException
- Overrides:
validatein classCollection- Throws:
MappingException
-
isList
public boolean isList()
-
-