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 |
---|---|
Object |
getXmlAsObject(ResultSet rs,
int columnIndex)
Retrieve the given column as an object marshalled from the XML data retrieved
from the given ResultSet.
|
Object |
getXmlAsObject(ResultSet rs,
String columnName)
Retrieve the given column as an object marshalled from the XML data retrieved
from the given ResultSet.
|
SqlXmlValue |
newMarshallingSqlXmlValue(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 Object getXmlAsObject(ResultSet rs, String columnName) throws 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 NULLSQLException
- if thrown by JDBC methodsResultSet.getSQLXML(int)
@Nullable Object getXmlAsObject(ResultSet rs, int columnIndex) throws 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 NULLSQLException
- if thrown by JDBC methodsResultSet.getSQLXML(int)
SqlXmlValue newMarshallingSqlXmlValue(Object value)
SqlXmlValue
implementation to be used together
with the database specific implementation of this SqlXmlObjectMappingHandler
.value
- the Object to be marshalled to XMLSqlXmlValue