Top Description Fields Methods
org.hibernate.persister.entity

public Interface Lockable

extends EntityPersister
Known Direct Subinterfaces
org.hibernate.persister.entity.DeprecatedEntityStuff
Annotations
@Deprecated
since:6
forRemoval:true
Imports
org.hibernate.metamodel.mapping.EntityMappingType

Deprecated

for removal since 6.

Use EntityMappingType

Contract for things that can be locked via a org.hibernate.dialect.lock.LockingStrategy.

Currently only the root table gets locked, except for the case of HQL and Criteria queries against dialects which do not support either (1) FOR UPDATE OF or (2) support hint locking (in which case *all* queried tables would be locked).

Author
Steve Ebersole
Since
3.2

Field Summary

Inherited from org.hibernate.persister.entity.EntityPersister:
ENTITY_ID

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The root table alias.
getRootTableAlias
(String
The driving alias; or the alias for the table mapped by this persister in the hierarchy.
drivingAlias
)

Get the SQL alias this persister would use for the root table given the passed driving alias.

public String[]

Returns:

The root table identifier column names.
getRootTableIdentifierColumnNames
()

Get the names of columns on the root table used to persist the identifier.

public String

Returns:

The root table name
getRootTableName
()

Locks are always applied to the "root table".

public String

Returns:

The version column name.
getVersionColumnName
()

For versioned entities, get the name of the column (again, expected on the root table) used to store the version values.

Inherited from org.hibernate.persister.entity.EntityPersister:
addToCacheKeyafterInitializeafterReassociatebreakDownJdbcValuesbuildCacheEntrycanExtractIdOutOfEntitycanReadFromCachecanUseReferenceCacheEntriescanWriteToCachecreateProxydeletefindDirtyfindModifiedforceVersionIncrementforceVersionIncrementgetAttributeMappinggetBatchSizegetBytecodeEnhancementMetadatagetCacheAccessStrategygetCacheEntryStructuregetClassMetadatagetConcreteProxyClassgetCurrentVersiongetDatabaseSnapshotgetEntityEntryFactorygetEntityMappingTypegetEntityMetamodelgetEntityNamegetFactorygetFilterAliasGeneratorgetFilterAliasGeneratorgetGeneratorgetIdByUniqueKeygetIdentifiergetIdentifierGeneratorgetIdentifierPropertyNamegetIdentifierTypegetInstrumentationMetadatagetMappedClassgetMultiNaturalIdLoadergetNaturalIdCacheAccessStrategygetNaturalIdentifierPropertiesgetNaturalIdentifierSnapshotgetNaturalIdLoadergetPropertyCascadeStylesgetPropertyCheckabilitygetPropertyInsertabilitygetPropertyLazinessgetPropertyNamesgetPropertyNullabilitygetPropertySpacesgetPropertyTypegetPropertyTypesgetPropertyUpdateabilitygetPropertyValuegetPropertyValuegetPropertyValuesgetPropertyValuesToInsertgetPropertyVersionabilitygetQuerySpacesgetRepresentationStrategygetRootEntityNamegetSqlAliasStemgetSqmMultiTableInsertStrategygetSqmMultiTableMutationStrategygetSubclassEntityPersistergetSynchronizationSpacesgetSynchronizedQuerySpacesgetValuegetValuesgetVersiongetVersionGeneratorgetVersionJavaTypegetVersionPropertygetVersionTypehasCachehasCascadeDeletehasCascadeshasCollectionNotReferencingPKhasCollectionshasIdentifierPropertyhasInsertGeneratedPropertieshasLazyPropertieshasMutablePropertieshasNaturalIdCachehasNaturalIdentifierhasOwnedCollectionshasProxyhasSubselectLoadableCollectionshasUninitializedLazyPropertieshasUpdateGeneratedPropertiesimplementsLifecycleinitializeEnhancedEntityUsedAsProxyinsertinsertinstantiateisBatchLoadableisCacheInvalidationRequiredisIdentifierAssignedByInsertisInheritedisInstanceisInstrumentedisLazyPropertiesCacheableisMutableisPropertySelectableisSelectBeforeUpdateRequiredisSubclassEntityNameisTransientisVersionedisVersionPropertyGeneratedloadloadloadloadloadByUniqueKeyloadEntityIdByNaturalIdlocklockmergemultiLoadpostInstantiateprepareLoadersprocessInsertGeneratedPropertiesprocessUpdateGeneratedPropertiesresetIdentifierresolveAttributeIndexesresolveDirtyAttributeIndexessetIdentifiersetPropertyValuesetPropertyValuessetValuesetValuesuniqueKeyEntriesupdatevisitQuerySpaces

Method Detail

getRootTableAliasback to summary
public String getRootTableAlias(String drivingAlias)

Get the SQL alias this persister would use for the root table given the passed driving alias.

Parameters
drivingAlias:String

The driving alias; or the alias for the table mapped by this persister in the hierarchy.

Returns:String

The root table alias.

getRootTableIdentifierColumnNamesback to summary
public String[] getRootTableIdentifierColumnNames()

Get the names of columns on the root table used to persist the identifier.

Returns:String[]

The root table identifier column names.

getRootTableNameback to summary
public String getRootTableName()

Locks are always applied to the "root table".

Returns:String

The root table name

getVersionColumnNameback to summary
public String getVersionColumnName()

For versioned entities, get the name of the column (again, expected on the root table) used to store the version values.

Returns:String

The version column name.