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>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getResult(java.sql.CallableStatement cs, int columnIndex)
T
getResult(java.sql.ResultSet rs, int columnIndex)
T
getResult(java.sql.ResultSet rs, java.lang.String columnName)
Gets the result.void
setParameter(java.sql.PreparedStatement ps, int i, T parameter, JdbcType jdbcType)
-
-
-
Method Detail
-
setParameter
void setParameter(java.sql.PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getResult
T getResult(java.sql.ResultSet rs, java.lang.String columnName) throws java.sql.SQLException
Gets the result.- Parameters:
rs
- the rscolumnName
- Colunm name, when configurationuseColumnLabel
isfalse
- Returns:
- the result
- Throws:
java.sql.SQLException
- the SQL exception
-
getResult
T getResult(java.sql.ResultSet rs, int columnIndex) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getResult
T getResult(java.sql.CallableStatement cs, int columnIndex) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-