org.springframework.jdbc.support.xml.SqlXmlObjectMappingHandler |
Class Overview
Abstraction for handling XML object mapping to fields in a database.
Provides accessor methods for XML fields unmarshalled to an Object,
and acts as factory for SqlXmlValue
instances for marshalling
purposes.
Summary
Public Methods |
abstract
Object
|
getXmlAsObject(ResultSet rs, String columnName)
Retrieve the given column as an object marshalled from the XML data retrieved
from the given ResultSet.
|
abstract
Object
|
getXmlAsObject(ResultSet rs, int columnIndex)
Retrieve the given column as an object marshalled from the XML data retrieved
from the given ResultSet.
|
abstract
SqlXmlValue
|
newMarshallingSqlXmlValue(Object value)
Get an instance of an SqlXmlValue implementation to be used together
with the database specific implementation of this SqlXmlObjectMappingHandler .
|
[Expand]
Inherited Methods |
From interface
org.springframework.jdbc.support.xml.SqlXmlHandler
abstract
InputStream
|
getXmlAsBinaryStream(ResultSet rs, int columnIndex)
Retrieve the given column as binary stream from the given ResultSet.
|
abstract
InputStream
|
getXmlAsBinaryStream(ResultSet rs, String columnName)
Retrieve the given column as binary stream from the given ResultSet.
|
abstract
Reader
|
getXmlAsCharacterStream(ResultSet rs, String columnName)
Retrieve the given column as character stream from the given ResultSet.
|
abstract
Reader
|
getXmlAsCharacterStream(ResultSet rs, int columnIndex)
Retrieve the given column as character stream from the given ResultSet.
|
abstract
Source
|
getXmlAsSource(ResultSet rs, int columnIndex, Class sourceClass)
Retrieve the given column as Source implemented using the specified source class
from the given ResultSet.
|
abstract
Source
|
getXmlAsSource(ResultSet rs, String columnName, Class sourceClass)
Retrieve the given column as Source implemented using the specified source class
from the given ResultSet.
|
abstract
String
|
getXmlAsString(ResultSet rs, int columnIndex)
Retrieve the given column as String from the given ResultSet.
|
abstract
String
|
getXmlAsString(ResultSet rs, String columnName)
Retrieve the given column as String from the given ResultSet.
|
abstract
SqlXmlValue
|
newSqlXmlValue(XmlBinaryStreamProvider provider)
Create a SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver.
|
abstract
SqlXmlValue
|
newSqlXmlValue(Class resultClass, XmlResultProvider provider)
Create a SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver.
|
abstract
SqlXmlValue
|
newSqlXmlValue(XmlCharacterStreamProvider provider)
Create a SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver.
|
abstract
SqlXmlValue
|
newSqlXmlValue(Document doc)
Create a SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver.
|
abstract
SqlXmlValue
|
newSqlXmlValue(String value)
Create a SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver.
|
|
Public Methods
public
abstract
Object
getXmlAsObject
(ResultSet rs, String columnName)
Retrieve the given column as an object marshalled from the XML data retrieved
from the given ResultSet.
Works with an internal Object to XML Mapping implementation.
Parameters
rs
| the ResultSet to retrieve the content from |
columnName
| the column name to use |
Returns
- the content as an Object, or
null
in case of SQL NULL
public
abstract
Object
getXmlAsObject
(ResultSet rs, int columnIndex)
Retrieve the given column as an object marshalled from the XML data retrieved
from the given ResultSet.
Works with an internal Object to XML Mapping implementation.
Parameters
rs
| the ResultSet to retrieve the content from |
columnIndex
| the column index to use |
Returns
- the content as an Object, or
null
in case of SQL NULL
public
abstract
SqlXmlValue
newMarshallingSqlXmlValue
(Object value)
Get an instance of an SqlXmlValue
implementation to be used together
with the database specific implementation of this SqlXmlObjectMappingHandler
.
Parameters
value
| the Object to be marshalled to XML |
Returns
- the implementation specific instance