站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

NamedQueryLoader (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.persister.entity
Class NamedQueryLoader

java.lang.Object
  extended byorg.hibernate.persister.entity.NamedQueryLoader
All Implemented Interfaces:
UniqueEntityLoader

public final class NamedQueryLoader
extends Object
implements UniqueEntityLoader

Not really a Loader, just a wrapper around a named query.

Author:
Gavin King

Constructor Summary
NamedQueryLoader(String queryName, EntityPersister persister)
           
 
Method Summary
 Object load(Serializable id, Object optionalObject, SessionImplementor session)
          Load an entity instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedQueryLoader

public NamedQueryLoader(String queryName,
                        EntityPersister persister)
Method Detail

load

public Object load(Serializable id,
                   Object optionalObject,
                   SessionImplementor session)
            throws HibernateException
Description copied from interface: UniqueEntityLoader
Load an entity instance. If optionalObject is supplied, load the entity state into the given (uninitialized) object.

Specified by:
load in interface UniqueEntityLoader
Throws:
HibernateException