站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

PrimitiveType (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.type
Class PrimitiveType

java.lang.Object
  extended bynet.sf.hibernate.type.AbstractType
      extended bynet.sf.hibernate.type.NullableType
          extended bynet.sf.hibernate.type.ImmutableType
              extended bynet.sf.hibernate.type.PrimitiveType
All Implemented Interfaces:
LiteralType, Serializable, Type
Direct Known Subclasses:
BooleanType, ByteType, CharacterType, DoubleType, FloatType, IntegerType, LongType, ShortType

public abstract class PrimitiveType
extends ImmutableType
implements LiteralType

Superclass of primitive / primitive wrapper types.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
PrimitiveType()
           
 
Method Summary
 boolean equals(Object x, Object y)
          Compare two instances of the class mapped by this type for persistence "equality", ie.
abstract  Class getPrimitiveClass()
           
 String toString(Object value)
           
 
Methods inherited from class net.sf.hibernate.type.ImmutableType
copy, deepCopyNotNull, hasNiceEquals, isMutable
 
Methods inherited from class net.sf.hibernate.type.NullableType
deepCopy, fromString, fromStringValue, get, getColumnSpan, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, set, sqlType, sqlTypes, toString
 
Methods inherited from class net.sf.hibernate.type.AbstractType
assemble, disassemble, equals, hashCode, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isObjectType, isPersistentCollectionType, resolveIdentifier
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.hibernate.type.LiteralType
objectToSQLString
 
Methods inherited from interface net.sf.hibernate.type.Type
getName, getReturnedClass
 

Constructor Detail

PrimitiveType

public PrimitiveType()
Method Detail

getPrimitiveClass

public abstract Class getPrimitiveClass()

equals

public boolean equals(Object x,
                      Object y)
Description copied from interface: Type
Compare two instances of the class mapped by this type for persistence "equality", ie. Equality of persistent state.

Specified by:
equals in interface Type
Parameters:
x -
y -
Returns:
boolean

toString

public String toString(Object value)
Specified by:
toString in class NullableType