Package org.hibernate.mapping
Class IdentifierCollection
java.lang.Object
org.hibernate.mapping.Collection
org.hibernate.mapping.IdentifierCollection
- All Implemented Interfaces:
Serializable
,Fetchable
,Filterable
,SoftDeletable
,Value
- Direct Known Subclasses:
IdentifierBag
A mapping model object representing a collection with a synthetic "identifier" column,
that is, a surrogate key.
- See Also:
-
Field Summary
FieldsFields inherited from class org.hibernate.mapping.Collection
DEFAULT_ELEMENT_COLUMN_NAME, DEFAULT_KEY_COLUMN_NAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionIdentifierCollection
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) IdentifierCollection
(MetadataBuildingContext buildingContext, PersistentClass owner) protected
IdentifierCollection
(IdentifierCollection original) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
boolean
isSame
(Collection other) boolean
isSame
(IdentifierCollection other) void
setIdentifier
(KeyValue identifier) void
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, getDefaultCollectionType, 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, isIndexed, 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
accept, checkColumnDuplication, copy, getConstraintColumns, getExtraCreateTableInfo, getSelectableType, getVirtualSelectables
-
Field Details
-
DEFAULT_IDENTIFIER_COLUMN_NAME
- See Also:
-
-
Constructor Details
-
IdentifierCollection
-
IdentifierCollection
public IdentifierCollection(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) -
IdentifierCollection
-
-
Method Details
-
getIdentifier
-
setIdentifier
-
isIdentified
public final boolean isIdentified()- Overrides:
isIdentified
in classCollection
-
isSame
- Overrides:
isSame
in classCollection
-
isSame
-
validate
- Overrides:
validate
in classCollection
- Throws:
MappingException
-