Package org.apache.ibatis.type
Interface TypeHandler<T>
-
- All Known Implementing Classes:
ArrayTypeHandler,BaseTypeHandler,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,UnknownTypeHandler,YearMonthTypeHandler,YearTypeHandler,ZonedDateTimeTypeHandler
public interface TypeHandler<T>- Author:
- Clinton Begin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetResult(CallableStatement cs, int columnIndex)TgetResult(ResultSet rs, int columnIndex)TgetResult(ResultSet rs, String columnName)Gets the result.voidsetParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType)
-
-
-
Method Detail
-
setParameter
void setParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException
- Throws:
SQLException
-
getResult
T getResult(ResultSet rs, String columnName) throws SQLException
Gets the result.- Parameters:
rs- the rscolumnName- Column name, when configurationuseColumnLabelisfalse- Returns:
- the result
- Throws:
SQLException- the SQL exception
-
getResult
T getResult(ResultSet rs, int columnIndex) throws SQLException
- Throws:
SQLException
-
getResult
T getResult(CallableStatement cs, int columnIndex) throws SQLException
- Throws:
SQLException
-
-