KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > property > Setter


1 //$Id: Setter.java,v 1.3 2005/02/12 07:19:30 steveebersole Exp $
2
package org.hibernate.property;
3
4 import java.io.Serializable JavaDoc;
5 import java.lang.reflect.Method JavaDoc;
6
7 import org.hibernate.HibernateException;
8 import org.hibernate.engine.SessionFactoryImplementor;
9
10 /**
11  * Sets values to a particular property.
12  *
13  * @author Gavin King
14  */

15 public interface Setter extends Serializable JavaDoc {
16     /**
17      * Set the property value from the given instance
18      *
19      * @param target The instance upon which to set the given value.
20      * @param value The value to be set on the target.
21      * @param factory The session factory from which this request originated.
22      * @throws HibernateException
23      */

24     public void set(Object JavaDoc target, Object JavaDoc value, SessionFactoryImplementor factory) throws HibernateException;
25     /**
26      * Optional operation (return null)
27      */

28     public String JavaDoc getMethodName();
29     /**
30      * Optional operation (return null)
31      */

32     public Method JavaDoc getMethod();
33 }
34
Popular Tags