spring-framework / org.springframework.jdbc.support.xml / SqlXmlObjectMappingHandler

SqlXmlObjectMappingHandler

interface SqlXmlObjectMappingHandler : SqlXmlHandler

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.

Author
Thomas Risberg

Since
2.5.5

See Also
java.sql.ResultSet#getSQLXMLjava.sql.SQLXML

Functions

getXmlAsObject

abstract fun getXmlAsObject(rs: ResultSet, columnName: String): Any
abstract fun getXmlAsObject(rs: ResultSet, columnIndex: Int): Any

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.

newMarshallingSqlXmlValue

abstract fun newMarshallingSqlXmlValue(value: Any): SqlXmlValue

Get an instance of an SqlXmlValue implementation to be used together with the database specific implementation of this SqlXmlObjectMappingHandler.