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

getXmlAsObject

@Nullable abstract fun getXmlAsObject(rs: ResultSet, columnName: String): 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.

Parameters

rs - the ResultSet to retrieve the content from

columnName - the column name to use

Exceptions

java.sql.SQLException - if thrown by JDBC methods

Return
the content as an Object, or null in case of SQL NULL

See Also
java.sql.ResultSet#getSQLXML

@Nullable 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.

Parameters

rs - the ResultSet to retrieve the content from

columnIndex - the column index to use

Exceptions

java.sql.SQLException - if thrown by JDBC methods

Return
the content as an Object, or null in case of SQL NULL

See Also
java.sql.ResultSet#getSQLXML