org.hibernate.type

Class CalendarDateType

Implemented Interfaces:
Serializable, Type

public class CalendarDateType
extends MutableType

calendar_date: A type mapping for a Calendar object that represents a date.
Author:
Gavin King

Method Summary

int
compare(Object x, Object y, EntityMode entityMode)
Object
deepCopyNotNull(Object value)
Object
fromStringValue(String xml)
Object
get(ResultSet rs, String name)
int
getHashCode(Object x, EntityMode entityMode)
String
getName()
Class
getReturnedClass()
boolean
isEqual(Object x, Object y)
void
set(PreparedStatement st, Object value, int index)
int
sqlType()
String
toString(Object value)

Methods inherited from class org.hibernate.type.MutableType

deepCopy, deepCopyNotNull, isMutable, replace

Methods inherited from class org.hibernate.type.NullableType

fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, isDirty, isEqual, isEqual, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeToString, set, setToXMLNode, sqlType, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString

Methods inherited from class org.hibernate.type.AbstractType

assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve

Method Details

compare

public int compare(Object x,
                   Object y,
                   EntityMode entityMode)
Specified by:
compare in interface Type
Overrides:
compare in interface AbstractType

deepCopyNotNull

public Object deepCopyNotNull(Object value)
Overrides:
deepCopyNotNull in interface MutableType

fromStringValue

public Object fromStringValue(String xml)
            throws HibernateException
Overrides:
fromStringValue in interface NullableType

get

public Object get(ResultSet rs,
                  String name)
            throws HibernateException,
                   SQLException
Overrides:
get in interface NullableType

getHashCode

public int getHashCode(Object x,
                       EntityMode entityMode)
Specified by:
getHashCode in interface Type
Overrides:
getHashCode in interface AbstractType

getName

public String getName()
Specified by:
getName in interface Type

getReturnedClass

public Class getReturnedClass()
Specified by:
getReturnedClass in interface Type

isEqual

public boolean isEqual(Object x,
                       Object y)
Overrides:
isEqual in interface NullableType

set

public void set(PreparedStatement st,
                Object value,
                int index)
            throws HibernateException,
                   SQLException
Overrides:
set in interface NullableType

sqlType

public int sqlType()
Overrides:
sqlType in interface NullableType

toString

public String toString(Object value)
            throws HibernateException
Overrides:
toString in interface NullableType