public interface SqlXmlObjectMappingHandler extends SqlXmlHandler
Provides accessor methods for XML fields unmarshalled to an Object,
and acts as factory for SqlXmlValue
instances for marshalling
purposes.
ResultSet.getSQLXML(int)
,
SQLXML
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getXmlAsObject(java.sql.ResultSet rs,
int columnIndex)
Retrieve the given column as an object marshalled from the XML data retrieved
from the given ResultSet.
|
java.lang.Object |
getXmlAsObject(java.sql.ResultSet rs,
java.lang.String columnName)
Retrieve the given column as an object marshalled from the XML data retrieved
from the given ResultSet.
|
SqlXmlValue |
newMarshallingSqlXmlValue(java.lang.Object value)
Get an instance of an
SqlXmlValue implementation to be used together
with the database specific implementation of this SqlXmlObjectMappingHandler . |
getXmlAsBinaryStream, getXmlAsBinaryStream, getXmlAsCharacterStream, getXmlAsCharacterStream, getXmlAsSource, getXmlAsSource, getXmlAsString, getXmlAsString, newSqlXmlValue, newSqlXmlValue, newSqlXmlValue, newSqlXmlValue, newSqlXmlValue
@Nullable java.lang.Object getXmlAsObject(java.sql.ResultSet rs, java.lang.String columnName) throws java.sql.SQLException
Works with an internal Object to XML Mapping implementation.
rs
- the ResultSet to retrieve the content fromcolumnName
- the column name to usenull
in case of SQL NULLjava.sql.SQLException
- if thrown by JDBC methodsResultSet.getSQLXML(int)
@Nullable java.lang.Object getXmlAsObject(java.sql.ResultSet rs, int columnIndex) throws java.sql.SQLException
Works with an internal Object to XML Mapping implementation.
rs
- the ResultSet to retrieve the content fromcolumnIndex
- the column index to usenull
in case of SQL NULLjava.sql.SQLException
- if thrown by JDBC methodsResultSet.getSQLXML(int)
SqlXmlValue newMarshallingSqlXmlValue(java.lang.Object value)
SqlXmlValue
implementation to be used together
with the database specific implementation of this SqlXmlObjectMappingHandler
.value
- the Object to be marshalled to XMLSqlXmlValue