T - the Java typepublic interface JdbcType<T> extends SqlLogFormatter<T>
The implementation instance must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
T |
getValue(java.sql.CallableStatement callableStatement,
int index)
Retrieves the value from the
CallableStatement object. |
T |
getValue(java.sql.ResultSet resultSet,
int index)
Retrieves the column value from the
ResultSet object. |
void |
registerOutParameter(java.sql.CallableStatement callableStatement,
int index)
Registers the OUT parameter to the
CallableStatement object. |
void |
setValue(java.sql.PreparedStatement preparedStatement,
int index,
T value)
Sets the value to the
PreparedStatement object. |
convertToLogFormatT getValue(java.sql.ResultSet resultSet, int index) throws DomaNullPointerException, java.sql.SQLException
ResultSet object.resultSet - the result setindex - the column indexDomaNullPointerException - if resultSet is nullDomaIllegalArgumentException - if index is 1 and belowjava.sql.SQLException - if resultSet throws SQLExceptionvoid setValue(java.sql.PreparedStatement preparedStatement,
int index,
T value)
throws java.sql.SQLException
PreparedStatement object.preparedStatement - the prepared statementindex - the parameter indexvalue - the valueDomaNullPointerException - if preparedStatement is nullDomaIllegalArgumentException - index is 1 and belowjava.sql.SQLException - if preparedStatement throws SQLExceptionvoid registerOutParameter(java.sql.CallableStatement callableStatement,
int index)
throws java.sql.SQLException
CallableStatement object.callableStatement - the callable statementindex - the parameter indexDomaNullPointerException - if callableStatement is nullDomaIllegalArgumentException - if index is 1 and belowjava.sql.SQLException - if callableStatement throws SQLExceptionT getValue(java.sql.CallableStatement callableStatement, int index) throws java.sql.SQLException
CallableStatement object.callableStatement - the callable statementindex - the parameter indexDomaNullPointerException - if callableStatement is nullDomaIllegalArgumentException - if index is 1 and belowjava.sql.SQLException - if callableStatement throws SQLException