org.hibernate.type
Class ByteType
- DiscriminatorType, IdentifierType, Serializable, LiteralType, Serializable, Type, VersionType
byte: A type that maps an SQL TINYINT to a Java Byte.
fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, isDirty, isEqual, isEqual, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeToString, set, setToXMLNode, sqlType, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString |
assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve |
get
public Object get(ResultSet rs,
String name)
throws SQLException- get in interface NullableType
getComparator
public Comparator getComparator()
Get a comparator for version values.
- getComparator in interface VersionType
- The comparator to use to compare different version values.
getName
public String getName()
Returns the abbreviated name of the type.
- getName in interface Type
- String the Hibernate type name
getReturnedClass
public Class getReturnedClass()
The class returned by nullSafeGet() methods. This is used to
establish the class of an array of this type.
- getReturnedClass in interface Type
next
public Object next(Object current,
SessionImplementor session) Increment the version.
- next in interface VersionType
current - the current versionsession - The session from which this request originates.
seed
public Object seed(SessionImplementor session)
Generate an initial version.
- seed in interface VersionType
session - The session from which this request originates.
set
public void set(PreparedStatement st,
Object value,
int index)
throws SQLException- set in interface NullableType