org.springframework.data.jdbc.support.oracle
Class SqlReturnArray
java.lang.Object
org.springframework.data.jdbc.support.oracle.SqlReturnArray
- All Implemented Interfaces:
- SqlReturnType
public class SqlReturnArray
- extends Object
- implements SqlReturnType
Implementation of the SqlReturnType interface, for convenient
access of ARRAYs of scalar values returned from stored procedure.
A usage example from a StoredProcedure:
proc.declareParameter(new SqlOutParameter("return", Types.ARRAY, "ACTOR_NAME_ARRAY",
new SqlReturnArray()));
- Since:
- 1.0
- Author:
- Thomas Risberg
- See Also:
SqlReturnType,
SimpleJdbcCall,
StoredProcedure
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlReturnArray
public SqlReturnArray()
getTypeValue
public Object getTypeValue(CallableStatement cs,
int i,
int sqlType,
String typeName)
throws SQLException
- The implementation for this specific type. This method is called internally by the
Spring Framework during the out parameter processing and it's not accessed by appplication
code directly.
- Specified by:
getTypeValue in interface SqlReturnType
- Throws:
SQLException