站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

Uses of Class org.hibernate.LockMode (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


Uses of Class
org.hibernate.LockMode

Packages that use LockMode
org.hibernate This package defines the central Hibernate APIs. 
org.hibernate.dialect This package abstracts the SQL dialect of the underlying database. 
org.hibernate.dialect.lock   
org.hibernate.engine This package contains classes that are "shared" by other packages, and implementations of some key algorithms. 
org.hibernate.engine.query.sql   
org.hibernate.event This package defines an event framework for Hibernate. 
org.hibernate.event.def This package defines a default set of event listeners that implements the default behaviors of Hibernate. 
org.hibernate.hql.classic This package contains the Hibernate 2.x query parser which is being end-of-lifed. 
org.hibernate.impl This package contains implementations of the central Hibernate APIs, especially the Hibernate session. 
org.hibernate.loader This package defines functionality for processing JDBC result sets and returning complex graphs of persistent objects. 
org.hibernate.loader.criteria This package defines the criteria query compiler and loader  
org.hibernate.loader.custom This package defines a framework for custom loaders that accept handwritten SQL  
org.hibernate.loader.entity This package defines entity loaders  
org.hibernate.loader.hql This package defines a loader for the AST-based query parser  
org.hibernate.persister.entity This package abstracts persistence mechanisms for entities, and defines the Hibernate runtime metamodel. 
org.hibernate.sql This package defines helper classes for rendering SQL fragments and SQL statements. 
org.hibernate.util Utility classes. 
 

Uses of LockMode in org.hibernate
 

Fields in org.hibernate declared as LockMode
static LockMode LockMode.NONE
          No lock required.
static LockMode LockMode.READ
          A shared lock.
static LockMode LockMode.UPGRADE
          An upgrade lock.
static LockMode LockMode.UPGRADE_NOWAIT
          Attempt to obtain an upgrade lock, using an Oracle-style select for update nowait.
static LockMode LockMode.WRITE
          A WRITE lock is obtained when an object is updated or inserted.
static LockMode LockMode.FORCE
          Similiar to UPGRADE except that, for versioned entities, it results in a forced version increment.
 

Methods in org.hibernate that return LockMode
 LockMode Session.getCurrentLockMode(Object object)
          Determine the current lock mode of the given object.
static LockMode LockMode.parse(String name)
           
 

Methods in org.hibernate with parameters of type LockMode
 Object StatelessSession.get(String entityName, Serializable id, LockMode lockMode)
          Retrieve a row, obtaining the specified lock mode.
 Object StatelessSession.get(Class entityClass, Serializable id, LockMode lockMode)
          Retrieve a row, obtaining the specified lock mode.
 void StatelessSession.refresh(Object entity, LockMode lockMode)
          Refresh the entity instance state from the database.
 void StatelessSession.refresh(String entityName, Object entity, LockMode lockMode)
          Refresh the entity instance state from the database.
 SQLQuery SQLQuery.addEntity(String alias, String entityName, LockMode lockMode)
          Declare a "root" entity, specifying a lock mode
 SQLQuery SQLQuery.addEntity(String alias, Class entityClass, LockMode lockMode)
          Declare a "root" entity, specifying a lock mode
 SQLQuery SQLQuery.addJoin(String alias, String path, LockMode lockMode)
          Declare a "joined" entity, specifying a lock mode
 Object Session.load(Class theClass, Serializable id, LockMode lockMode)
          Return the persistent instance of the given entity class with the given identifier, obtaining the specified lock mode, assuming the instance exists.
 Object Session.load(String entityName, Serializable id, LockMode lockMode)
          Return the persistent instance of the given entity class with the given identifier, obtaining the specified lock mode, assuming the instance exists.
 void Session.lock(Object object, LockMode lockMode)
          Obtain the specified lock level upon the given object.
 void Session.lock(String entityName, Object object, LockMode lockMode)
          Obtain the specified lock level upon the given object.
 void Session.refresh(Object object, LockMode lockMode)
          Re-read the state of the given instance from the underlying database, with the given LockMode.
 Object Session.get(Class clazz, Serializable id, LockMode lockMode)
          Return the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance.
 Object Session.get(String entityName, Serializable id, LockMode lockMode)
          Return the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance.
 Query Query.setLockMode(String alias, LockMode lockMode)
          Set the lockmode for the objects idententified by the given alias that appears in the FROM clause.
 boolean LockMode.greaterThan(LockMode mode)
          Check if this lock mode is more restrictive than the given lock mode.
 boolean LockMode.lessThan(LockMode mode)
          Check if this lock mode is less restrictive than the given lock mode.
 Criteria Criteria.setLockMode(LockMode lockMode)
          Set the lock mode of the current entity
 Criteria Criteria.setLockMode(String alias, LockMode lockMode)
          Set the lock mode of the aliased entity
 

Uses of LockMode in org.hibernate.dialect
 

Methods in org.hibernate.dialect with parameters of type LockMode
 LockingStrategy TimesTenDialect.getLockingStrategy(Lockable lockable, LockMode lockMode)
           
 String SybaseDialect.appendLockHint(LockMode mode, String tableName)
           
 String SQLServerDialect.appendLockHint(LockMode mode, String tableName)
           
 LockingStrategy RDMSOS2200Dialect.getLockingStrategy(Lockable lockable, LockMode lockMode)
           
 LockingStrategy PointbaseDialect.getLockingStrategy(Lockable lockable, LockMode lockMode)
           
 LockingStrategy MckoiDialect.getLockingStrategy(Lockable lockable, LockMode lockMode)
           
 LockingStrategy HSQLDialect.getLockingStrategy(Lockable lockable, LockMode lockMode)
           
 LockingStrategy FrontBaseDialect.getLockingStrategy(Lockable lockable, LockMode lockMode)
           
 LockingStrategy Dialect.getLockingStrategy(Lockable lockable, LockMode lockMode)
          Get a strategy instance which knows how to acquire a database-level lock of the specified mode for this dialect.
 String Dialect.getForUpdateString(LockMode lockMode)
          Given a lock mode, determine the appropriate for update fragment to use.
 String Dialect.appendLockHint(LockMode mode, String tableName)
          Some dialects support an alternative means to SELECT FOR UPDATE, whereby a "lock hint" is appends to the table name in the from clause.
 LockingStrategy Cache71Dialect.getLockingStrategy(Lockable lockable, LockMode lockMode)
           
 

Constructors in org.hibernate.dialect with parameters of type LockMode
HSQLDialect.ReadUncommittedLockingStrategy(Lockable lockable, LockMode lockMode)
           
 

Uses of LockMode in org.hibernate.dialect.lock
 

Methods in org.hibernate.dialect.lock that return LockMode
protected  LockMode UpdateLockingStrategy.getLockMode()
           
protected  LockMode SelectLockingStrategy.getLockMode()
           
 

Constructors in org.hibernate.dialect.lock with parameters of type LockMode
UpdateLockingStrategy(Lockable lockable, LockMode lockMode)
          Construct a locking strategy based on SQL UPDATE statements.
SelectLockingStrategy(Lockable lockable, LockMode lockMode)
          Construct a locking strategy based on SQL SELECT statements.
 

Uses of LockMode in org.hibernate.engine
 

Methods in org.hibernate.engine that return LockMode
 LockMode EntityEntry.getLockMode()
           
 

Methods in org.hibernate.engine with parameters of type LockMode
static void TwoPhaseLoad.postHydrate(EntityPersister persister, Serializable id, Object[] values, Object rowId, Object object, LockMode lockMode, boolean lazyPropertiesAreUnfetched, SessionImplementor session)
          Register the "hydrated" state of an entity instance, after the first step of 2-phase loading.
static void TwoPhaseLoad.addUninitializedEntity(EntityKey key, Object object, EntityPersister persister, LockMode lockMode, boolean lazyPropertiesAreUnfetched, SessionImplementor session)
          Add an uninitialized instance of an entity class, as a placeholder to ensure object identity.
static void TwoPhaseLoad.addUninitializedCachedEntity(EntityKey key, Object object, EntityPersister persister, LockMode lockMode, boolean lazyPropertiesAreUnfetched, Object version, SessionImplementor session)
           
 EntityEntry StatefulPersistenceContext.addEntity(Object entity, Status status, Object[] loadedState, EntityKey entityKey, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, boolean lazyPropertiesAreUnfetched)
          Adds an entity to the internal caches.
 EntityEntry StatefulPersistenceContext.addEntry(Object entity, Status status, Object[] loadedState, Object rowId, Serializable id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, boolean lazyPropertiesAreUnfetched)
          Generates an appropriate EntityEntry instance and adds it to the event source's internal caches.
 EntityEntry PersistenceContext.addEntity(Object entity, Status status, Object[] loadedState, EntityKey entityKey, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, boolean lazyPropertiesAreUnfetched)
          Adds an entity to the internal caches.
 EntityEntry PersistenceContext.addEntry(Object entity, Status status, Object[] loadedState, Object rowId, Serializable id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, boolean lazyPropertiesAreUnfetched)
          Generates an appropriate EntityEntry instance and adds it to the event source's internal caches.
 void EntityEntry.setLockMode(LockMode lockMode)
           
 

Uses of LockMode in org.hibernate.engine.query.sql
 

Methods in org.hibernate.engine.query.sql that return LockMode
 LockMode NativeSQLQueryNonScalarReturn.getLockMode()
          Retrieve the lock-mode to apply to this return
 

Constructors in org.hibernate.engine.query.sql with parameters of type LockMode
NativeSQLQueryRootReturn(String alias, String entityName, LockMode lockMode)
          Construct a return representing an entity returned at the root of the result.
NativeSQLQueryRootReturn(String alias, String entityName, Map propertyResults, LockMode lockMode)
           
NativeSQLQueryNonScalarReturn(String alias, Map propertyResults, LockMode lockMode)
          Constructs some form of non-scalar return descriptor
NativeSQLQueryJoinReturn(String alias, String ownerAlias, String ownerProperty, Map propertyResults, LockMode lockMode)
          Construct a return descriptor representing some form of fetch.
NativeSQLQueryCollectionReturn(String alias, String ownerEntityName, String ownerProperty, Map propertyResults, LockMode lockMode)
          Construct a native-sql return representing a collection initializer
 

Uses of LockMode in org.hibernate.event
 

Fields in org.hibernate.event declared as LockMode
static LockMode LoadEvent.DEFAULT_LOCK_MODE
           
 

Methods in org.hibernate.event that return LockMode
 LockMode RefreshEvent.getLockMode()
           
 LockMode LockEvent.getLockMode()
           
 LockMode LoadEvent.getLockMode()
           
 

Methods in org.hibernate.event with parameters of type LockMode
 void LockEvent.setLockMode(LockMode lockMode)
           
 void LoadEvent.setLockMode(LockMode lockMode)
           
 

Constructors in org.hibernate.event with parameters of type LockMode
RefreshEvent(Object object, LockMode lockMode, EventSource source)
           
LockEvent(String entityName, Object original, LockMode lockMode, EventSource source)
           
LockEvent(Object object, LockMode lockMode, EventSource source)
           
LoadEvent(Serializable entityId, String entityClassName, LockMode lockMode, EventSource source)
           
 

Uses of LockMode in org.hibernate.event.def
 

Fields in org.hibernate.event.def declared as LockMode
static LockMode DefaultLoadEventListener.DEFAULT_LOCK_MODE
           
 

Methods in org.hibernate.event.def with parameters of type LockMode
protected  void AbstractLockUpgradeEventListener.upgradeLock(Object object, EntityEntry entry, LockMode requestedLockMode, SessionImplementor source)
          Performs a pessimistic lock upgrade on a given entity, if needed.
 

Uses of LockMode in org.hibernate.hql.classic
 

Methods in org.hibernate.hql.classic that return LockMode
protected  LockMode[] QueryTranslatorImpl.getLockModes(Map lockModes)
           
 

Uses of LockMode in org.hibernate.impl
 

Methods in org.hibernate.impl that return LockMode
 LockMode SessionImpl.getCurrentLockMode(Object object)
           
 LockMode CriteriaImpl.Subcriteria.getLockMode()
           
 

Methods in org.hibernate.impl with parameters of type LockMode
 Object StatelessSessionImpl.get(Class entityClass, Serializable id, LockMode lockMode)
           
 Object StatelessSessionImpl.get(String entityName, Serializable id, LockMode lockMode)
           
 void StatelessSessionImpl.refresh(Object entity, LockMode lockMode)
           
 void StatelessSessionImpl.refresh(String entityName, Object entity, LockMode lockMode)
           
 Query SQLQueryImpl.setLockMode(String alias, LockMode lockMode)
           
 SQLQuery SQLQueryImpl.addJoin(String alias, String path, LockMode lockMode)
           
 SQLQuery SQLQueryImpl.addEntity(String alias, String entityName, LockMode lockMode)
           
 SQLQuery SQLQueryImpl.addEntity(String alias, Class entityClass, LockMode lockMode)
           
 void SessionImpl.lock(String entityName, Object object, LockMode lockMode)
           
 void SessionImpl.lock(Object object, LockMode lockMode)
           
 Object SessionImpl.load(Class entityClass, Serializable id, LockMode lockMode)
           
 Object SessionImpl.load(String entityName, Serializable id, LockMode lockMode)
           
 Object SessionImpl.get(Class entityClass, Serializable id, LockMode lockMode)
           
 Object SessionImpl.get(String entityName, Serializable id, LockMode lockMode)
           
 void SessionImpl.refresh(Object object, LockMode lockMode)
           
 Query QueryImpl.setLockMode(String alias, LockMode lockMode)
           
 Criteria CriteriaImpl.setLockMode(LockMode lockMode)
           
 Criteria CriteriaImpl.setLockMode(String alias, LockMode lockMode)
           
 Criteria CriteriaImpl.Subcriteria.setLockMode(LockMode lockMode)
           
 Criteria CriteriaImpl.Subcriteria.setLockMode(String alias, LockMode lockMode)
           
 

Uses of LockMode in org.hibernate.loader
 

Fields in org.hibernate.loader declared as LockMode
protected  LockMode[] OuterJoinLoader.lockModeArray
           
protected  LockMode[] JoinWalker.lockModeArray
           
 

Methods in org.hibernate.loader that return LockMode
protected  LockMode[] OuterJoinLoader.getLockModes(Map lockModes)
           
protected abstract  LockMode[] Loader.getLockModes(Map lockModes)
          What lock mode does this load entities with?
 LockMode[] JoinWalker.getLockModeArray()
           
 

Methods in org.hibernate.loader with parameters of type LockMode
 void JoinWalker.setLockModeArray(LockMode[] lockModeArray)
           
protected  void JoinWalker.initPersisters(List associations, LockMode lockMode)
           
protected  void AbstractEntityJoinWalker.initAll(String whereString, String orderByString, LockMode lockMode)
           
protected  void AbstractEntityJoinWalker.initProjection(String projectionString, String whereString, String orderByString, String groupByString, LockMode lockMode)
           
 

Uses of LockMode in org.hibernate.loader.criteria
 

Methods in org.hibernate.loader.criteria that return LockMode
protected  LockMode[] CriteriaLoader.getLockModes(Map lockModes)
           
 

Uses of LockMode in org.hibernate.loader.custom
 

Methods in org.hibernate.loader.custom that return LockMode
 LockMode NonScalarReturn.getLockMode()
           
protected  LockMode[] CustomLoader.getLockModes(Map lockModesMap)
           
 

Constructors in org.hibernate.loader.custom with parameters of type LockMode
RootReturn(String alias, String entityName, EntityAliases entityAliases, LockMode lockMode)
           
NonScalarReturn(String alias, LockMode lockMode)
           
FetchReturn(NonScalarReturn owner, String ownerProperty, String alias, LockMode lockMode)
          Creates a return descriptor for an association fetch.
EntityFetchReturn(String alias, EntityAliases entityAliases, NonScalarReturn owner, String ownerProperty, LockMode lockMode)
           
CollectionReturn(String alias, String ownerEntityName, String ownerProperty, CollectionAliases collectionAliases, EntityAliases elementEntityAliases, LockMode lockMode)
           
CollectionFetchReturn(String alias, NonScalarReturn owner, String ownerProperty, CollectionAliases collectionAliases, EntityAliases elementEntityAliases, LockMode lockMode)
           
 

Uses of LockMode in org.hibernate.loader.entity
 

Methods in org.hibernate.loader.entity with parameters of type LockMode
static UniqueEntityLoader BatchingEntityLoader.createBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockMode lockMode, SessionFactoryImplementor factory, Map enabledFilters)
           
 

Constructors in org.hibernate.loader.entity with parameters of type LockMode
EntityLoader(OuterJoinLoadable persister, LockMode lockMode, SessionFactoryImplementor factory, Map enabledFilters)
           
EntityLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, Map enabledFilters)
           
EntityLoader(OuterJoinLoadable persister, String[] uniqueKey, Type uniqueKeyType, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, Map enabledFilters)
           
EntityJoinWalker(OuterJoinLoadable persister, String[] uniqueKey, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, Map enabledFilters)
           
 

Uses of LockMode in org.hibernate.loader.hql
 

Methods in org.hibernate.loader.hql that return LockMode
protected  LockMode[] QueryLoader.getLockModes(Map lockModes)
           
 

Uses of LockMode in org.hibernate.persister.entity
 

Methods in org.hibernate.persister.entity with parameters of type LockMode
protected  String UnionSubclassEntityPersister.generateSelectString(LockMode lockMode)
          Generate the SQL that selects a row by id
 Object EntityPersister.load(Serializable id, Object optionalObject, LockMode lockMode, SessionImplementor session)
          Load an instance of the persistent class.
 void EntityPersister.lock(Serializable id, Object version, Object object, LockMode lockMode, SessionImplementor session)
          Do a version check (optional operation)
protected  LockingStrategy AbstractEntityPersister.generateLocker(LockMode lockMode)
           
 void AbstractEntityPersister.lock(Serializable id, Object version, Object object, LockMode lockMode, SessionImplementor session)
           
protected  UniqueEntityLoader AbstractEntityPersister.createEntityLoader(LockMode lockMode, Map enabledFilters)
           
protected  UniqueEntityLoader AbstractEntityPersister.createEntityLoader(LockMode lockMode)
           
 Object AbstractEntityPersister.load(Serializable id, Object optionalObject, LockMode lockMode, SessionImplementor session)
          Load an instance using either the forUpdateLoader or the outer joining loader, depending upon the value of the lock parameter
 

Uses of LockMode in org.hibernate.sql
 

Methods in org.hibernate.sql that return LockMode
 LockMode Select.getLockMode()
           
 

Methods in org.hibernate.sql with parameters of type LockMode
 SimpleSelect SimpleSelect.setLockMode(LockMode lockMode)
           
 Select Select.setLockMode(LockMode lockMode)
           
 

Uses of LockMode in org.hibernate.util
 

Methods in org.hibernate.util that return LockMode
static LockMode[] ArrayHelper.fillArray(LockMode lockMode, int length)
           
 

Methods in org.hibernate.util with parameters of type LockMode
static LockMode[] ArrayHelper.fillArray(LockMode lockMode, int length)