org.springframework.jdbc.support.xml
Class Jdbc4SqlXmlHandler.AbstractJdbc4SqlXmlValue
java.lang.Object
org.springframework.jdbc.support.xml.Jdbc4SqlXmlHandler.AbstractJdbc4SqlXmlValue
- All Implemented Interfaces:
- SqlValue, SqlXmlValue
- Enclosing class:
- Jdbc4SqlXmlHandler
private abstract static class Jdbc4SqlXmlHandler.AbstractJdbc4SqlXmlValue
- extends java.lang.Object
- implements SqlXmlValue
Internal base class for SqlXmlValue
implementations.
Field Summary |
private java.sql.SQLXML |
xmlObject
|
Method Summary |
void |
cleanup()
Clean up resources held by this value object. |
protected abstract void |
provideXml(java.sql.SQLXML xmlObject)
|
void |
setValue(java.sql.PreparedStatement ps,
int paramIndex)
Set the value on the given PreparedStatement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xmlObject
private java.sql.SQLXML xmlObject
Jdbc4SqlXmlHandler.AbstractJdbc4SqlXmlValue
private Jdbc4SqlXmlHandler.AbstractJdbc4SqlXmlValue()
setValue
public void setValue(java.sql.PreparedStatement ps,
int paramIndex)
throws java.sql.SQLException
- Description copied from interface:
SqlValue
- Set the value on the given PreparedStatement.
- Specified by:
setValue
in interface SqlValue
- Parameters:
ps
- the PreparedStatement to work onparamIndex
- the index of the parameter for which we need to set the value
- Throws:
java.sql.SQLException
- if a SQLException is encountered while setting parameter values
cleanup
public void cleanup()
- Description copied from interface:
SqlValue
- Clean up resources held by this value object.
- Specified by:
cleanup
in interface SqlValue
provideXml
protected abstract void provideXml(java.sql.SQLXML xmlObject)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException