public final class NamedQueryLoader extends java.lang.Object implements UniqueEntityLoader
| Constructor and Description |
|---|
NamedQueryLoader(java.lang.String queryName,
EntityPersister persister) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
load(java.io.Serializable id,
java.lang.Object optionalObject,
SessionImplementor session)
Load an entity instance.
|
java.lang.Object |
load(java.io.Serializable id,
java.lang.Object optionalObject,
SessionImplementor session,
LockOptions lockOptions)
Load an entity instance by id.
|
public NamedQueryLoader(java.lang.String queryName,
EntityPersister persister)
public java.lang.Object load(java.io.Serializable id,
java.lang.Object optionalObject,
SessionImplementor 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 java.lang.Object load(java.io.Serializable id,
java.lang.Object optionalObject,
SessionImplementor session)
UniqueEntityLoaderload in interface UniqueEntityLoaderCopyright © 2013. All Rights Reserved.