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:
java.io.Serializable
,Fetchable
,Filterable
,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 Constructor Description Array(MetadataBuildingContext buildingContext, PersistentClass owner)
Array(MetadataImplementor metadata, PersistentClass owner)
Deprecated.UseArray(MetadataBuildingContext, PersistentClass)
instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
accept(ValueVisitor visitor)
CollectionType
getDefaultCollectionType()
java.lang.Class
getElementClass()
java.lang.String
getElementClassName()
boolean
isArray()
void
setElementClassName(java.lang.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, createAllKeys, createForeignKey, getBatchSize, getCacheConcurrencyStrategy, getCacheRegionName, getCollectionPersisterClass, getCollectionTable, getCollectionType, getColumnInsertability, getColumnIterator, 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, getServiceRegistry, getSynchronizedTables, getTable, getType, getTypeName, getTypeParameters, getWhere, hasFormula, hasOrder, hasOrphanDelete, isAlternateUniqueKey, 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, setOwner, setReferencedPropertyName, setRole, setSorted, setSubselectLoadable, setTypeName, setTypeParameters, setTypeParameters, setTypeUsingReflection, setWhere, toString
-
-
-
-
Constructor Detail
-
Array
@Deprecated public Array(MetadataImplementor metadata, PersistentClass owner)
Deprecated.UseArray(MetadataBuildingContext, PersistentClass)
instead.
-
Array
public Array(MetadataBuildingContext buildingContext, PersistentClass owner)
-
-
Method Detail
-
getElementClass
public java.lang.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 java.lang.String getElementClassName()
- Returns:
- Returns the elementClassName.
-
setElementClassName
public void setElementClassName(java.lang.String elementClassName)
- Parameters:
elementClassName
- The elementClassName to set.
-
accept
public java.lang.Object accept(ValueVisitor visitor)
-
-