|
Spring Data JDBC Extensions | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.jdbc.support.oracle.OracleXmlTypeValue
public class OracleXmlTypeValue
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 OracleXmlTypeValue(xmlDocument);
Map out = proc.execute(in);
SqlXmlValue,
SqlValue,
SimpleJdbcCall,
StoredProcedure| Constructor Summary | |
|---|---|
OracleXmlTypeValue(Document doc)
Constructor that takes one parameter with the XML Document value passed in to be used. |
|
OracleXmlTypeValue(InputStream stream)
Constructor that takes one parameter with the XML InputStream passed in to be used. |
|
OracleXmlTypeValue(String value)
Constructor that takes one parameter with the XML String value passed in 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 OracleXmlTypeValue(String value)
value - the String containing the XML to use.public OracleXmlTypeValue(InputStream stream)
stream - the InputStream containing the XML to use.public OracleXmlTypeValue(Document doc)
doc - the Document containing the values.| Method Detail |
|---|
public void setValue(PreparedStatement ps,
int paramIndex)
throws SQLException
setValue in interface SqlValueSQLExceptionSqlXmlValuepublic void cleanup()
cleanup in interface SqlValue
|
Spring Data JDBC Extensions | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||