|
|||||||||||
| 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.TimeType
time: A type that maps an SQL TIME to a Java java.util.Date or java.sql.Time.
| Constructor Summary | |
TimeType()
|
|
| 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)
|
String |
getName()
Returns the abbreviated name of the type. |
Class |
getReturnedClass()
The class returned by nullSafeGet() methods. |
boolean |
hasNiceEquals()
Does this type implement a well-behaved equals() method. |
String |
objectToSQLString(Object value)
String representation of the value, suitable for embedding in an SQL statement. |
void |
set(PreparedStatement st,
Object value,
int index)
|
int |
sqlType()
|
String |
toString(Object val)
|
| Methods inherited from class net.sf.hibernate.type.MutableType |
copy, 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 |
| Constructor Detail |
public TimeType()
| Method Detail |
public Object get(ResultSet rs, String name) throws SQLException
get in class NullableTypeSQLExceptionpublic Class getReturnedClass()
Type
getReturnedClass in interface Typepublic void set(PreparedStatement st, Object value, int index) throws SQLException
set in class NullableTypeSQLExceptionpublic int sqlType()
sqlType in class NullableTypepublic String getName()
Type
public String toString(Object val)
toString in class NullableTypepublic boolean equals(Object x, Object y)
Type
x - y -
public Object deepCopyNotNull(Object value)
deepCopyNotNull in class NullableTypepublic boolean hasNiceEquals()
Type
hasNiceEquals in interface TypehasNiceEquals in class MutableTypepublic String objectToSQLString(Object value) throws Exception
LiteralType
objectToSQLString in interface LiteralTypevalue -
Exceptionpublic Object fromStringValue(String xml) throws HibernateException
fromStringValue in class NullableTypeHibernateException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||