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