|
|||||||||||
| 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.ImmutableType
net.sf.hibernate.type.PrimitiveType
net.sf.hibernate.type.ShortType
short: A type that maps an SQL SMALLINT to a Java Short.
| Constructor Summary | |
ShortType()
|
|
| Method Summary | |
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 |
getPrimitiveClass()
|
Class |
getReturnedClass()
The class returned by nullSafeGet() methods. |
Object |
next(Object current)
Increment the version. |
String |
objectToSQLString(Object value)
String representation of the value, suitable for embedding in an SQL statement. |
Object |
seed()
Generate an initial version. |
void |
set(PreparedStatement st,
Object value,
int index)
|
int |
sqlType()
|
Object |
stringToObject(String xml)
Convert the value from the mapping file to a Java object. |
| Methods inherited from class net.sf.hibernate.type.PrimitiveType |
equals, toString |
| Methods inherited from class net.sf.hibernate.type.ImmutableType |
copy, deepCopyNotNull, 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, equals, fromString, getColumnSpan, hasNiceEquals, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isMutable, isObjectType, isPersistentCollectionType, nullSafeGet, nullSafeGet, nullSafeSet, resolveIdentifier, sqlTypes, toString |
| Constructor Detail |
public ShortType()
| Method Detail |
public Object get(ResultSet rs, String name) throws SQLException
get in class NullableTypeSQLExceptionpublic Class getPrimitiveClass()
getPrimitiveClass in class PrimitiveTypepublic 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 objectToSQLString(Object value) throws Exception
LiteralType
objectToSQLString in interface LiteralTypevalue -
Exceptionpublic Object stringToObject(String xml) throws Exception
IdentifierType
stringToObject in interface IdentifierTypexml - the value of discriminator-value or unsaved-value attribute
Exceptionpublic Object next(Object current)
VersionType
next in interface VersionTypecurrent - the current version
public Object seed()
VersionType
seed in interface VersionTypepublic Object fromStringValue(String xml)
fromStringValue in class NullableTypepublic Comparator getComparator()
VersionType
getComparator in interface VersionType
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||