public interface UniqueEntityLoader
Modifier and Type | Method and Description |
---|---|
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session)
Deprecated.
|
default Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
Boolean readOnly) |
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
default Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions,
Boolean readOnly) |
@Deprecated Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session) throws HibernateException
load(java.io.Serializable, Object, SharedSessionContractImplementor, LockOptions)
instead.HibernateException
default Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly) throws HibernateException
HibernateException
Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)
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.default Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)
Copyright © 2001-2020 Red Hat, Inc. All Rights Reserved.