Package org.hibernate.loader.entity
Interface UniqueEntityLoader
-
- All Known Implementing Classes:
AbstractEntityLoader,AbstractLoadPlanBasedEntityLoader,BatchingEntityLoader,CascadeEntityLoader,DynamicBatchingEntityLoader,EntityLoader,EntityLoader,LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader,NamedQueryLoader,PaddedBatchingEntityLoader
public interface UniqueEntityLoaderLoads entities for a EntityPersister
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Objectload(Serializable id, Object optionalObject, SharedSessionContractImplementor session)Deprecated.default Objectload(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly)Objectload(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)Load an entity instance by id.default Objectload(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)default Objectload(Object id, SharedSessionContractImplementor session, LockOptions lockOptions)
-
-
-
Method Detail
-
load
@Deprecated Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session)
Deprecated.Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.- Throws:
HibernateException- indicates problem performing the load.
-
load
Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)
Load an entity instance by id. If optionalObject is supplied (non-null, the entity state is loaded into that object instance instead of instantiating a new one.- Parameters:
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.- Returns:
- The loaded entity
- Throws:
HibernateException- indicates problem performing the load.
-
load
default Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly)
-
load
default Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)
-
load
default Object load(Object id, SharedSessionContractImplementor session, LockOptions lockOptions)
-
-