java.lang.Object
org.seasar.doma.jdbc.type.AbstractJdbcType<ResultSet>
org.seasar.doma.jdbc.type.AbstractResultSetType
- All Implemented Interfaces:
SqlLogFormatter<ResultSet>,JdbcType<ResultSet>
- Direct Known Subclasses:
Oracle11Dialect.OracleResultSetType,PostgresDialect.PostgresResultSetType
A JDBC type for RDBMS specific SQL type and
ResultSet.-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.type.AbstractJdbcType
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoConvertToLogFormat(ResultSet value) protected ResultSetdoGetValue(CallableStatement callableStatement, int index) protected ResultSetdoGetValue(ResultSet resultSet, int index) protected voiddoSetValue(PreparedStatement preparedStatement, int index, ResultSet value) Does nothing.Retrieves the column value from theResultSetobject.voidsetValue(PreparedStatement preparedStatement, int index, ResultSet value) Sets the value to thePreparedStatementobject.Methods inherited from class org.seasar.doma.jdbc.type.AbstractJdbcType
convertToLogFormat, getValue, registerOutParameter
-
Constructor Details
-
AbstractResultSetType
protected AbstractResultSetType(int type) Creates an instance.- Parameters:
type- RDBMS specific SQL type
-
-
Method Details
-
getValue
Description copied from interface:JdbcTypeRetrieves the column value from theResultSetobject.- Specified by:
getValuein interfaceJdbcType<ResultSet>- Overrides:
getValuein classAbstractJdbcType<ResultSet>- Parameters:
resultSet- the result setindex- the column index- Returns:
- the column value
- Throws:
JdbcUnsupportedOperationException- if invoked
-
setValue
Description copied from interface:JdbcTypeSets the value to thePreparedStatementobject.- Specified by:
setValuein interfaceJdbcType<ResultSet>- Overrides:
setValuein classAbstractJdbcType<ResultSet>- Parameters:
preparedStatement- the prepared statementindex- the parameter indexvalue- the value- Throws:
JdbcUnsupportedOperationException- if invoked
-
doGetValue
- Specified by:
doGetValuein classAbstractJdbcType<ResultSet>- Returns:
null
-
doSetValue
Does nothing.- Specified by:
doSetValuein classAbstractJdbcType<ResultSet>
-
doGetValue
- Specified by:
doGetValuein classAbstractJdbcType<ResultSet>- Throws:
SQLException
-
doConvertToLogFormat
- Specified by:
doConvertToLogFormatin classAbstractJdbcType<ResultSet>
-