|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.jdbc.core.support.AbstractSqlTypeValue
org.springframework.data.jdbc.support.oracle.SqlStructValue<T>
public class SqlStructValue<T>
Implementation of the SqlTypeValue interface, for convenient creation of type values that to be provided as a STRUCT.
A usage example from a StoredProcedure:
proc.declareParameter(new SqlParameter("actor", OracleTypes.STRUCT, "ACTOR_TYPE"));
...
Map in = new HashMap();
in.put("myarray", new SqlArrayValue<Actor>(actor);
Map out = proc.execute(in);
SqlTypeValue,
AbstractSqlTypeValue,
SimpleJdbcCall,
StoredProcedure| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses |
| Fields inherited from interface org.springframework.jdbc.core.SqlTypeValue |
|---|
TYPE_UNKNOWN |
| Constructor Summary | |
|---|---|
SqlStructValue(T source)
Constructor that takes one parameter with the Object value passed in to the stored procedure. |
|
SqlStructValue(T source,
String defaultTypeName)
Constructor that takes two parameters, the Object value passed in to the statement and the default type name to be used when the context where this class is used is not aware of the type name to use. |
|
SqlStructValue(T source,
StructMapper mapper)
Constructor that takes two parameters, the Object value passed in to the statement and the StructMapper to be used |
|
SqlStructValue(T source,
StructMapper mapper,
String defaultTypeName)
Constructor that takes three parameters, the Object value passed in to the statement, the StructMapper to be used and the default type name
to be used when the context where this class is used is not aware of the type
name to use. |
|
| Method Summary | |
|---|---|
protected Object |
createTypeValue(Connection conn,
int sqlType,
String typeName)
The implementation for this specific type. |
| Methods inherited from class org.springframework.jdbc.core.support.AbstractSqlTypeValue |
|---|
setTypeValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public SqlStructValue(T source)
source - the Object containing the values to be mapped to the STRUCT.
public SqlStructValue(T source,
String defaultTypeName)
source - the Object containing the values to be mapped to the STRUCT.defaultTypeName - the default type name.
public SqlStructValue(T source,
StructMapper mapper)
StructMapper to be used
source - the Object containing the values to be mapped to the STRUCT.mapper - the mapper
public SqlStructValue(T source,
StructMapper mapper,
String defaultTypeName)
StructMapper to be used and the default type name
to be used when the context where this class is used is not aware of the type
name to use.
source - the Object containing the values to be mapped to the STRUCT.mapper - the mapperdefaultTypeName - the default type name.| Method Detail |
|---|
protected Object createTypeValue(Connection conn,
int sqlType,
String typeName)
throws SQLException
createTypeValue in class AbstractSqlTypeValueSQLExceptionAbstractSqlTypeValue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||