|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SqlXmlObjectMappingHandler
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.
ResultSet.getSQLXML(int)
,
SQLXML
Method Summary | |
---|---|
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 . |
Methods inherited from interface org.springframework.jdbc.support.xml.SqlXmlHandler |
---|
getXmlAsBinaryStream, getXmlAsBinaryStream, getXmlAsCharacterStream, getXmlAsCharacterStream, getXmlAsSource, getXmlAsSource, getXmlAsString, getXmlAsString, newSqlXmlValue, newSqlXmlValue, newSqlXmlValue, newSqlXmlValue, newSqlXmlValue |
Method Detail |
---|
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 use
null
in case of SQL NULL
SQLException
- if thrown by JDBC methodsResultSet.getSQLXML(int)
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 use
null
in case of SQL NULL
SQLException
- 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 XML
SqlXmlValue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |