Package org.h2.jdbc

Class JdbcSQLXML

  • All Implemented Interfaces:
    java.sql.SQLXML

    public final class JdbcSQLXML
    extends JdbcLob
    implements java.sql.SQLXML
    Represents a SQLXML value.
    • 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 use
        value - for this JdbcSQLXML
        state - of the LOB
        id - of the trace object
    • Method Detail

      • checkReadable

        void checkReadable()
                    throws java.sql.SQLException,
                           java.io.IOException
        Description copied from class: JdbcLob
        Check the state of the LOB and throws the exception when check failed (the LOB must be set completely before read).
        Overrides:
        checkReadable in class JdbcLob
        Throws:
        java.sql.SQLException - on SQL exception
        java.io.IOException - on I/O exception
      • getBinaryStream

        public java.io.InputStream getBinaryStream()
                                            throws java.sql.SQLException
        Description copied from class: JdbcLob
        Returns the input stream.
        Specified by:
        getBinaryStream in interface java.sql.SQLXML
        Overrides:
        getBinaryStream in class JdbcLob
        Returns:
        the input stream
        Throws:
        java.sql.SQLException - on failure
      • getCharacterStream

        public java.io.Reader getCharacterStream()
                                          throws java.sql.SQLException
        Description copied from class: JdbcLob
        Returns the reader.
        Specified by:
        getCharacterStream in interface java.sql.SQLXML
        Overrides:
        getCharacterStream in class JdbcLob
        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:
        getSource in interface java.sql.SQLXML
        Throws:
        java.sql.SQLException
      • getString

        public java.lang.String getString()
                                   throws java.sql.SQLException
        Specified by:
        getString in interface java.sql.SQLXML
        Throws:
        java.sql.SQLException
      • setBinaryStream

        public java.io.OutputStream setBinaryStream()
                                             throws java.sql.SQLException
        Specified by:
        setBinaryStream in interface java.sql.SQLXML
        Throws:
        java.sql.SQLException
      • setCharacterStream

        public java.io.Writer setCharacterStream()
                                          throws java.sql.SQLException
        Specified by:
        setCharacterStream in interface java.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:
        setResult in interface java.sql.SQLXML
        Throws:
        java.sql.SQLException
      • setString

        public void setString​(java.lang.String value)
                       throws java.sql.SQLException
        Specified by:
        setString in interface java.sql.SQLXML
        Throws:
        java.sql.SQLException