JDBC 4.0 introduces the new data type java.sql.SQLXML
but most databases and their drivers currently rely on database-specific
data types and features.
Provides accessor methods for XML fields and acts as factory for
SqlXmlValue instances.
Jdbc4SqlXmlHandler, java.sql.SQLXML , java.sql.ResultSet#getSQLXML , java.sql.PreparedStatement#setSQLXML
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | Returns: the content as a binary stream, ornull in case of SQL NULLthe ResultSet to retrieve the content from rs, String the column name to use columnName)Retrieve the given column as binary stream from the given ResultSet. |
| public InputStream | Returns: the content as binary stream, ornull in case of SQL NULLthe ResultSet to retrieve the content from rs, int the column index to use columnIndex)Retrieve the given column as binary stream from the given ResultSet. |
| public Reader | Returns: the content as character stream, ornull in case of SQL NULLthe ResultSet to retrieve the content from rs, String the column name to use columnName)Retrieve the given column as character stream from the given ResultSet. |
| public Reader | Returns: the content as character stream, ornull in case of SQL NULLthe ResultSet to retrieve the content from rs, int the column index to use columnIndex)Retrieve the given column as character stream from the given ResultSet. |
| public Source | Returns: the content as character stream, ornull in case of SQL NULLthe ResultSet to retrieve the content from rs, String the column name to use columnName, Class<? extends Source> the implementation class to be used sourceClass)Retrieve the given column as Source implemented using the specified source class from the given ResultSet. |
| public Source | Returns: the content as character stream, ornull in case of SQL NULLthe ResultSet to retrieve the content from rs, int the column index to use columnIndex, Class<? extends Source> the implementation class to be used sourceClass)Retrieve the given column as Source implemented using the specified source class from the given ResultSet. |
| public String | Returns: the content as String, ornull in case of SQL NULLthe ResultSet to retrieve the content from rs, String the column name to use columnName)Retrieve the given column as String from the given ResultSet. |
| public String | Returns: the content as String, ornull in case of SQL NULLthe ResultSet to retrieve the content from rs, int the column index to use columnIndex)Retrieve the given column as String from the given ResultSet. |
| public SqlXmlValue | Returns: the implementation specific instancethe XML String value providing XML data value)Create a |
| public SqlXmlValue | Returns: the implementation specific instancethe provider)XmlBinaryStreamProvider providing XML dataCreate a |
| public SqlXmlValue | Returns: the implementation specific instancethe provider)XmlCharacterStreamProvider providing XML dataCreate a |
| public SqlXmlValue | Returns: the implementation specific instancethe Result implementation class to be used resultClass, XmlResultProvider the provider)XmlResultProvider that will provide the XML dataCreate a |
| public SqlXmlValue | Returns: the implementation specific instancethe XML Document to be used doc)Create a |
| getXmlAsBinaryStream | back to summary |
|---|---|
| public InputStream getXmlAsBinaryStream(ResultSet rs, String columnName) throws SQLException 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 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 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 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 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 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 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 Retrieve the given column as String from the given ResultSet. Might simply invoke
| |
| newSqlXmlValue | back to summary |
|---|---|
| public SqlXmlValue newSqlXmlValue(String value) Create a
| |
| newSqlXmlValue | back to summary |
|---|---|
| public SqlXmlValue newSqlXmlValue(XmlBinaryStreamProvider provider) Create a
| |
| newSqlXmlValue | back to summary |
|---|---|
| public SqlXmlValue newSqlXmlValue(XmlCharacterStreamProvider provider) Create a
| |
| newSqlXmlValue | back to summary |
|---|---|
| public SqlXmlValue newSqlXmlValue(Class<? extends Result> resultClass, XmlResultProvider provider) Create a
| |
| newSqlXmlValue | back to summary |
|---|---|
| public SqlXmlValue newSqlXmlValue(Document doc) Create a
| |