- Type Parameters:
T- the Java type
- All Superinterfaces:
SqlLogFormatter<T>
- All Known Implementing Classes:
AbstractJdbcType,AbstractResultSetType,ArrayType,BigDecimalType,BigIntegerType,BlobType,BooleanType,BytesType,ByteType,ClobType,DateType,DoubleType,EnumType,FloatType,IntegerAdaptiveBooleanType,IntegerType,LocalDateTimeType,LocalDateType,LocalTimeType,LongType,NClobType,NStringType,ObjectType,Oracle11Dialect.OracleResultSetType,PortableObjectType,PostgresDialect.PostgresResultSetType,ShortType,SQLXMLType,StringType,TimestampType,TimeType,UtilDateType
An object that converts JDBC data from SQL types to Java types, and vice versa.
The implementation instance must be thread safe.
-
Method Summary
Modifier and TypeMethodDescriptiongetValue(CallableStatement callableStatement, int index) Retrieves the value from theCallableStatementobject.Retrieves the column value from theResultSetobject.voidregisterOutParameter(CallableStatement callableStatement, int index) Registers the OUT parameter to theCallableStatementobject.voidsetValue(PreparedStatement preparedStatement, int index, T value) Sets the value to thePreparedStatementobject.Methods inherited from interface org.seasar.doma.jdbc.SqlLogFormatter
convertToLogFormat
-
Method Details
-
getValue
Retrieves the column value from theResultSetobject.- Parameters:
resultSet- the result setindex- the column index- Returns:
- the column value
- Throws:
DomaNullPointerException- ifresultSetisnullDomaIllegalArgumentException- ifindexis 1 and belowSQLException- ifresultSetthrowsSQLException
-
setValue
Sets the value to thePreparedStatementobject.- Parameters:
preparedStatement- the prepared statementindex- the parameter indexvalue- the value- Throws:
DomaNullPointerException- ifpreparedStatementisnullDomaIllegalArgumentException-indexis 1 and belowSQLException- ifpreparedStatementthrowsSQLException
-
registerOutParameter
Registers the OUT parameter to theCallableStatementobject.- Parameters:
callableStatement- the callable statementindex- the parameter index- Throws:
DomaNullPointerException- ifcallableStatementisnullDomaIllegalArgumentException- ifindexis 1 and belowSQLException- ifcallableStatementthrowsSQLException
-
getValue
Retrieves the value from theCallableStatementobject.- Parameters:
callableStatement- the callable statementindex- the parameter index- Returns:
- the value
- Throws:
DomaNullPointerException- ifcallableStatementisnullDomaIllegalArgumentException- ifindexis 1 and belowSQLException- ifcallableStatementthrowsSQLException
-