Package java.sql

Interface SQLXML


  • public interface SQLXML
    Maps SQL's XML type into Java.
    • Method Detail

      • free

        void free()
           throws SQLException
        Frees any resources held by this object. After free is called, calling method other than free will throw SQLException (calling free repeatedly will do nothing).
        Throws:
        SQLException
      • getBinaryStream

        InputStream getBinaryStream()
                             throws SQLException
        Returns a stream that can be used to read binary data from this SQL XML object.
        Throws:
        SQLException - if an error occurs accessing the data
      • setBinaryStream

        OutputStream setBinaryStream()
                              throws SQLException
        Returns a stream that can be used to write binary data to this SQL XML object.
        Throws:
        SQLException - if an error occurs accessing the data
      • getCharacterStream

        Reader getCharacterStream()
                           throws SQLException
        Returns a reader that can be used to read character data from this SQL XML object.
        Throws:
        SQLException - if an error occurs accessing the data
      • setCharacterStream

        Writer setCharacterStream()
                           throws SQLException
        Returns a writer that can be used to write character data to this SQL XML object.
        Throws:
        SQLException - if an error occurs accessing the data
      • getString

        String getString()
                  throws SQLException
        Returns this object's data as an XML string.
        Throws:
        SQLException - if an error occurs accessing the data
      • setString

        void setString​(String value)
                throws SQLException
        Sets this object's data to the given XML string.
        Throws:
        SQLException - if an error occurs accessing the data