Interface Lockable

All Superinterfaces:
AttributeSource, Bindable, Discriminable, EntityMappingType, EntityMutationTarget, EntityPersister, EntityValuedModelPart, FetchableContainer, FilterRestrictable, JdbcMappingContainer, Loadable, ManagedMappingType, MappingModelExpressible, MappingType, ModelPart, ModelPartContainer, MutationTarget<EntityTableMapping>, Restrictable, RootTableGroupProducer, SoftDeletableModelPart, TableGroupProducer, WhereRestrictable
All Known Subinterfaces:
DeprecatedEntityStuff
All Known Implementing Classes:
AbstractEntityPersister, JoinedSubclassEntityPersister, SingleTableEntityPersister, UnionSubclassEntityPersister

@Deprecated(since="6", forRemoval=true) public interface Lockable extends EntityPersister
Deprecated, for removal: This API element is subject to removal in a future version.
Contract for things that can be locked via a 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).

Since:
3.2
  • Method Details

    • getRootTableName

      String getRootTableName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Locks are always applied to the "root table".
      Returns:
      The root table name
    • getRootTableAlias

      String getRootTableAlias(String drivingAlias)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the SQL alias this persister would use for the root table given the passed driving alias.
      Parameters:
      drivingAlias - The driving alias; or the alias for the table mapped by this persister in the hierarchy.
      Returns:
      The root table alias.
    • getRootTableIdentifierColumnNames

      String[] getRootTableIdentifierColumnNames()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the names of columns on the root table used to persist the identifier.
      Returns:
      The root table identifier column names.
    • getVersionColumnName

      String getVersionColumnName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      For versioned entities, get the name of the column (again, expected on the root table) used to store the version values.
      Returns:
      The version column name.