接口 UniqueEntityLoader
-
- 所有已知实现类:
AbstractEntityLoader,AbstractLoadPlanBasedEntityLoader,BatchingEntityLoader,BatchingEntityLoader,CascadeEntityLoader,DynamicBatchingEntityLoaderBuilder.DynamicBatchingEntityLoader,EntityLoader,EntityLoader,LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader,LegacyBatchingEntityLoaderBuilder.LegacyBatchingEntityLoader,NamedQueryLoader
public interface UniqueEntityLoaderLoads entities for a EntityPersister- 作者:
- Gavin King, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 Objectload(Serializable id, Object optionalObject, SharedSessionContractImplementor session)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)
-
-
-
方法详细资料
-
load
@Deprecated Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session) throws HibernateException
Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.
-
load
default Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly) throws HibernateException
-
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.- 参数:
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.- 返回:
- The loaded entity
- 抛出:
HibernateException- indicates problem performing the load.
-
load
default Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)
-
-