org.springframework.data.jdbc.support.oracle
Class SqlArrayValue
java.lang.Object
org.springframework.jdbc.core.support.AbstractSqlTypeValue
org.springframework.data.jdbc.support.oracle.SqlArrayValue
- All Implemented Interfaces:
- SqlTypeValue
public class SqlArrayValue
- extends AbstractSqlTypeValue
Implementation of the SqlTypeValue interface, for convenient
creation of type values that are provided As an ARRAY.
A usage example from a StoredProcedure:
proc.declareParameter(new SqlParameter("myarray", Types.ARRAY, "NUMBERS"));
...
Map in = new HashMap();
in.put("myarray", new SqlArrayValue(objectArray);
Map out = proc.execute(in);
- Since:
- 1.0
- Author:
- Thomas Risberg
- See Also:
SqlTypeValue,
AbstractSqlTypeValue,
SimpleJdbcCall,
StoredProcedure
|
Constructor Summary |
SqlArrayValue(Object[] values)
Constructor that takes one parameter with the array of values passed in to the stored
procedure. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlArrayValue
public SqlArrayValue(Object[] values)
- Constructor that takes one parameter with the array of values passed in to the stored
procedure.
- Parameters:
values - the array containing the values.
createTypeValue
protected Object createTypeValue(Connection conn,
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:
createTypeValue in class AbstractSqlTypeValue
- Throws:
SQLException- See Also:
AbstractSqlTypeValue
Copyright © 2011. All Rights Reserved.