org.hibernate.persister.entity

Class NamedQueryLoader

Implemented Interfaces:
UniqueEntityLoader

public final class NamedQueryLoader
extends java.lang.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.

Constructor Details

NamedQueryLoader

public NamedQueryLoader(String queryName,
                        EntityPersister persister)

Method Details

load

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