Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## 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.FORCE` Similiar to `UPGRADE` except that, for versioned entities, it results in a forced version increment.
`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.

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
`SQLQuery` | `SQLQuery.addEntity(String alias, Class entityClass, LockMode lockMode)` Declare a "root" entity, specifying a lock mode
`SQLQuery` | `SQLQuery.addEntity(String alias, String entityName, 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` | `StatelessSession.get(Class entityClass, Serializable id, LockMode lockMode)` Retrieve a row, obtaining the specified lock mode.
`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` | `StatelessSession.get(String entityName, Serializable id, LockMode lockMode)` Retrieve a row, obtaining the specified lock mode.
`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.
`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.
`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` | `StatelessSession.refresh(Object entity, LockMode lockMode)` Refresh the entity instance state from the database.
`void` | `Session.refresh(Object object, LockMode lockMode)` Re-read the state of the given instance from the underlying database, with the given `LockMode`.
`void` | `StatelessSession.refresh(String entityName, Object entity, LockMode lockMode)` Refresh the entity instance state from the database.
`Criteria` | `Criteria.setLockMode(LockMode lockMode)` Set the lock mode of the current entity
`Query` | `Query.setLockMode(String alias, LockMode lockMode)` Set the lockmode for the objects idententified by the given alias that appears in the `FROM` clause.
`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
`String` | `SybaseDialect.appendLockHint(LockMode mode, String tableName)`
`String` | `SQLServerDialect.appendLockHint(LockMode mode, String tableName)`
`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.
`String` | `Dialect.getForUpdateString(LockMode lockMode)` Given a lock mode, determine the appropriate for update fragment to use.
`LockingStrategy` | `TimesTenDialect.getLockingStrategy(Lockable lockable, LockMode lockMode)`
`LockingStrategy` | `Cache71Dialect.getLockingStrategy(Lockable lockable, LockMode lockMode)`
`LockingStrategy` | `PointbaseDialect.getLockingStrategy(Lockable lockable, LockMode lockMode)`
`LockingStrategy` | `FrontBaseDialect.getLockingStrategy(Lockable lockable, LockMode lockMode)`
`LockingStrategy` | `RDMSOS2200Dialect.getLockingStrategy(Lockable lockable, LockMode lockMode)`
`LockingStrategy` | `MckoiDialect.getLockingStrategy(Lockable lockable, LockMode lockMode)`
`LockingStrategy` | `HSQLDialect.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.

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
`SelectLockingStrategy(Lockable lockable, LockMode lockMode)` Construct a locking strategy based on SQL SELECT statements.
`UpdateLockingStrategy(Lockable lockable, LockMode lockMode)` Construct a locking strategy based on SQL UPDATE 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
`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` | `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` | `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.
`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.
`static void` | `TwoPhaseLoad.addUninitializedCachedEntity(EntityKey key, Object object, EntityPersister persister, LockMode lockMode, boolean lazyPropertiesAreUnfetched, Object version, SessionImplementor session)`
`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.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.
`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
`NativeSQLQueryCollectionReturn(String alias, String ownerEntityName, String ownerProperty, Map propertyResults, LockMode lockMode)` Construct a native-sql return representing a collection initializer
`NativeSQLQueryJoinReturn(String alias, String ownerAlias, String ownerProperty, Map propertyResults, LockMode lockMode)` Construct a return descriptor representing some form of fetch.
`NativeSQLQueryNonScalarReturn(String alias, Map propertyResults, LockMode lockMode)` Constructs some form of non-scalar return descriptor
`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)`

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` | `LoadEvent.getLockMode()`
`LockMode` | `RefreshEvent.getLockMode()`
`LockMode` | `LockEvent.getLockMode()`

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

Constructors in org.hibernate.event with parameters of type LockMode
`LoadEvent(Serializable entityId, String entityClassName, LockMode lockMode, EventSource source)`
`LockEvent(Object object, LockMode lockMode, EventSource source)`
`LockEvent(String entityName, Object original, LockMode lockMode, EventSource source)`
`RefreshEvent(Object object, 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
`SQLQuery` | `SQLQueryImpl.addEntity(String alias, Class entityClass, LockMode lockMode)`
`SQLQuery` | `SQLQueryImpl.addEntity(String alias, String entityName, LockMode lockMode)`
`SQLQuery` | `SQLQueryImpl.addJoin(String alias, String path, LockMode lockMode)`
`Object` | `StatelessSessionImpl.get(Class entityClass, Serializable id, LockMode lockMode)`
`Object` | `SessionImpl.get(Class entityClass, Serializable id, LockMode lockMode)`
`Object` | `StatelessSessionImpl.get(String entityName, Serializable id, LockMode lockMode)`
`Object` | `SessionImpl.get(String entityName, Serializable id, LockMode lockMode)`
`Object` | `SessionImpl.load(Class entityClass, Serializable id, LockMode lockMode)`
`Object` | `SessionImpl.load(String entityName, Serializable id, LockMode lockMode)`
`void` | `SessionImpl.lock(Object object, LockMode lockMode)`
`void` | `SessionImpl.lock(String entityName, Object object, LockMode lockMode)`
`void` | `StatelessSessionImpl.refresh(Object entity, LockMode lockMode)`
`void` | `SessionImpl.refresh(Object object, LockMode lockMode)`
`void` | `StatelessSessionImpl.refresh(String entityName, Object entity, LockMode lockMode)`
`Criteria` | `CriteriaImpl.setLockMode(LockMode lockMode)`
`Criteria` | `CriteriaImpl.Subcriteria.setLockMode(LockMode lockMode)`
`Criteria` | `CriteriaImpl.setLockMode(String alias, LockMode lockMode)`
`Criteria` | `CriteriaImpl.Subcriteria.setLockMode(String alias, LockMode lockMode)`
`Query` | `QueryImpl.setLockMode(String alias, LockMode lockMode)`
`Query` | `SQLQueryImpl.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
`LockMode[]` | `JoinWalker.getLockModeArray()`
`protected LockMode[]` | `OuterJoinLoader.getLockModes(Map lockModes)`
`protected abstract LockMode[]` | `Loader.getLockModes(Map lockModes)` What lock mode does this load entities with?

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

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
`CollectionFetchReturn(String alias, NonScalarReturn owner, String ownerProperty, CollectionAliases collectionAliases, EntityAliases elementEntityAliases, LockMode lockMode)`
`CollectionReturn(String alias, String ownerEntityName, String ownerProperty, CollectionAliases collectionAliases, EntityAliases elementEntityAliases, LockMode lockMode)`
`EntityFetchReturn(String alias, EntityAliases entityAliases, NonScalarReturn owner, String ownerProperty, LockMode lockMode)`
`FetchReturn(NonScalarReturn owner, String ownerProperty, String alias, LockMode lockMode)` Creates a return descriptor for an association fetch.
`NonScalarReturn(String alias, LockMode lockMode)`
`RootReturn(String alias, String entityName, EntityAliases entityAliases, 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
`EntityJoinWalker(OuterJoinLoadable persister, String[] uniqueKey, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, Map enabledFilters)`
`EntityLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, Map enabledFilters)`
`EntityLoader(OuterJoinLoadable persister, LockMode lockMode, SessionFactoryImplementor factory, Map enabledFilters)`
`EntityLoader(OuterJoinLoadable persister, String[] uniqueKey, Type uniqueKeyType, 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 UniqueEntityLoader` | `AbstractEntityPersister.createEntityLoader(LockMode lockMode)`
`protected UniqueEntityLoader` | `AbstractEntityPersister.createEntityLoader(LockMode lockMode, Map enabledFilters)`
`protected LockingStrategy` | `AbstractEntityPersister.generateLocker(LockMode lockMode)`
`protected String` | `UnionSubclassEntityPersister.generateSelectString(LockMode lockMode)` Generate the SQL that selects a row by id
`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
`Object` | `EntityPersister.load(Serializable id, Object optionalObject, LockMode lockMode, SessionImplementor session)` Load an instance of the persistent class.
`void` | `AbstractEntityPersister.lock(Serializable id, Object version, Object object, LockMode lockMode, SessionImplementor session)`
`void` | `EntityPersister.lock(Serializable id, Object version, Object object, LockMode lockMode, SessionImplementor session)` Do a version check (optional operation)

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)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES