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.
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. Retrieve the given column as binary stream from the given ResultSet. |
| public InputStream | getXmlAsBinaryStream(ResultSet
the ResultSet to retrieve the content from rs, int the column index to use columnIndex)Implements org. Retrieve the given column as binary stream from the given ResultSet. |
| public Reader | getXmlAsCharacterStream(ResultSet
the ResultSet to retrieve the content from rs, String the column name to use columnName)Implements org. Retrieve the given column as character stream from the given ResultSet. |
| public Reader | getXmlAsCharacterStream(ResultSet
the ResultSet to retrieve the content from rs, int the column index to use columnIndex)Implements org. Retrieve the given column as character stream from the given ResultSet. |
| 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. Retrieve the given column as Source implemented using the specified source class from the given ResultSet. |
| 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. Retrieve the given column as Source implemented using the specified source class from the given ResultSet. |
| public String | getXmlAsString(ResultSet
the ResultSet to retrieve the content from rs, String the column name to use columnName)Implements org. Retrieve the given column as String from the given ResultSet. |
| public String | getXmlAsString(ResultSet
the ResultSet to retrieve the content from rs, int the column index to use columnIndex)Implements org. Retrieve the given column as String from the given ResultSet. |
| public SqlXmlValue | newSqlXmlValue(final String
the XML String value providing XML data value)Implements org. Create a |
| public SqlXmlValue | newSqlXmlValue(final XmlBinaryStreamProvider
the provider)XmlBinaryStreamProvider providing XML dataImplements org. Create a |
| public SqlXmlValue | newSqlXmlValue(final XmlCharacterStreamProvider
the provider)XmlCharacterStreamProvider providing XML dataImplements org. Create a |
| 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. Create a |
| public SqlXmlValue | newSqlXmlValue(final Document
the XML Document to be used document)Implements org. Create a |
| 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. Clean up resources held by this value object. |
| 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. Set the value on the given PreparedStatement. |
| 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.
| |