org.hibernate.type
public interface SingleColumnType<T> extends Type
BasicType
. Most of this
is copied from the (now deprecated) NullableType
.
Glaring omission are the forms that do not takeModifier and Type | Method and Description |
---|---|
T |
fromStringValue(java.lang.String xml) |
java.lang.Object |
get(java.sql.ResultSet rs,
java.lang.String name)
Deprecated.
Use
get(ResultSet, String, SessionImplementor) instead. |
java.lang.Object |
get(java.sql.ResultSet rs,
java.lang.String name,
SessionImplementor session)
Get a column value from a result set, without worrying about the possibility of null values.
|
T |
nullSafeGet(java.sql.ResultSet rs,
java.lang.String name)
Deprecated.
|
T |
nullSafeGet(java.sql.ResultSet rs,
java.lang.String name,
SessionImplementor session)
Get a column value from a result set by name.
|
void |
nullSafeSet(java.sql.PreparedStatement st,
T value,
int index)
Deprecated.
|
void |
set(java.sql.PreparedStatement st,
T value,
int index)
Deprecated.
|
void |
set(java.sql.PreparedStatement st,
T value,
int index,
SessionImplementor session)
Set a parameter value without worrying about the possibility of null
values.
|
int |
sqlType() |
java.lang.String |
toString(T value) |
assemble, beforeAssemble, compare, deepCopy, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString
int sqlType()
java.lang.String toString(T value) throws HibernateException
HibernateException
T fromStringValue(java.lang.String xml) throws HibernateException
HibernateException
T nullSafeGet(java.sql.ResultSet rs, java.lang.String name) throws HibernateException, java.sql.SQLException
nullSafeGet(ResultSet, String, SessionImplementor)
insteadHibernateException
java.sql.SQLException
T nullSafeGet(java.sql.ResultSet rs, java.lang.String name, SessionImplementor session) throws HibernateException, java.sql.SQLException
rs
- The result set from which to extract the value.name
- The name of the value to extract.session
- The session from which the request originatesHibernateException
- Generally some form of mismatch error.java.sql.SQLException
- Indicates problem making the JDBC call(s).java.lang.Object get(java.sql.ResultSet rs, java.lang.String name) throws HibernateException, java.sql.SQLException
get(ResultSet, String, SessionImplementor)
instead.HibernateException
java.sql.SQLException
java.lang.Object get(java.sql.ResultSet rs, java.lang.String name, SessionImplementor session) throws HibernateException, java.sql.SQLException
rs
- The result set from which to extract the value.name
- The name of the value to extract.session
- The session from which the request originatesHibernateException
- Generally some form of mismatch error.java.sql.SQLException
- Indicates problem making the JDBC call(s).void nullSafeSet(java.sql.PreparedStatement st, T value, int index) throws HibernateException, java.sql.SQLException
Type.nullSafeSet(PreparedStatement, Object, int, SessionImplementor)
instead.HibernateException
java.sql.SQLException
void set(java.sql.PreparedStatement st, T value, int index) throws HibernateException, java.sql.SQLException
set(PreparedStatement, Object, int, SessionImplementor)
instead.HibernateException
java.sql.SQLException
void set(java.sql.PreparedStatement st, T value, int index, SessionImplementor session) throws HibernateException, java.sql.SQLException
nullSafeSet(java.sql.PreparedStatement, T, int)
after nullness checks have
been performed.st
- The statement into which to bind the parameter value.value
- The parameter value to bind.index
- The position or index at which to bind the param value.session
- The session from which the request originatesHibernateException
- Generally some form of mismatch error.java.sql.SQLException
- Indicates problem making the JDBC call(s).Copyright © 2014. All Rights Reserved.