public interface SqlReturnType
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.
Types
,
CallableStatement.getObject(int)
,
StoredProcedure.execute(java.util.Map)
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_UNKNOWN
Constant that indicates an unknown (or unspecified) SQL type.
|
Modifier and Type | Method and Description |
---|---|
Object |
getTypeValue(CallableStatement cs,
int paramIndex,
int sqlType,
String typeName)
Get the type value from the specific object.
|
static final int TYPE_UNKNOWN
Object getTypeValue(CallableStatement cs, int paramIndex, int sqlType, String typeName) throws SQLException
cs
- the CallableStatement to operate onparamIndex
- the index of the parameter for which we need to set the valuesqlType
- SQL type of the parameter we are settingtypeName
- the type name of the parameterSQLException
- if a SQLException is encountered setting parameter values
(that is, there's no need to catch SQLException)Types
,
CallableStatement.getObject(int)