KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > persister > entity > UniqueKeyLoadable


1 //$Id: UniqueKeyLoadable.java,v 1.2 2005/02/14 15:53:24 oneovthafew Exp $
2
package org.hibernate.persister.entity;
3
4 import org.hibernate.HibernateException;
5 import org.hibernate.engine.SessionImplementor;
6
7 /**
8  * @author Gavin King
9  */

10 public interface UniqueKeyLoadable extends Loadable {
11     /**
12      * Load an instance of the persistent class, by a unique key other
13      * than the primary key.
14      */

15     public Object JavaDoc loadByUniqueKey(String JavaDoc propertyName, Object JavaDoc uniqueKey, SessionImplementor session)
16     throws HibernateException;
17     /**
18      * Get the property number of the unique key property
19      */

20     public int getPropertyIndex(String JavaDoc propertyName);
21
22 }
23
Popular Tags