Open Source Repository

Home /hibernate/hibernate-3.2.6.ga | Repository Home



org/hibernate/type/PrimitiveType.java
//$Id: PrimitiveType.java 4582 2004-09-25 11:22:20Z oneovthafew $
package org.hibernate.type;

import java.io.Serializable;

/**
 * Superclass of primitive / primitive wrapper types.
 @author Gavin King
 */
public abstract class PrimitiveType extends ImmutableType implements LiteralType {

  public abstract Class getPrimitiveClass();

  public String toString(Object value) {
    return value.toString();
  }
  
  public abstract Serializable getDefaultValue();

}