org.springframework.jdbc.support.xml.SqlXmlHandler |
Known Indirect Subclasses |
Abstraction for handling XML fields in specific databases. Its main purpose is to isolate database-specific handling of XML stored in the database.
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
getSQLXML(int)
setSQLXML(int, SQLXML)
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieve the given column as binary stream from the given ResultSet.
| |||||||||||
Retrieve the given column as binary stream from the given ResultSet.
| |||||||||||
Retrieve the given column as character stream from the given ResultSet.
| |||||||||||
Retrieve the given column as character stream from the given ResultSet.
| |||||||||||
Retrieve the given column as Source implemented using the specified source class
from the given ResultSet.
| |||||||||||
Retrieve the given column as Source implemented using the specified source class
from the given ResultSet.
| |||||||||||
Retrieve the given column as String from the given ResultSet.
| |||||||||||
Retrieve the given column as String from the given ResultSet.
| |||||||||||
Create a
SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver. | |||||||||||
Create a
SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver. | |||||||||||
Create a
SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver. | |||||||||||
Create a
SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver. | |||||||||||
Create a
SqlXmlValue instance for the given XML data,
as supported by the underlying JDBC driver. |
Retrieve the given column as binary stream from the given ResultSet.
Might simply invoke ResultSet.getAsciiStream
or work with
SQLXML
or database-specific classes depending on the
database and driver.
rs | the ResultSet to retrieve the content from |
---|---|
columnIndex | the column index to use |
null
in case of SQL NULLSQLException | if thrown by JDBC methods |
---|
Retrieve the given column as binary stream from the given ResultSet.
Might simply invoke ResultSet.getAsciiStream
or work with
SQLXML
or database-specific classes depending on the
database and driver.
rs | the ResultSet to retrieve the content from |
---|---|
columnName | the column name to use |
null
in case of SQL NULLSQLException | if thrown by JDBC methods |
---|
Retrieve the given column as character stream from the given ResultSet.
Might simply invoke ResultSet.getCharacterStream
or work with
SQLXML
or database-specific classes depending on the
database and driver.
rs | the ResultSet to retrieve the content from |
---|---|
columnName | the column name to use |
SQLException | if thrown by JDBC methods |
---|
Retrieve the given column as character stream from the given ResultSet.
Might simply invoke ResultSet.getCharacterStream
or work with
SQLXML
or database-specific classes depending on the
database and driver.
rs | the ResultSet to retrieve the content from |
---|---|
columnIndex | the column index to use |
SQLException | if thrown by JDBC methods |
---|
Retrieve the given column as Source implemented using the specified source class from the given ResultSet.
Might work with SQLXML
or database-specific classes depending
on the database and driver.
rs | the ResultSet to retrieve the content from |
---|---|
columnIndex | the column index to use |
sourceClass | the implementation class to be used |
SQLException | if thrown by JDBC methods |
---|
Retrieve the given column as Source implemented using the specified source class from the given ResultSet.
Might work with SQLXML
or database-specific classes depending
on the database and driver.
rs | the ResultSet to retrieve the content from |
---|---|
columnName | the column name to use |
sourceClass | the implementation class to be used |
SQLException | if thrown by JDBC methods |
---|
Retrieve the given column as String from the given ResultSet.
Might simply invoke ResultSet.getString
or work with
SQLXML
or database-specific classes depending on the
database and driver.
rs | the ResultSet to retrieve the content from |
---|---|
columnIndex | the column index to use |
null
in case of SQL NULLSQLException | if thrown by JDBC methods |
---|
Retrieve the given column as String from the given ResultSet.
Might simply invoke ResultSet.getString
or work with
SQLXML
or database-specific classes depending on the
database and driver.
rs | the ResultSet to retrieve the content from |
---|---|
columnName | the column name to use |
null
in case of SQL NULLSQLException | if thrown by JDBC methods |
---|
Create a SqlXmlValue
instance for the given XML data,
as supported by the underlying JDBC driver.
provider | the XmlBinaryStreamProvider providing XML data |
---|
Create a SqlXmlValue
instance for the given XML data,
as supported by the underlying JDBC driver.
resultClass | the Result implementation class to be used |
---|---|
provider | the XmlResultProvider that will provide the XML data |
Create a SqlXmlValue
instance for the given XML data,
as supported by the underlying JDBC driver.
provider | the XmlCharacterStreamProvider providing XML data |
---|
Create a SqlXmlValue
instance for the given XML data,
as supported by the underlying JDBC driver.
doc | the XML Document to be used |
---|
Create a SqlXmlValue
instance for the given XML data,
as supported by the underlying JDBC driver.
value | the XML String value providing XML data |
---|