Package org.hibernate.mapping
Class Map
- java.lang.Object
-
- org.hibernate.mapping.Collection
-
- org.hibernate.mapping.IndexedCollection
-
- org.hibernate.mapping.Map
-
- All Implemented Interfaces:
Serializable,Fetchable,Filterable,SoftDeletable,Value
public class Map extends IndexedCollection
A mapping model object representing a collection of typeMap. A map has a primary key consisting of the key columns + index columns.- 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 Map(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)Map(MetadataBuildingContext buildingContext, PersistentClass owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(ValueVisitor visitor)Mapcopy()voidcreateAllKeys()CollectionTypegetDefaultCollectionType()StringgetMapKeyPropertyName()booleanisMap()voidsetMapKeyPropertyName(String mapKeyPropertyName)-
Methods inherited from class org.hibernate.mapping.IndexedCollection
getIndex, isIndexed, isList, isSame, isSame, setIndex, validate
-
Methods inherited from class org.hibernate.mapping.Collection
addFilter, addManyToManyFilter, addSynchronizedTable, 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, isArray, isColumnInsertable, isColumnUpdateable, isCustomDeleteAllCallable, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isExtraLazy, isIdentified, isInverse, isLazy, 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
-
Map
public Map(MetadataBuildingContext buildingContext, PersistentClass owner)
-
Map
public Map(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)
-
-
Method Detail
-
copy
public Map copy()
-
isMap
public boolean isMap()
- Overrides:
isMapin classCollection
-
getMapKeyPropertyName
public String getMapKeyPropertyName()
-
setMapKeyPropertyName
public void setMapKeyPropertyName(String mapKeyPropertyName)
-
getDefaultCollectionType
public CollectionType getDefaultCollectionType()
- Specified by:
getDefaultCollectionTypein classCollection
-
createAllKeys
public void createAllKeys() throws MappingException- Overrides:
createAllKeysin classCollection- Throws:
MappingException
-
accept
public Object accept(ValueVisitor visitor)
-
-