| org.springframework.jdbc.core.SqlReturnType
SqlReturnType | public interface SqlReturnType (Code) | | Interface to be implemented for retrieving values for more complex database-specific
types not supported by the standard CallableStatement.getObject method.
Implementations perform the actual work of getting the actual values. They must
implement the callback method getTypeValue which can throw SQLExceptions
that will be caught and translated by the calling code. This callback method has
access to the underlying Connection via the given CallableStatement object, if that
should be needed to create any database-specific objects.
author: Thomas Risberg since: 1.1 See Also: java.sql.Types See Also: java.sql.CallableStatement.getObject See Also: org.springframework.jdbc.object.StoredProcedure.execute(java.util.Map) |
Field Summary | |
int | TYPE_UNKNOWN Constant that indicates an unknown (or unspecified) SQL type. |
getTypeValue | Object getTypeValue(CallableStatement cs, int paramIndex, int sqlType, String typeName) throws SQLException(Code) | | Get the type value from the specific object.
Parameters: cs - the CallableStatement to operate on Parameters: paramIndex - the index of the parameter for which we need to set the value Parameters: sqlType - SQL type of the parameter we are setting Parameters: typeName - the type name of the parameter the target value throws: SQLException - if a SQLException is encountered setting parameter values(that is, there's no need to catch SQLException) See Also: java.sql.Types See Also: java.sql.CallableStatement.getObject |
|
|