|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.type.AbstractType
net.sf.hibernate.type.NullableType
net.sf.hibernate.type.MutableType
net.sf.hibernate.type.CalendarType
calendar: A type mapping for a Calendar object that represents a datetime.
| Constructor Summary | |
CalendarType()
|
|
| Method Summary | |
Object |
deepCopyNotNull(Object value)
|
boolean |
equals(Object x,
Object y)
Compare two instances of the class mapped by this type for persistence "equality", ie. |
Object |
fromStringValue(String xml)
|
Object |
get(ResultSet rs,
String name)
|
Comparator |
getComparator()
Get a comparator for the version numbers |
String |
getName()
Returns the abbreviated name of the type. |
Class |
getReturnedClass()
The class returned by nullSafeGet() methods. |
Object |
next(Object current)
Increment the version. |
Object |
seed()
Generate an initial version. |
void |
set(PreparedStatement st,
Object value,
int index)
|
int |
sqlType()
|
String |
toString(Object value)
|
| Methods inherited from class net.sf.hibernate.type.MutableType |
copy, hasNiceEquals, isMutable |
| Methods inherited from class net.sf.hibernate.type.NullableType |
deepCopy, fromString, getColumnSpan, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, 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.Type |
assemble, copy, deepCopy, disassemble, fromString, getColumnSpan, hasNiceEquals, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isMutable, isObjectType, isPersistentCollectionType, nullSafeGet, nullSafeGet, nullSafeSet, resolveIdentifier, sqlTypes, toString |
| Constructor Detail |
public CalendarType()
| Method Detail |
public Object get(ResultSet rs, String name) throws HibernateException, SQLException
get in class NullableTypeHibernateException
SQLExceptionpublic void set(PreparedStatement st, Object value, int index) throws HibernateException, SQLException
set in class NullableTypeHibernateException
SQLExceptionpublic int sqlType()
sqlType in class NullableTypepublic String toString(Object value) throws HibernateException
toString in class NullableTypeHibernateExceptionpublic Object fromStringValue(String xml) throws HibernateException
fromStringValue in class NullableTypeHibernateExceptionpublic Object deepCopyNotNull(Object value) throws HibernateException
deepCopyNotNull in class NullableTypeHibernateExceptionpublic Class getReturnedClass()
Type
getReturnedClass in interface Typepublic boolean equals(Object x, Object y) throws HibernateException
Type
x - y -
HibernateExceptionpublic String getName()
Type
public Object next(Object current)
VersionType
next in interface VersionTypecurrent - the current version
public Object seed()
VersionType
seed in interface VersionTypepublic Comparator getComparator()
VersionType
getComparator in interface VersionType
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||