public final class NamedQueryLoader extends Object implements UniqueEntityLoader
Loader or <loader/>).| Constructor and Description |
|---|
NamedQueryLoader(String queryName,
EntityPersister persister)
Constructs the NamedQueryLoader
|
| Modifier and Type | Method and Description |
|---|---|
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session)
Load an entity instance.
|
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.
|
Object |
load(Serializable id,
Object optionalObject,
SharedSessionContractImplementor session,
LockOptions lockOptions,
Boolean readOnly) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadpublic NamedQueryLoader(String queryName, EntityPersister persister)
queryName - The name of the named query to usepersister - The corresponding persister for the entity we are loadingpublic Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions)
UniqueEntityLoaderload in interface UniqueEntityLoaderid - 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.public Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, LockOptions lockOptions, Boolean readOnly)
load in interface UniqueEntityLoaderpublic Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session)
UniqueEntityLoaderload in interface UniqueEntityLoaderpublic Object load(Serializable id, Object optionalObject, SharedSessionContractImplementor session, Boolean readOnly)
load in interface UniqueEntityLoaderCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.