Spring Data JDBC Extensions

org.springframework.data.jdbc.support.oracle
Interface XmlTypeHandler

All Known Implementing Classes:
AbstractXmlTypeHandler, DocumentXmlTypeHandler, StreamXmlTypeHandler, StringXmlTypeHandler

public interface XmlTypeHandler

The interface needed to be implementated by any classes that will perform the low level handling of XMLType objects - both creation and retrieval of the content.

Since:
1.0
Author:
Thomas Risberg

Method Summary
 oracle.xdb.XMLType createXmlType(Object object, Connection conn)
          Create an XMLType for the supplied object using the provided connection
 Object getXmlContent(oracle.xdb.XMLType data)
          Extract the data from an XMLType
 

Method Detail

createXmlType

oracle.xdb.XMLType createXmlType(Object object,
                                 Connection conn)
                                 throws DataRetrievalFailureException
Create an XMLType for the supplied object using the provided connection

Parameters:
object - The object contining the data to be represented in the XMLType
conn - the Connection to use
Returns:
the XMLType populated with data from the object passed in
Throws:
DataRetrievalFailureException

getXmlContent

Object getXmlContent(oracle.xdb.XMLType data)
                     throws DataRetrievalFailureException
Extract the data from an XMLType

Parameters:
data - the XMLType containing the XML data
Returns:
the object containing the data extracted from the XML
Throws:
DataRetrievalFailureException

Spring Data JDBC Extensions