public interface UniqueEntityLoader
Loads entities for a <tt>EntityPersister</tt>
| Modifier and Type | Method and Description |
|---|---|
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session)
Deprecated.
|
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
@Deprecated Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session) throws HibernateException
load(java.io.Serializable, Object, SharedSessionContractImplementor, LockOptions) instead.Load an entity instance. If <tt>optionalObject</tt> is supplied, load the entity state into the given (uninitialized) object.
HibernateExceptionObject load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)
Load an entity instance by id. If <tt>optionalObject</tt> is supplied (non-<tt>null</tt>, the entity state is loaded into that object instance instead of instantiating a new one.
id - The id to be loadedoptionalObject - The (optional) entity instance in to which to load the statesession - The session from which the request originatedlockOptions - The lock options.HibernateException - indicates problem performing the load.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.