Package org.hibernate.mapping
Class Array
- java.lang.Object
-
- org.hibernate.mapping.Collection
-
- org.hibernate.mapping.IndexedCollection
-
- org.hibernate.mapping.List
-
- org.hibernate.mapping.Array
-
- All Implemented Interfaces:
Serializable
,Fetchable
,Filterable
,SoftDeletable
,Value
- Direct Known Subclasses:
PrimitiveArray
public class Array extends List
An array 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 Array(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)
Array(MetadataBuildingContext buildingContext, PersistentClass owner)
protected
Array(Array original)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(ValueVisitor visitor)
Array
copy()
CollectionType
getDefaultCollectionType()
Class<?>
getElementClass()
String
getElementClassName()
boolean
isArray()
void
setElementClassName(String elementClassName)
-
Methods inherited from class org.hibernate.mapping.List
getBaseIndex, isList, setBaseIndex
-
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, enableSoftDelete, getBatchSize, getBuildingContext, getCacheConcurrencyStrategy, getCacheRegionName, getCollectionPersisterClass, getCollectionSemantics, getCollectionTable, getCollectionType, getColumnInsertability, getColumns, getColumnSpan, getColumnUpdateability, getComparator, getComparatorClassName, getCustomSQLDelete, getCustomSQLDeleteAll, getCustomSQLDeleteAllCheckStyle, getCustomSQLDeleteCheckStyle, getCustomSQLInsert, getCustomSQLInsertCheckStyle, getCustomSQLUpdate, getCustomSQLUpdateCheckStyle, getDeleteAllExpectation, getDeleteExpectation, getElement, getFetchMode, getFilters, getInsertExpectation, getKey, getLoaderName, getManyToManyFilters, getManyToManyOrdering, getManyToManyWhere, getMappedByProperty, getMetadata, getOrderBy, getOwner, getOwnerEntityName, getQueryCacheLayout, getReferencedPropertyName, getRole, getSelectables, getServiceRegistry, getSoftDeleteColumn, getSynchronizedTables, getTable, getType, getTypeName, getTypeParameters, getUpdateExpectation, getWhere, hasAnyInsertableColumns, hasAnyUpdatableColumns, hasFormula, hasOrder, hasOrphanDelete, isAlternateUniqueKey, 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, setDeleteAllExpectation, setDeleteExpectation, setElement, setExtraLazy, setFetchMode, setInsertExpectation, setInverse, setKey, setLazy, setLoaderName, setManyToManyOrdering, setManyToManyWhere, setMappedByProperty, setMutable, setOptimisticLocked, setOrderBy, setOrphanDelete, setQueryCacheLayout, setReferencedPropertyName, setRole, setSorted, setSubselectLoadable, setTypeName, setTypeParameters, setTypeParameters, setTypeUsingReflection, setUpdateExpectation, 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
-
Array
public Array(MetadataBuildingContext buildingContext, PersistentClass owner)
-
Array
public Array(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)
-
Array
protected Array(Array original)
-
-
Method Detail
-
getElementClass
public Class<?> getElementClass() throws MappingException
- Throws:
MappingException
-
getDefaultCollectionType
public CollectionType getDefaultCollectionType() throws MappingException
- Overrides:
getDefaultCollectionType
in classList
- Throws:
MappingException
-
isArray
public boolean isArray()
- Overrides:
isArray
in classCollection
-
getElementClassName
public String getElementClassName()
- Returns:
- Returns the elementClassName.
-
setElementClassName
public void setElementClassName(String elementClassName)
- Parameters:
elementClassName
- The elementClassName to set.
-
-