KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > type > PrimitiveType


1 //$Id: PrimitiveType.java,v 1.3 2004/09/25 11:22:19 oneovthafew Exp $
2
package org.hibernate.type;
3
4 import java.io.Serializable JavaDoc;
5
6 /**
7  * Superclass of primitive / primitive wrapper types.
8  * @author Gavin King
9  */

10 public abstract class PrimitiveType extends ImmutableType implements LiteralType {
11
12     public abstract Class JavaDoc getPrimitiveClass();
13
14     public String JavaDoc toString(Object JavaDoc value) {
15         return value.toString();
16     }
17     
18     public abstract Serializable JavaDoc getDefaultValue();
19
20 }
21
22
23
24
25
26
Popular Tags