KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > usertype > EnhancedUserType


1 //$Id: EnhancedUserType.java,v 1.4 2005/02/28 06:07:06 oneovthafew Exp $
2
package org.hibernate.usertype;
3
4 /**
5  * A custom type that may function as an identifier or
6  * discriminator type, or may be marshalled to and from
7  * an XML document
8  *
9  * @author Gavin King
10  */

11 public interface EnhancedUserType extends UserType {
12     /**
13      * Return an SQL literal representation of the value
14      */

15     public String JavaDoc objectToSQLString(Object JavaDoc value);
16     
17     /**
18      * Return a string representation of this value, as it
19      * should appear in an XML document
20      */

21     public String JavaDoc toXMLString(Object JavaDoc value);
22     /**
23      * Parse a string representation of this value, as it
24      * appears in an XML document
25      */

26     public Object JavaDoc fromXMLString(String JavaDoc xmlValue);
27 }
28
Popular Tags