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.
java.sql.SQLXML , java.sql.ResultSet#getSQLXML , java.sql.PreparedStatement#setSQLXML
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | Jdbc4SqlXmlHandler.AbstractJdbc4SqlXmlValue
Internal base class for |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | getXmlAsBinaryStream(ResultSet
the ResultSet to retrieve the content from rs, String the column name to use columnName)Implements org. |
| public InputStream | getXmlAsBinaryStream(ResultSet
the ResultSet to retrieve the content from rs, int the column index to use columnIndex)Implements org. |
| public Reader | getXmlAsCharacterStream(ResultSet
the ResultSet to retrieve the content from rs, String the column name to use columnName)Implements org. |
| public Reader | getXmlAsCharacterStream(ResultSet
the ResultSet to retrieve the content from rs, int the column index to use columnIndex)Implements org. |
| public Source | getXmlAsSource(ResultSet
the ResultSet to retrieve the content from rs, String the column name to use columnName, Class<? extends Source> the implementation class to be used sourceClass)Implements org. |
| public Source | getXmlAsSource(ResultSet
the ResultSet to retrieve the content from rs, int the column index to use columnIndex, Class<? extends Source> the implementation class to be used sourceClass)Implements org. |
| public String | getXmlAsString(ResultSet
the ResultSet to retrieve the content from rs, String the column name to use columnName)Implements org. |
| public String | getXmlAsString(ResultSet
the ResultSet to retrieve the content from rs, int the column index to use columnIndex)Implements org. |
| public SqlXmlValue | newSqlXmlValue(final String
the XML String value providing XML data value)Implements org. SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver.
|
| public SqlXmlValue | newSqlXmlValue(final XmlBinaryStreamProvider
the provider)XmlBinaryStreamProvider providing XML dataImplements org. SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver.
|
| public SqlXmlValue | newSqlXmlValue(final XmlCharacterStreamProvider
the provider)XmlCharacterStreamProvider providing XML dataImplements org. SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver.
|
| public SqlXmlValue | newSqlXmlValue(final Class<? extends Result>
the Result implementation class to be used resultClass, final XmlResultProvider the provider)XmlResultProvider that will provide the XML dataImplements org. SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver.
|
| public SqlXmlValue | newSqlXmlValue(final Document
the XML Document to be used document)Implements org. SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver.
|
| Jdbc4SqlXmlHandler | back to summary |
|---|---|
| public Jdbc4SqlXmlHandler() | |
| getXmlAsBinaryStream | back to summary |
|---|---|
| public InputStream getXmlAsBinaryStream(ResultSet rs, String columnName) throws SQLException Implements org. Doc from org. Retrieve the given column as binary stream from the given ResultSet. Might simply invoke
| |
| getXmlAsBinaryStream | back to summary |
|---|---|
| public InputStream getXmlAsBinaryStream(ResultSet rs, int columnIndex) throws SQLException Implements org. Doc from org. Retrieve the given column as binary stream from the given ResultSet. Might simply invoke
| |
| getXmlAsCharacterStream | back to summary |
|---|---|
| public Reader getXmlAsCharacterStream(ResultSet rs, String columnName) throws SQLException Implements org. Doc from org. Retrieve the given column as character stream from the given ResultSet. Might simply invoke | |
| getXmlAsCharacterStream | back to summary |
|---|---|
| public Reader getXmlAsCharacterStream(ResultSet rs, int columnIndex) throws SQLException Implements org. Doc from org. Retrieve the given column as character stream from the given ResultSet. Might simply invoke
| |
| getXmlAsSource | back to summary |
|---|---|
| public Source getXmlAsSource(ResultSet rs, String columnName, Class<? extends Source> sourceClass) throws SQLException Implements org. Doc from org. Retrieve the given column as Source implemented using the specified source class from the given ResultSet. Might work with
| |
| getXmlAsSource | back to summary |
|---|---|
| public Source getXmlAsSource(ResultSet rs, int columnIndex, Class<? extends Source> sourceClass) throws SQLException Implements org. Doc from org. Retrieve the given column as Source implemented using the specified source class from the given ResultSet. Might work with
| |
| getXmlAsString | back to summary |
|---|---|
| public String getXmlAsString(ResultSet rs, String columnName) throws SQLException Implements org. Doc from org. Retrieve the given column as String from the given ResultSet. Might simply invoke | |
| getXmlAsString | back to summary |
|---|---|
| public String getXmlAsString(ResultSet rs, int columnIndex) throws SQLException Implements org. Doc from org. Retrieve the given column as String from the given ResultSet. Might simply invoke
| |
| newSqlXmlValue | back to summary |
|---|---|
| public SqlXmlValue newSqlXmlValue(final String value) Implements org. Doc from org. Create a
| |
| newSqlXmlValue | back to summary |
|---|---|
| public SqlXmlValue newSqlXmlValue(final XmlBinaryStreamProvider provider) Implements org. Doc from org. Create a
| |
| newSqlXmlValue | back to summary |
|---|---|
| public SqlXmlValue newSqlXmlValue(final XmlCharacterStreamProvider provider) Implements org. Doc from org. Create a
| |
| newSqlXmlValue | back to summary |
|---|---|
| public SqlXmlValue newSqlXmlValue(final Class<? extends Result> resultClass, final XmlResultProvider provider) Implements org. Doc from org. Create a
| |
| newSqlXmlValue | back to summary |
|---|---|
| public SqlXmlValue newSqlXmlValue(final Document document) Implements org. Doc from org. Create a
| |
SqlXmlValue implementations.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | cleanup()
Implements org. |
| protected abstract void | |
| public void | setValue(PreparedStatement
the PreparedStatement to work on ps, int the index of the parameter for which we need to set the value paramIndex)Implements org. |
| xmlObject | back to summary |
|---|---|
| private SQLXML xmlObject
| |
| AbstractJdbc4SqlXmlValue | back to summary |
|---|---|
| private AbstractJdbc4SqlXmlValue() | |
| cleanup | back to summary |
|---|---|
| public void cleanup() Implements org. Doc from org. Clean up resources held by this value object.
| |
| provideXml | back to summary |
|---|---|
| protected abstract void provideXml(SQLXML xmlObject) throws SQLException, IOException | |
| setValue | back to summary |
|---|---|
| public void setValue(PreparedStatement ps, int paramIndex) throws SQLException Implements org. Doc from org. Set the value on the given PreparedStatement.
| |