public interface SingleColumnType<T> extends Type
BasicType
.Modifier and Type | Method and Description |
---|---|
T |
fromStringValue(String xml) |
Object |
get(ResultSet rs,
String name,
SharedSessionContractImplementor session)
Get a column value from a result set, without worrying about the possibility of null values.
|
T |
nullSafeGet(ResultSet rs,
String name,
SharedSessionContractImplementor session)
Get a column value from a result set by name.
|
void |
set(PreparedStatement st,
T value,
int index,
SharedSessionContractImplementor session)
Set a parameter value without worrying about the possibility of null
values.
|
int |
sqlType() |
String |
toString(T value) |
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
int sqlType()
String toString(T value) throws HibernateException
HibernateException
T fromStringValue(String xml) throws HibernateException
HibernateException
T nullSafeGet(ResultSet rs, String name, SharedSessionContractImplementor session) throws HibernateException, 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.SQLException
- Indicates problem making the JDBC call(s).Object get(ResultSet rs, String name, SharedSessionContractImplementor session) throws HibernateException, 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.SQLException
- Indicates problem making the JDBC call(s).void set(PreparedStatement st, T value, int index, SharedSessionContractImplementor session) throws HibernateException, SQLException
Type.nullSafeSet(java.sql.PreparedStatement, java.lang.Object, int, boolean[], org.hibernate.engine.spi.SharedSessionContractImplementor)
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.SQLException
- Indicates problem making the JDBC call(s).Copyright © 2021 JBoss by Red Hat. All rights reserved.