|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.jdbc.support.oracle.OracleXmlTypeMarshallingValue
public class OracleXmlTypeMarshallingValue
Implementation of the SqlXmlValue interface, for convenient creation of type values that are provided As an XML Document.
A usage example from a StoredProcedure:
proc.declareParameter(new SqlParameter("myXml", OracleTypes.OPAQUE, "SYS.XMLTYPE"));
...
Map in = new HashMap();
in.put("myXml", new OracleXmlTypeMarshallingValue(object, marshaller);
Map out = proc.execute(in);
SqlXmlValue,
SqlValue| Constructor Summary | |
|---|---|
OracleXmlTypeMarshallingValue(Object value,
Marshaller marshaller)
Constructor that takes a parameter with the Object value and another with the Marshaller to be used. |
|
| Method Summary | |
|---|---|
void |
cleanup()
Close the XMLType |
void |
setValue(PreparedStatement ps,
int paramIndex)
The implementation for this specific type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OracleXmlTypeMarshallingValue(Object value,
Marshaller marshaller)
Marshaller to be used.
value - the Object containing the object to be marshalled.| Method Detail |
|---|
public void setValue(PreparedStatement ps,
int paramIndex)
throws SQLException
setValue in interface SqlValueSQLExceptionSqlXmlValuepublic void cleanup()
cleanup in interface SqlValue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||