接口 SingleColumnType<T>
-
- 所有超级接口:
Serializable,Type
- 所有已知实现类:
AbstractSingleColumnStandardBasicType,AdaptedImmutableType,AttributeConverterTypeAdapter,BigDecimalType,BigIntegerType,BinaryType,BlobType,BooleanType,ByteType,CalendarDateType,CalendarTimeType,CalendarType,CharacterArrayClobType,CharacterArrayNClobType,CharacterArrayType,CharacterNCharType,CharacterType,CharArrayType,ClassType,ClobType,CurrencyType,DateType,DbTimestampType,DoubleType,DurationType,FloatType,ImageType,InstantType,IntegerType,LocalDateTimeType,LocalDateType,LocaleType,LocalTimeType,LongType,MaterializedBlobType,MaterializedClobType,MaterializedNClobType,NClobType,NTextType,NumericBooleanType,OffsetDateTimeType,OffsetTimeType,PostgresUUIDType,PrimitiveCharacterArrayClobType,PrimitiveCharacterArrayNClobType,RowVersionType,SerializableToBlobType,SerializableType,ShortType,StandardBasicTypeTemplate,StringNVarcharType,StringType,TextType,TimestampType,TimeType,TimeZoneType,TrueFalseType,UrlType,UUIDBinaryType,UUIDCharType,WrappedMaterializedBlobType,WrapperBinaryType,YesNoType,ZonedDateTimeType
public interface SingleColumnType<T> extends Type
Provide convenient methods for binding and extracting values for use withBasicType.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 TfromStringValue(String xml)Objectget(ResultSet rs, String name, SharedSessionContractImplementor session)Get a column value from a result set, without worrying about the possibility of null values.TnullSafeGet(ResultSet rs, String name, SharedSessionContractImplementor session)Get a column value from a result set by name.voidset(PreparedStatement st, T value, int index, SharedSessionContractImplementor session)Set a parameter value without worrying about the possibility of null values.intsqlType()StringtoString(T value)-
从接口继承的方法 org.hibernate.type.Type
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
-
-
-
-
方法详细资料
-
sqlType
int sqlType()
-
toString
String toString(T value) throws HibernateException
-
fromStringValue
T fromStringValue(String xml) throws HibernateException
-
nullSafeGet
T nullSafeGet(ResultSet rs, String name, SharedSessionContractImplementor session) throws HibernateException, SQLException
Get a column value from a result set by name.- 参数:
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 originates- 返回:
- The extracted value.
- 抛出:
HibernateException- Generally some form of mismatch error.SQLException- Indicates problem making the JDBC call(s).
-
get
Object get(ResultSet rs, String name, SharedSessionContractImplementor session) throws HibernateException, SQLException
Get a column value from a result set, without worrying about the possibility of null values.- 参数:
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 originates- 返回:
- The extracted value.
- 抛出:
HibernateException- Generally some form of mismatch error.SQLException- Indicates problem making the JDBC call(s).
-
set
void set(PreparedStatement st, T value, int index, SharedSessionContractImplementor session) throws HibernateException, SQLException
Set a parameter value without worrying about the possibility of null values. Called fromType.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 originates- 抛出:
HibernateException- Generally some form of mismatch error.SQLException- Indicates problem making the JDBC call(s).
-
-