FileDocCategorySizeDatePackage
UniqueEntityLoader.javaAPI DocHibernate 3.2.5613Sun Feb 13 04:50:12 GMT 2005org.hibernate.loader.entity

UniqueEntityLoader.java

//$Id: UniqueEntityLoader.java 5699 2005-02-13 11:50:11Z oneovthafew $
package org.hibernate.loader.entity;

import java.io.Serializable;

import org.hibernate.HibernateException;
import org.hibernate.engine.SessionImplementor;

/**
 * Loads entities for a <tt>EntityPersister</tt>
 * @author Gavin King
 */
public interface UniqueEntityLoader {
	/**
	 * Load an entity instance. If <tt>optionalObject</tt> is supplied,
	 * load the entity state into the given (uninitialized) object.
	 */
	public Object load(Serializable id, Object optionalObject, SessionImplementor session) throws HibernateException;
}