Uses of Class org.hibernate.LockOptions (Hibernate JavaDocs)
Date: 2012-04-05

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

## Uses of Class
org.hibernate.LockOptions

Packages that use LockOptions
org.hibernate | This package defines the central Hibernate APIs.
org.hibernate.dialect | This package abstracts the SQL dialect of the underlying database.
org.hibernate.ejb |
org.hibernate.engine.spi |
org.hibernate.envers.query.impl |
org.hibernate.event.internal | This package defines a default set of event listeners that implements the default behaviors of Hibernate.
org.hibernate.event.spi |
org.hibernate.hql.internal.classic | This package contains the Hibernate 2.x query parser which is being end-of-lifed.
org.hibernate.internal | An internal package containing mostly implementations of central Hibernate APIs.
org.hibernate.internal.util.collections |
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.

Uses of LockOptions in org.hibernate

Fields in org.hibernate declared as LockOptions
`static LockOptions` | `LockOptions.NONE` NONE represents LockMode.NONE (timeout + scope do not apply)
`static LockOptions` | `LockOptions.READ` READ represents LockMode.READ (timeout + scope do not apply)
`static LockOptions` | `LockOptions.UPGRADE` UPGRADE represents LockMode.UPGRADE (will wait forever for lock and scope of false meaning only entity is locked)

Methods in org.hibernate that return LockOptions
`static LockOptions` | `LockOptions.copy(LockOptions from, LockOptions dest)` Shallow copy From to Dest
`LockOptions` | `LockOptions.setAliasSpecificLockMode(String alias, LockMode lockMode)` Specify the `LockMode` to be used for a specific query alias.
`LockOptions` | `LockOptions.setLockMode(LockMode lockMode)` Set the overall `LockMode` to be used.
`LockOptions` | `LockOptions.setScope(boolean scope)` Set the cope.
`LockOptions` | `LockOptions.setTimeOut(int timeout)` Set the timeout setting.

Methods in org.hibernate with parameters of type LockOptions
`Session.LockRequest` | `Session.buildLockRequest(LockOptions lockOptions)` Build a LockRequest that specifies the LockMode, pessimistic lock timeout and lock scope.
`static LockOptions` | `LockOptions.copy(LockOptions from, LockOptions dest)` Shallow copy From to Dest
`Object` | `Session.get(Class clazz, Serializable id, LockOptions lockOptions)` 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, LockOptions lockOptions)` Return the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance.
`Object` | `Session.load(Class theClass, Serializable id, LockOptions lockOptions)` 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, LockOptions lockOptions)` Return the persistent instance of the given entity class with the given identifier, obtaining the specified lock mode, assuming the instance exists.
`void` | `Session.refresh(Object object, LockOptions lockOptions)` Re-read the state of the given instance from the underlying database, with the given `LockMode`.
`void` | `Session.refresh(String entityName, Object object, LockOptions lockOptions)` Re-read the state of the given instance from the underlying database, with the given `LockMode`.
`Query` | `Query.setLockOptions(LockOptions lockOptions)` Set the lock options for the objects idententified by the given alias that appears in the `FROM` clause.
`IdentifierLoadAccess` | `IdentifierLoadAccess.with(LockOptions lockOptions)` Specify the `LockOptions` to use when retrieving the entity.
`SimpleNaturalIdLoadAccess` | `SimpleNaturalIdLoadAccess.with(LockOptions lockOptions)` Specify the `LockOptions` to use when retrieving the entity.
`NaturalIdLoadAccess` | `NaturalIdLoadAccess.with(LockOptions lockOptions)` Specify the `LockOptions` to use when retrieving the entity.

Uses of LockOptions in org.hibernate.dialect

Methods in org.hibernate.dialect with parameters of type LockOptions
`String` | `SybaseASE157Dialect.applyLocksToSql(String sql, LockOptions aliasedLockOptions, Map keyColumnNames)`
`String` | `Dialect.applyLocksToSql(String sql, LockOptions aliasedLockOptions, Map keyColumnNames)` Modifies the given SQL by applying the appropriate updates for the specified lock modes and key columns.
`String` | `Dialect.getForUpdateString(LockOptions lockOptions)` Given LockOptions (lockMode, timeout), determine the appropriate for update fragment to use.
`String` | `Dialect.getForUpdateString(String aliases, LockOptions lockOptions)` Get the `FOR UPDATE OF column_list` fragment appropriate for this dialect given the aliases of the columns to be write locked.

Uses of LockOptions in org.hibernate.ejb

Methods in org.hibernate.ejb that return LockOptions
`LockOptions` | `AbstractEntityManagerImpl.getLockRequest(LockModeType lockModeType, Map<String,Object> properties)`
`LockOptions` | `HibernateEntityManagerImplementor.getLockRequest(LockModeType lockModeType, Map<String,Object> properties)` Convert from JPA 2 `LockModeType` & properties into `LockOptions`

Methods in org.hibernate.ejb with parameters of type LockOptions
`RuntimeException` | `AbstractEntityManagerImpl.convert(HibernateException e, LockOptions lockOptions)` Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA sepcification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.
`RuntimeException` | `HibernateEntityManagerImplementor.convert(HibernateException e, LockOptions lockOptions)` Converts a Hibernate-specific exception into a JPA-specified exception; note that the JPA sepcification makes use of exceptions outside its exception hierarchy, though they are all runtime exceptions.
`PersistenceException` | `AbstractEntityManagerImpl.wrapLockException(HibernateException e, LockOptions lockOptions)`

Uses of LockOptions in org.hibernate.engine.spi

Methods in org.hibernate.engine.spi that return LockOptions
`LockOptions` | `QueryParameters.getLockOptions()`

Methods in org.hibernate.engine.spi with parameters of type LockOptions
`void` | `QueryParameters.setLockOptions(LockOptions lockOptions)`

Constructors in org.hibernate.engine.spi with parameters of type LockOptions
`QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, LockOptions lockOptions, RowSelection rowSelection, boolean isReadOnlyInitialized, boolean readOnly, boolean cacheable, String cacheRegion, String comment, boolean isLookupByNaturalKey, ResultTransformer transformer)`
`QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, Map<String,TypedValue> namedParameters, LockOptions lockOptions, RowSelection rowSelection, boolean isReadOnlyInitialized, boolean readOnly, boolean cacheable, String cacheRegion, String comment, Serializable[] collectionKeys, Object optionalObject, String optionalEntityName, Serializable optionalId, ResultTransformer transformer)`
`QueryParameters(Type[] positionalParameterTypes, Object[] positionalParameterValues, Map<String,TypedValue> namedParameters, LockOptions lockOptions, RowSelection rowSelection, boolean isReadOnlyInitialized, boolean readOnly, boolean cacheable, String cacheRegion, String comment, Serializable[] collectionKeys, ResultTransformer transformer)`

Uses of LockOptions in org.hibernate.envers.query.impl

Methods in org.hibernate.envers.query.impl with parameters of type LockOptions
`AuditQuery` | `AbstractAuditQuery.setLockOptions(LockOptions lockOptions)` Set lock options

Uses of LockOptions in org.hibernate.event.internal

Methods in org.hibernate.event.internal with parameters of type LockOptions
`protected void` | `AbstractLockUpgradeEventListener.upgradeLock(Object object, EntityEntry entry, LockOptions lockOptions, EventSource source)` Performs a pessimistic lock upgrade on a given entity, if needed.

Uses of LockOptions in org.hibernate.event.spi

Methods in org.hibernate.event.spi that return LockOptions
`LockOptions` | `ResolveNaturalIdEvent.getLockOptions()`
`LockOptions` | `RefreshEvent.getLockOptions()`
`LockOptions` | `LoadEvent.getLockOptions()`
`LockOptions` | `LockEvent.getLockOptions()`

Constructors in org.hibernate.event.spi with parameters of type LockOptions
`LoadEvent(Serializable entityId, String entityClassName, LockOptions lockOptions, EventSource source)`
`LockEvent(Object object, LockOptions lockOptions, EventSource source)`
`LockEvent(String entityName, Object original, LockOptions lockOptions, EventSource source)`
`RefreshEvent(Object object, LockOptions lockOptions, EventSource source)`
`RefreshEvent(String entityName, Object object, LockOptions lockOptions, EventSource source)`
`ResolveNaturalIdEvent(Map<String,Object> naturalIdValues, EntityPersister entityPersister, LockOptions lockOptions, EventSource source)`

Uses of LockOptions in org.hibernate.hql.internal.classic

Methods in org.hibernate.hql.internal.classic with parameters of type LockOptions
`protected String` | `QueryTranslatorImpl.applyLocks(String sql, LockOptions lockOptions, Dialect dialect)`
`protected LockMode[]` | `QueryTranslatorImpl.getLockModes(LockOptions lockOptions)`

Uses of LockOptions in org.hibernate.internal

Methods in org.hibernate.internal that return LockOptions
`LockOptions` | `QueryImpl.getLockOptions()`
`LockOptions` | `SQLQueryImpl.getLockOptions()`
`abstract LockOptions` | `AbstractQueryImpl.getLockOptions()`

Methods in org.hibernate.internal with parameters of type LockOptions
`Session.LockRequest` | `SessionImpl.buildLockRequest(LockOptions lockOptions)`
`Object` | `SessionImpl.get(Class entityClass, Serializable id, LockOptions lockOptions)`
`Object` | `SessionImpl.get(String entityName, Serializable id, LockOptions lockOptions)`
`Object` | `SessionImpl.load(Class entityClass, Serializable id, LockOptions lockOptions)`
`Object` | `SessionImpl.load(String entityName, Serializable id, LockOptions lockOptions)`
`void` | `SessionImpl.refresh(Object object, LockOptions lockOptions)`
`void` | `SessionImpl.refresh(String entityName, Object object, LockOptions lockOptions)`
`Query` | `QueryImpl.setLockOptions(LockOptions lockOption)`
`Query` | `SQLQueryImpl.setLockOptions(LockOptions lockOptions)`

Uses of LockOptions in org.hibernate.internal.util.collections

Methods in org.hibernate.internal.util.collections that return LockOptions
`static LockOptions[]` | `ArrayHelper.fillArray(LockOptions lockOptions, int length)`

Methods in org.hibernate.internal.util.collections with parameters of type LockOptions
`static LockOptions[]` | `ArrayHelper.fillArray(LockOptions lockOptions, int length)`

Uses of LockOptions in org.hibernate.loader

Fields in org.hibernate.loader declared as LockOptions
`protected LockOptions` | `JoinWalker.lockOptions`

Methods in org.hibernate.loader that return LockOptions
`LockOptions` | `JoinWalker.getLockModeOptions()`
`protected LockOptions` | `OuterJoinLoader.getLockOptions()`

Methods in org.hibernate.loader with parameters of type LockOptions
`protected String` | `Loader.applyLocks(String sql, LockOptions lockOptions, Dialect dialect)` Append `FOR UPDATE OF` clause, if necessary.
`protected abstract LockMode[]` | `Loader.getLockModes(LockOptions lockOptions)` What lock options does this load entities with?
`protected LockMode[]` | `OuterJoinLoader.getLockModes(LockOptions lockOptions)`
`protected void` | `AbstractEntityJoinWalker.initAll(String whereString, String orderByString, LockOptions lockOptions)`
`protected void` | `AbstractEntityJoinWalker.initAll(String whereString, String orderByString, LockOptions lockOptions, JoinWalker.AssociationInitCallback callback)`
`protected void` | `JoinWalker.initPersisters(List associations, LockOptions lockOptions)`
`protected void` | `JoinWalker.initPersisters(List associations, LockOptions lockOptions, JoinWalker.AssociationInitCallback callback)`
`protected void` | `AbstractEntityJoinWalker.initProjection(String projectionString, String whereString, String orderByString, String groupByString, LockOptions lockOptions)`
`protected List` | `Loader.loadEntity(SessionImplementor session, Object id, Type identifierType, Object optionalObject, String optionalEntityName, Serializable optionalIdentifier, EntityPersister persister, LockOptions lockOptions)` Called by subclasses that load entities
`List` | `Loader.loadEntityBatch(SessionImplementor session, Serializable[] ids, Type idType, Object optionalObject, String optionalEntityName, Serializable optionalId, EntityPersister persister, LockOptions lockOptions)` Called by wrappers that batch load entities

Uses of LockOptions in org.hibernate.loader.criteria

Methods in org.hibernate.loader.criteria with parameters of type LockOptions
`protected String` | `CriteriaLoader.applyLocks(String sqlSelectString, LockOptions lockOptions, Dialect dialect)`
`protected LockMode[]` | `CriteriaLoader.getLockModes(LockOptions lockOptions)`

Uses of LockOptions in org.hibernate.loader.custom

Methods in org.hibernate.loader.custom with parameters of type LockOptions
`protected LockMode[]` | `CustomLoader.getLockModes(LockOptions lockOptions)`

Uses of LockOptions in org.hibernate.loader.entity

Methods in org.hibernate.loader.entity with parameters of type LockOptions
`static UniqueEntityLoader` | `BatchingEntityLoader.createBatchingEntityLoader(OuterJoinLoadable persister, int maxBatchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)`
`Object` | `BatchingEntityLoader.load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)`
`Object` | `AbstractEntityLoader.load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)` Load an entity instance by id.
`Object` | `UniqueEntityLoader.load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)` Load an entity instance by id.
`protected Object` | `AbstractEntityLoader.load(SessionImplementor session, Object id, Object optionalObject, Serializable optionalId, LockOptions lockOptions)`

Constructors in org.hibernate.loader.entity with parameters of type LockOptions
`EntityJoinWalker(OuterJoinLoadable persister, String[] uniqueKey, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)`
`EntityLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)`
`EntityLoader(OuterJoinLoadable persister, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)`
`EntityLoader(OuterJoinLoadable persister, String[] uniqueKey, Type uniqueKeyType, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)`

Uses of LockOptions in org.hibernate.loader.hql

Methods in org.hibernate.loader.hql with parameters of type LockOptions
`protected String` | `QueryLoader.applyLocks(String sql, LockOptions lockOptions, Dialect dialect)`
`protected LockMode[]` | `QueryLoader.getLockModes(LockOptions lockOptions)`

Uses of LockOptions in org.hibernate.persister.entity

Methods in org.hibernate.persister.entity with parameters of type LockOptions
`protected UniqueEntityLoader` | `AbstractEntityPersister.createEntityLoader(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers)`
`Object` | `AbstractEntityPersister.load(Serializable id, Object optionalObject, LockOptions lockOptions, 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, LockOptions lockOptions, SessionImplementor session)` Load an instance of the persistent class.
`Object` | `NamedQueryLoader.load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions)`
`Serializable` | `AbstractEntityPersister.loadEntityIdByNaturalId(Object[] naturalIdValues, LockOptions lockOptions, SessionImplementor session)`
`Serializable` | `EntityPersister.loadEntityIdByNaturalId(Object[] naturalIdValues, LockOptions lockOptions, SessionImplementor session)` Load the id for the entity based on the natural id.
`void` | `AbstractEntityPersister.lock(Serializable id, Object version, Object object, LockOptions lockOptions, SessionImplementor session)`
`void` | `EntityPersister.lock(Serializable id, Object version, Object object, LockOptions lockOptions, SessionImplementor session)` Do a version check (optional operation)

Uses of LockOptions in org.hibernate.sql

Methods in org.hibernate.sql that return LockOptions
`LockOptions` | `Select.getLockOptions()` Get the current lock options

Methods in org.hibernate.sql with parameters of type LockOptions
`SimpleSelect` | `SimpleSelect.setLockOptions(LockOptions lockOptions)`
`Select` | `Select.setLockOptions(LockOptions lockOptions)` Set the lock options

Constructors in org.hibernate.sql with parameters of type LockOptions
`ForUpdateFragment(Dialect dialect, LockOptions lockOptions, Map keyColumnNames)`

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

Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.