接口 Lockable
-
- 所有超级接口:
AttributeSource,EntityDefinition,EntityPersister
- 所有已知实现类:
AbstractEntityPersister,JoinedSubclassEntityPersister,SingleTableEntityPersister,UnionSubclassEntityPersister
public interface Lockable extends EntityPersister
Contract for things that can be locked via aLockingStrategy. 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).- 从以下版本开始:
- 3.2
- 作者:
- Steve Ebersole
-
-
字段概要
-
从接口继承的字段 org.hibernate.persister.entity.EntityPersister
ENTITY_ID
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StringgetRootTableAlias(String drivingAlias)Get the SQL alias this persister would use for the root table given the passed driving alias.String[]getRootTableIdentifierColumnNames()Get the names of columns on the root table used to persist the identifier.StringgetRootTableName()Locks are always applied to the "root table".StringgetVersionColumnName()For versioned entities, get the name of the column (again, expected on the root table) used to store the version values.-
从接口继承的方法 org.hibernate.persister.walking.spi.AttributeSource
getAttributes
-
从接口继承的方法 org.hibernate.persister.walking.spi.EntityDefinition
getEntityKeyDefinition, getEntityPersister
-
从接口继承的方法 org.hibernate.persister.entity.EntityPersister
afterInitialize, afterReassociate, buildCacheEntry, canExtractIdOutOfEntity, canIdentityInsertBeDelayed, canReadFromCache, canUseReferenceCacheEntries, canWriteToCache, createProxy, delete, findDirty, findModified, forceVersionIncrement, generateEntityDefinition, getBytecodeEnhancementMetadata, getCacheAccessStrategy, getCacheEntryStructure, getClassMetadata, getConcreteProxyClass, getCurrentVersion, getDatabaseSnapshot, getEntityEntryFactory, getEntityMetamodel, getEntityMode, getEntityName, getEntityTuplizer, getFactory, getFilterAliasGenerator, getIdByUniqueKey, getIdentifier, getIdentifier, getIdentifierGenerator, getIdentifierPropertyName, getIdentifierType, getInstrumentationMetadata, getMappedClass, getNaturalIdCacheAccessStrategy, getNaturalIdentifierProperties, getNaturalIdentifierSnapshot, getNavigableRole, getPropertyCascadeStyles, getPropertyCheckability, getPropertyInsertability, getPropertyInsertGenerationInclusions, getPropertyLaziness, getPropertyNames, getPropertyNullability, getPropertySpaces, getPropertyType, getPropertyTypes, getPropertyUpdateability, getPropertyUpdateGenerationInclusions, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getPropertyVersionability, getQuerySpaces, getRootEntityName, getSubclassEntityPersister, getVersion, getVersionProperty, getVersionType, hasCache, hasCascades, hasCollections, hasIdentifierProperty, hasInsertGeneratedProperties, hasLazyProperties, hasMutableProperties, hasNaturalIdCache, hasNaturalIdentifier, hasProxy, hasSubselectLoadableCollections, hasUninitializedLazyProperties, hasUpdateGeneratedProperties, implementsLifecycle, initializeEnhancedEntityUsedAsProxy, insert, insert, instantiate, isBatchLoadable, isCacheInvalidationRequired, isIdentifierAssignedByInsert, isInherited, isInstance, isInstrumented, isLazyPropertiesCacheable, isMutable, isSelectBeforeUpdateRequired, isSubclassEntityName, isTransient, isVersioned, isVersionPropertyGenerated, load, load, load, load, loadEntityIdByNaturalId, lock, lock, multiLoad, postInstantiate, processInsertGeneratedProperties, processUpdateGeneratedProperties, resetIdentifier, resolveAttributeIndexes, setIdentifier, setPropertyValue, setPropertyValues, update
-
-
-
-
方法详细资料
-
getRootTableName
String getRootTableName()
Locks are always applied to the "root table".- 返回:
- The root table name
-
getRootTableAlias
String getRootTableAlias(String drivingAlias)
Get the SQL alias this persister would use for the root table given the passed driving alias.- 参数:
drivingAlias- The driving alias; or the alias for the table mapped by this persister in the hierarchy.- 返回:
- The root table alias.
-
getRootTableIdentifierColumnNames
String[] getRootTableIdentifierColumnNames()
Get the names of columns on the root table used to persist the identifier.- 返回:
- The root table identifier column names.
-
getVersionColumnName
String getVersionColumnName()
For versioned entities, get the name of the column (again, expected on the root table) used to store the version values.- 返回:
- The version column name.
-
-