Top Description Fields Constructors Methods
org.hibernate.mapping

public abstract Class IdentifierCollection

extends Collection
Class Inheritance
Known Direct Subclasses
org.hibernate.mapping.IdentifierBag
Imports
java.util.function.Supplier, org.hibernate.MappingException, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.engine.spi.Mapping, org.hibernate.resource.beans.spi.ManagedBean, org.hibernate.usertype.UserCollectionType

A mapping model object representing a collection with a synthetic "identifier" column, that is, a surrogate key.

Field Summary

Modifier and TypeField and Description
public static final String
private KeyValue
Inherited from org.hibernate.mapping.Collection:
DEFAULT_ELEMENT_COLUMN_NAMEDEFAULT_KEY_COLUMN_NAME

Constructor Summary

AccessConstructor and Description
public
public
IdentifierCollection(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)

protected

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public KeyValue
public final boolean
public boolean
public boolean
public void
setIdentifier(KeyValue identifier)

public void
validate(Mapping mapping)

Overrides org.hibernate.mapping.Collection.validate.

Deprecated as a consequence of Mapping being deprecated.
Inherited from org.hibernate.mapping.Collection:
addFilteraddManyToManyFilteraddSynchronizedTablecreateAllKeyscreateForeignKeycreateUniqueKeyenableSoftDeletegetBatchSizegetBuildingContextgetCacheConcurrencyStrategygetCacheRegionNamegetCollectionPersisterClassgetCollectionSemanticsgetCollectionTablegetCollectionTypegetColumnInsertabilitygetColumnsgetColumnSpangetColumnUpdateabilitygetComparatorgetComparatorClassNamegetCustomSQLDeletegetCustomSQLDeleteAllgetCustomSQLDeleteAllCheckStylegetCustomSQLDeleteCheckStylegetCustomSQLInsertgetCustomSQLInsertCheckStylegetCustomSQLUpdategetCustomSQLUpdateCheckStylegetDefaultCollectionTypegetElementgetFetchModegetFiltersgetKeygetLoaderNamegetManyToManyFiltersgetManyToManyOrderinggetManyToManyWheregetMappedByPropertygetMetadatagetOrderBygetOwnergetOwnerEntityNamegetReferencedPropertyNamegetRolegetSelectablesgetServiceRegistrygetSoftDeleteColumngetSynchronizedTablesgetTablegetTypegetTypeNamegetTypeParametersgetWherehasAnyInsertableColumnshasAnyUpdatableColumnshasFormulahasOrderhasOrphanDeleteisAlternateUniqueKeyisArrayisColumnInsertableisColumnUpdateableisCustomDeleteAllCallableisCustomDeleteCallableisCustomInsertCallableisCustomUpdateCallableisExtraLazyisIndexedisInverseisLazyisMapisMutableisNullableisOneToManyisOptimisticLockedisPrimitiveArrayisSameisSameisSetisSimpleValueisSortedisSubselectLoadableisValidsetBatchSizesetCacheConcurrencyStrategysetCacheRegionNamesetCollectionPersisterClasssetCollectionTablesetComparatorsetComparatorClassNamesetCustomSQLDeletesetCustomSQLDeleteAllsetCustomSQLInsertsetCustomSQLUpdatesetElementsetExtraLazysetFetchModesetInversesetKeysetLazysetLoaderNamesetManyToManyOrderingsetManyToManyWheresetMappedByPropertysetMutablesetOptimisticLockedsetOrderBysetOrphanDeletesetReferencedPropertyNamesetRolesetSortedsetSubselectLoadablesetTypeNamesetTypeParameterssetTypeParameterssetTypeUsingReflectionsetWheretoString

Field Detail

DEFAULT_IDENTIFIER_COLUMN_NAMEback to summary
public static final String DEFAULT_IDENTIFIER_COLUMN_NAME
identifierback to summary
private KeyValue identifier

Constructor Detail

IdentifierCollectionback to summary
public IdentifierCollection(MetadataBuildingContext buildingContext, PersistentClass owner)
IdentifierCollectionback to summary
public IdentifierCollection(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)
IdentifierCollectionback to summary
protected IdentifierCollection(IdentifierCollection original)

Method Detail

createPrimaryKeyback to summary
pack-priv void createPrimaryKey()

Implements abstract org.hibernate.mapping.Collection.createPrimaryKey.

getIdentifierback to summary
public KeyValue getIdentifier()
isIdentifiedback to summary
public final boolean isIdentified()

Overrides org.hibernate.mapping.Collection.isIdentified.

isSameback to summary
public boolean isSame(Collection other)

Overrides org.hibernate.mapping.Collection.isSame.

Annotations
@Override
isSameback to summary
public boolean isSame(IdentifierCollection other)
setIdentifierback to summary
public void setIdentifier(KeyValue identifier)
validateback to summary
public void validate(Mapping mapping) throws MappingException

Overrides org.hibernate.mapping.Collection.validate.

Deprecated

as a consequence of Mapping being deprecated. See corresponding docs for further information.