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
,Value
public class Map extends IndexedCollection
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(MetadataBuildingContext buildingContext, PersistentClass owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(ValueVisitor visitor)
void
createAllKeys()
CollectionSemantics
getDefaultCollectionSemantics()
CollectionType
getDefaultCollectionType()
String
getMapKeyPropertyName()
boolean
isMap()
void
setMapKeyPropertyName(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, createForeignKey, getBatchSize, getBuildingContext, getCacheConcurrencyStrategy, getCacheRegionName, getCollectionPersisterClass, getCollectionSemantics, 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, getSelectables, getServiceRegistry, getSynchronizedTables, getTable, getType, getTypeConfiguration, getTypeName, getTypeParameters, getWhere, hasAnyInsertableColumns, hasAnyUpdatableColumns, hasFormula, hasOrder, hasOrphanDelete, isAlternateUniqueKey, isArray, 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, 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
-
Map
public Map(MetadataBuildingContext buildingContext, PersistentClass owner)
-
-
Method Detail
-
isMap
public boolean isMap()
- Overrides:
isMap
in classCollection
-
getMapKeyPropertyName
public String getMapKeyPropertyName()
-
setMapKeyPropertyName
public void setMapKeyPropertyName(String mapKeyPropertyName)
-
getDefaultCollectionSemantics
public CollectionSemantics getDefaultCollectionSemantics()
- Overrides:
getDefaultCollectionSemantics
in classCollection
-
getDefaultCollectionType
public CollectionType getDefaultCollectionType()
- Specified by:
getDefaultCollectionType
in classCollection
-
createAllKeys
public void createAllKeys() throws MappingException
- Overrides:
createAllKeys
in classCollection
- Throws:
MappingException
-
accept
public Object accept(ValueVisitor visitor)
-
-