Class Jdbc4SqlXmlHandler
- All Implemented Interfaces:
- SqlXmlHandler
SqlXmlHandler interface.
 Provides database-specific implementations for storing and
 retrieving XML documents to and from fields in a database,
 relying on the JDBC 4.0 java.sql.SQLXML facility.- Since:
- 2.5.6
- Author:
- Thomas Risberg, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetXmlAsBinaryStream(ResultSet rs, int columnIndex) Deprecated.Retrieve the given column as binary stream from the given ResultSet.getXmlAsBinaryStream(ResultSet rs, String columnName) Deprecated.Retrieve the given column as binary stream from the given ResultSet.getXmlAsCharacterStream(ResultSet rs, int columnIndex) Deprecated.Retrieve the given column as character stream from the given ResultSet.getXmlAsCharacterStream(ResultSet rs, String columnName) Deprecated.Retrieve the given column as character stream from the given ResultSet.getXmlAsSource(ResultSet rs, int columnIndex, Class<? extends Source> sourceClass) Deprecated.Retrieve the given column as Source implemented using the specified source class from the given ResultSet.getXmlAsSource(ResultSet rs, String columnName, Class<? extends Source> sourceClass) Deprecated.Retrieve the given column as Source implemented using the specified source class from the given ResultSet.getXmlAsString(ResultSet rs, int columnIndex) Deprecated.Retrieve the given column as String from the given ResultSet.getXmlAsString(ResultSet rs, String columnName) Deprecated.Retrieve the given column as String from the given ResultSet.newSqlXmlValue(Class<? extends Result> resultClass, XmlResultProvider provider) Deprecated.Create aSqlXmlValueinstance for the given XML data, as supported by the underlying JDBC driver.newSqlXmlValue(String value) Deprecated.Create aSqlXmlValueinstance for the given XML data, as supported by the underlying JDBC driver.newSqlXmlValue(XmlBinaryStreamProvider provider) Deprecated.Create aSqlXmlValueinstance for the given XML data, as supported by the underlying JDBC driver.newSqlXmlValue(XmlCharacterStreamProvider provider) Deprecated.Create aSqlXmlValueinstance for the given XML data, as supported by the underlying JDBC driver.newSqlXmlValue(Document document) Deprecated.Create aSqlXmlValueinstance for the given XML data, as supported by the underlying JDBC driver.
- 
Constructor Details- 
Jdbc4SqlXmlHandlerpublic Jdbc4SqlXmlHandler()Deprecated.
 
- 
- 
Method Details- 
getXmlAsStringDeprecated.Description copied from interface:SqlXmlHandlerRetrieve the given column as String from the given ResultSet.Might simply invoke ResultSet.getStringor work withSQLXMLor database-specific classes depending on the database and driver.- Specified by:
- getXmlAsStringin interface- SqlXmlHandler
- Parameters:
- rs- the ResultSet to retrieve the content from
- columnName- the column name to use
- Returns:
- the content as String, or nullin case of SQL NULL
- Throws:
- SQLException- if thrown by JDBC methods
- See Also:
 
- 
getXmlAsStringDeprecated.Description copied from interface:SqlXmlHandlerRetrieve the given column as String from the given ResultSet.Might simply invoke ResultSet.getStringor work withSQLXMLor database-specific classes depending on the database and driver.- Specified by:
- getXmlAsStringin interface- SqlXmlHandler
- Parameters:
- rs- the ResultSet to retrieve the content from
- columnIndex- the column index to use
- Returns:
- the content as String, or nullin case of SQL NULL
- Throws:
- SQLException- if thrown by JDBC methods
- See Also:
 
- 
getXmlAsBinaryStream@Nullable public InputStream getXmlAsBinaryStream(ResultSet rs, String columnName) throws SQLException Deprecated.Description copied from interface:SqlXmlHandlerRetrieve the given column as binary stream from the given ResultSet.Might simply invoke ResultSet.getAsciiStreamor work withSQLXMLor database-specific classes depending on the database and driver.- Specified by:
- getXmlAsBinaryStreamin interface- SqlXmlHandler
- Parameters:
- rs- the ResultSet to retrieve the content from
- columnName- the column name to use
- Returns:
- the content as a binary stream, or nullin case of SQL NULL
- Throws:
- SQLException- if thrown by JDBC methods
- See Also:
 
- 
getXmlAsBinaryStream@Nullable public InputStream getXmlAsBinaryStream(ResultSet rs, int columnIndex) throws SQLException Deprecated.Description copied from interface:SqlXmlHandlerRetrieve the given column as binary stream from the given ResultSet.Might simply invoke ResultSet.getAsciiStreamor work withSQLXMLor database-specific classes depending on the database and driver.- Specified by:
- getXmlAsBinaryStreamin interface- SqlXmlHandler
- Parameters:
- rs- the ResultSet to retrieve the content from
- columnIndex- the column index to use
- Returns:
- the content as binary stream, or nullin case of SQL NULL
- Throws:
- SQLException- if thrown by JDBC methods
- See Also:
 
- 
getXmlAsCharacterStream@Nullable public Reader getXmlAsCharacterStream(ResultSet rs, String columnName) throws SQLException Deprecated.Description copied from interface:SqlXmlHandlerRetrieve the given column as character stream from the given ResultSet.Might simply invoke ResultSet.getCharacterStreamor work withSQLXMLor database-specific classes depending on the database and driver.- Specified by:
- getXmlAsCharacterStreamin interface- SqlXmlHandler
- Parameters:
- rs- the ResultSet to retrieve the content from
- columnName- the column name to use
- Returns:
- the content as character stream, or nullin case of SQL NULL
- Throws:
- SQLException- if thrown by JDBC methods
- See Also:
 
- 
getXmlAsCharacterStreamDeprecated.Description copied from interface:SqlXmlHandlerRetrieve the given column as character stream from the given ResultSet.Might simply invoke ResultSet.getCharacterStreamor work withSQLXMLor database-specific classes depending on the database and driver.- Specified by:
- getXmlAsCharacterStreamin interface- SqlXmlHandler
- Parameters:
- rs- the ResultSet to retrieve the content from
- columnIndex- the column index to use
- Returns:
- the content as character stream, or nullin case of SQL NULL
- Throws:
- SQLException- if thrown by JDBC methods
- See Also:
 
- 
getXmlAsSource@Nullable public Source getXmlAsSource(ResultSet rs, String columnName, @Nullable Class<? extends Source> sourceClass) throws SQLException Deprecated.Description copied from interface:SqlXmlHandlerRetrieve the given column as Source implemented using the specified source class from the given ResultSet.Might work with SQLXMLor database-specific classes depending on the database and driver.- Specified by:
- getXmlAsSourcein interface- SqlXmlHandler
- Parameters:
- rs- the ResultSet to retrieve the content from
- columnName- the column name to use
- sourceClass- the implementation class to be used
- Returns:
- the content as character stream, or nullin case of SQL NULL
- Throws:
- SQLException- if thrown by JDBC methods
- See Also:
 
- 
getXmlAsSource@Nullable public Source getXmlAsSource(ResultSet rs, int columnIndex, @Nullable Class<? extends Source> sourceClass) throws SQLException Deprecated.Description copied from interface:SqlXmlHandlerRetrieve the given column as Source implemented using the specified source class from the given ResultSet.Might work with SQLXMLor database-specific classes depending on the database and driver.- Specified by:
- getXmlAsSourcein interface- SqlXmlHandler
- Parameters:
- rs- the ResultSet to retrieve the content from
- columnIndex- the column index to use
- sourceClass- the implementation class to be used
- Returns:
- the content as character stream, or nullin case of SQL NULL
- Throws:
- SQLException- if thrown by JDBC methods
- See Also:
 
- 
newSqlXmlValueDeprecated.Description copied from interface:SqlXmlHandlerCreate aSqlXmlValueinstance for the given XML data, as supported by the underlying JDBC driver.- Specified by:
- newSqlXmlValuein interface- SqlXmlHandler
- Parameters:
- value- the XML String value providing XML data
- Returns:
- the implementation specific instance
- See Also:
 
- 
newSqlXmlValueDeprecated.Description copied from interface:SqlXmlHandlerCreate aSqlXmlValueinstance for the given XML data, as supported by the underlying JDBC driver.- Specified by:
- newSqlXmlValuein interface- SqlXmlHandler
- Parameters:
- provider- the- XmlBinaryStreamProviderproviding XML data
- Returns:
- the implementation specific instance
- See Also:
 
- 
newSqlXmlValueDeprecated.Description copied from interface:SqlXmlHandlerCreate aSqlXmlValueinstance for the given XML data, as supported by the underlying JDBC driver.- Specified by:
- newSqlXmlValuein interface- SqlXmlHandler
- Parameters:
- provider- the- XmlCharacterStreamProviderproviding XML data
- Returns:
- the implementation specific instance
- See Also:
 
- 
newSqlXmlValueDeprecated.Description copied from interface:SqlXmlHandlerCreate aSqlXmlValueinstance for the given XML data, as supported by the underlying JDBC driver.- Specified by:
- newSqlXmlValuein interface- SqlXmlHandler
- Parameters:
- resultClass- the Result implementation class to be used
- provider- the- XmlResultProviderthat will provide the XML data
- Returns:
- the implementation specific instance
- See Also:
 
- 
newSqlXmlValueDeprecated.Description copied from interface:SqlXmlHandlerCreate aSqlXmlValueinstance for the given XML data, as supported by the underlying JDBC driver.- Specified by:
- newSqlXmlValuein interface- SqlXmlHandler
- Parameters:
- document- the XML Document to be used
- Returns:
- the implementation specific instance
- See Also:
 
 
- 
ResultSet.getSQLXML(int)andConnection.createSQLXML()usage, possibly in combination with a customSqlValueimplementation