类 BaseTypeHandler<T>
java.lang.Object
cn.myafx.data.type.TypeReference<T>
cn.myafx.data.type.BaseTypeHandler<T>
- 所有已实现的接口:
TypeHandler<T>
- 直接已知子类:
ArrayTypeHandler,BigDecimalTypeHandler,BigIntegerTypeHandler,BlobByteObjectArrayTypeHandler,BlobInputStreamTypeHandler,BlobTypeHandler,BooleanTypeHandler,ByteArrayTypeHandler,ByteObjectArrayTypeHandler,ByteTypeHandler,CharacterTypeHandler,ClobReaderTypeHandler,ClobTypeHandler,DateOnlyTypeHandler,DateTypeHandler,DoubleTypeHandler,EnumOrdinalTypeHandler,EnumTypeHandler,FloatTypeHandler,InstantTypeHandler,IntegerTypeHandler,JapaneseDateTypeHandler,LocalDateTimeTypeHandler,LocalDateTypeHandler,LocalTimeTypeHandler,LongTypeHandler,MonthTypeHandler,NClobTypeHandler,NStringTypeHandler,ObjectTypeHandler,OffsetDateTimeTypeHandler,OffsetTimeTypeHandler,ShortTypeHandler,SqlDateTypeHandler,SqlTimestampTypeHandler,SqlTimeTypeHandler,SqlxmlTypeHandler,StringTypeHandler,TimeOnlyTypeHandler,YearMonthTypeHandler,YearTypeHandler,ZonedDateTimeTypeHandler
The base
TypeHandler for references a generic type.
Important: Since 3.5.0, This class never call the ResultSet.wasNull()
and
CallableStatement.wasNull() method for handling the SQL NULL
value.
In other words, null value handling should be performed on subclass.
- 作者:
- Clinton Begin, Simone Tripodi, Kzuki Shimizu
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract TgetNullableResult(CallableStatement cs, int columnIndex) abstract TgetNullableResult(ResultSet rs, int columnIndex) abstract TgetNullableResult(ResultSet rs, String columnName) Gets the nullable result.getResult(CallableStatement cs, int columnIndex) Gets the result.abstract voidsetParameter(PreparedStatement ps, int i, Object parameter) 从类继承的方法 cn.myafx.data.type.TypeReference
getRawType, toString
-
构造器详细资料
-
BaseTypeHandler
public BaseTypeHandler()
-
-
方法详细资料
-
getResult
从接口复制的说明:TypeHandlerGets the result.- 指定者:
getResult在接口中TypeHandler<T>- 参数:
rs- the rscolumnName- Column name, when configurationuseColumnLabelisfalse- 返回:
- the result
- 抛出:
Exception- the SQL exception
-
getResult
- 指定者:
getResult在接口中TypeHandler<T>- 抛出:
Exception
-
getResult
- 指定者:
getResult在接口中TypeHandler<T>- 抛出:
Exception
-
getNullableResult
Gets the nullable result.- 参数:
rs- the rscolumnName- Column name, when configurationuseColumnLabelisfalse- 返回:
- the nullable result
- 抛出:
Exception- the SQL exception
-
getNullableResult
- 参数:
rs- the rscolumnIndex- Column ndex- 返回:
- the nullable result
- 抛出:
Exception- the exception
-
getNullableResult
- 参数:
cs- the rscolumnIndex- Column ndex- 返回:
- the nullable result
- 抛出:
Exception- the exception
-
setParameter
- 指定者:
setParameter在接口中TypeHandler<T>- 抛出:
Exception
-