Package org.h2.jdbc
Class JdbcSQLXML
- java.lang.Object
-
- org.h2.message.TraceObject
-
- org.h2.jdbc.JdbcLob
-
- org.h2.jdbc.JdbcSQLXML
-
- All Implemented Interfaces:
java.sql.SQLXML
public final class JdbcSQLXML extends JdbcLob implements java.sql.SQLXML
Represents a SQLXML value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.h2.jdbc.JdbcLob
JdbcLob.LobPipedOutputStream, JdbcLob.State
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.CloseableclosableUnderlying stream for SAXResult, StAXResult, and StreamResult.private javax.xml.transform.dom.DOMResultdomResultprivate static org.xml.sax.EntityResolverNOOP_ENTITY_RESOLVERprivate static javax.xml.transform.URIResolverNOOP_URI_RESOLVERprivate static java.util.Map<java.lang.String,java.lang.Boolean>secureFeatureMap-
Fields inherited from class org.h2.message.TraceObject
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQLXML, STATEMENT, trace, XA_DATA_SOURCE, XID
-
-
Constructor Summary
Constructors Constructor Description JdbcSQLXML(JdbcConnection conn, Value value, JdbcLob.State state, int id)INTERNAL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcheckReadable()Check the state of the LOB and throws the exception when check failed (the LOB must be set completely before read).java.io.InputStreamgetBinaryStream()Returns the input stream.java.io.ReadergetCharacterStream()Returns the reader.<T extends javax.xml.transform.Source>
TgetSource(java.lang.Class<T> sourceClass)java.lang.StringgetString()java.io.OutputStreamsetBinaryStream()java.io.WritersetCharacterStream()<T extends javax.xml.transform.Result>
TsetResult(java.lang.Class<T> resultClass)voidsetString(java.lang.String value)-
Methods inherited from class org.h2.jdbc.JdbcLob
checkClosed, checkEditable, completeWrite, free, setCharacterStreamImpl, setClobOutputStreamImpl, toString
-
Methods inherited from class org.h2.message.TraceObject
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
-
-
-
-
Field Detail
-
secureFeatureMap
private static final java.util.Map<java.lang.String,java.lang.Boolean> secureFeatureMap
-
NOOP_ENTITY_RESOLVER
private static final org.xml.sax.EntityResolver NOOP_ENTITY_RESOLVER
-
NOOP_URI_RESOLVER
private static final javax.xml.transform.URIResolver NOOP_URI_RESOLVER
-
domResult
private javax.xml.transform.dom.DOMResult domResult
-
closable
private java.io.Closeable closable
Underlying stream for SAXResult, StAXResult, and StreamResult.
-
-
Constructor Detail
-
JdbcSQLXML
public JdbcSQLXML(JdbcConnection conn, Value value, JdbcLob.State state, int id)
INTERNAL- Parameters:
conn- to usevalue- for this JdbcSQLXMLstate- of the LOBid- of the trace object
-
-
Method Detail
-
checkReadable
void checkReadable() throws java.sql.SQLException, java.io.IOExceptionDescription copied from class:JdbcLobCheck the state of the LOB and throws the exception when check failed (the LOB must be set completely before read).- Overrides:
checkReadablein classJdbcLob- Throws:
java.sql.SQLException- on SQL exceptionjava.io.IOException- on I/O exception
-
getBinaryStream
public java.io.InputStream getBinaryStream() throws java.sql.SQLExceptionDescription copied from class:JdbcLobReturns the input stream.- Specified by:
getBinaryStreamin interfacejava.sql.SQLXML- Overrides:
getBinaryStreamin classJdbcLob- Returns:
- the input stream
- Throws:
java.sql.SQLException- on failure
-
getCharacterStream
public java.io.Reader getCharacterStream() throws java.sql.SQLExceptionDescription copied from class:JdbcLobReturns the reader.- Specified by:
getCharacterStreamin interfacejava.sql.SQLXML- Overrides:
getCharacterStreamin classJdbcLob- Returns:
- the reader
- Throws:
java.sql.SQLException- on failure
-
getSource
public <T extends javax.xml.transform.Source> T getSource(java.lang.Class<T> sourceClass) throws java.sql.SQLException- Specified by:
getSourcein interfacejava.sql.SQLXML- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString() throws java.sql.SQLException- Specified by:
getStringin interfacejava.sql.SQLXML- Throws:
java.sql.SQLException
-
setBinaryStream
public java.io.OutputStream setBinaryStream() throws java.sql.SQLException- Specified by:
setBinaryStreamin interfacejava.sql.SQLXML- Throws:
java.sql.SQLException
-
setCharacterStream
public java.io.Writer setCharacterStream() throws java.sql.SQLException- Specified by:
setCharacterStreamin interfacejava.sql.SQLXML- Throws:
java.sql.SQLException
-
setResult
public <T extends javax.xml.transform.Result> T setResult(java.lang.Class<T> resultClass) throws java.sql.SQLException- Specified by:
setResultin interfacejava.sql.SQLXML- Throws:
java.sql.SQLException
-
setString
public void setString(java.lang.String value) throws java.sql.SQLException- Specified by:
setStringin interfacejava.sql.SQLXML- Throws:
java.sql.SQLException
-
-