Skip navigation links

Oracle® Database XML Java API Reference
11g Release 1 (11.1)

B28391-01


oracle.xdb
Class SQLXMLType

java.lang.Object
  extended by oracle.sql.Datum
      extended by oracle.sql.DatumWithConnection
          extended by oracle.sql.OPAQUE
              extended by oracle.xdb.XMLType
                  extended by oracle.xdb.SQLXMLType

All Implemented Interfaces:
java.io.Serializable, oracle.jdbc.internal.ObjectData, oracle.sql.ORAData

public class SQLXMLType
extends XMLType
See Also:
Serialized Form

Field Summary

 

Fields inherited from class oracle.xdb.XMLType
_SQL_TYPECODE, CONNTYPE_KPRB, CONNTYPE_OCI8, CONNTYPE_THIN, DEF_INDENT, MAX_INDENT, MAX_PFLAG, PRINT_DEFAULT_PROPERTY, PRINT_NOPRETTY, PRINT_PRETTY, XMLTYPE_PICKLE_AS_BINXML, XMLTYPE_PICKLE_AS_TEXT

 

Fields inherited from class oracle.sql.OPAQUE
BUILD_DATE, PRIVATE_TRACE, TRACE

 

Constructor Summary
SQLXMLType()
           
SQLXMLType(java.sql.Connection conn, java.io.InputStream is)
           
SQLXMLType(java.sql.Connection conn, java.io.InputStream is, java.lang.String kind)
           
SQLXMLType(java.sql.Connection conn, long cstate)
           
SQLXMLType(oracle.sql.OpaqueDescriptor type, java.sql.Connection conn, java.lang.Object value)
           
SQLXMLType(oracle.sql.OpaqueDescriptor type, java.sql.Connection conn, java.lang.Object value, java.lang.String kind)
           

 

Method Summary
 void free()
           
 java.io.InputStream getBinaryStream()
          SQLXML method Get the value containing the XML data from the XMLType as a InputStream
 java.io.Reader getCharacterStream()
          SQLXML method Get the value containing the XML data from the XMLType as a InputStream
<T extends Source>
T
getSource(java.lang.Class<T> sourceClass)
          SQLXML method Get the value containing the XML data from the XMLType as a InputStream
 java.lang.String getString()
          SQLXML method Get the string value containing the XML data from the XMLType.
 java.io.OutputStream setBinaryStream()
          SQLXML method Set the string value containing the XML data to the XMLType.
 java.io.Writer setCharacterStream()
          SQLXML method Set the string value containing the XML data to the XMLType.
<T extends Result>
T
setResult(java.lang.Class<T> resultClass)
           
 void setString(java.lang.String str)
          SQLXML method Set the string value containing the XML data to the XMLType.

 

Methods inherited from class oracle.xdb.XMLType
close, createSchemaBasedXML, createXML, createXML, createXML, createXML, createXML, createXML, createXML, existsNode, extract, freeXMLType, getBlobVal, getBlobVal, getClobVal, getClobVal, getConnType, getDocument, getDocumentFragment, getDOM, getErrorHandle, getInputStream, getInputStream, getNamespace, getNumberVal, getRootElement, getSchemaURL, getServiceHandle, getStringVal, getStringVal, isFragment, isSchemaBased, isSchemaValid, isSchemaValidated, schemaValidate, setMetadataConn, setPicklePreference, setSchemaValidated, transform, writeToOutputStream, writeToOutputStream

 

Methods inherited from class oracle.sql.OPAQUE
getBytesValue, getDescriptor, getImageLength, getImageOffset, getJavaSqlConnection, getMap, getSQLTypeName, getValue, isConvertibleTo, makeJdbcArray, setDescriptor, setImage, setImageLength, setValue, toBytes, toClass, toClass, toJdbc, toJdbc

 

Methods inherited from class oracle.sql.DatumWithConnection
assertNotNull, assertNotNull, getConnection, getConnectionDuringExceptionHandling, getInternalConnection, getOracleConnection, setPhysicalConnectionOf

 

Methods inherited from class oracle.sql.Datum
asciiStreamValue, bigDecimalValue, binaryStreamValue, booleanValue, byteValue, characterStreamValue, compareBytes, dateValue, doubleValue, equals, floatValue, getBytes, getLength, getStream, intValue, longValue, setBytes, setShareBytes, shareBytes, stringValue, timestampValue, timeValue

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.sql.ORAData
toDatum

 

Constructor Detail

SQLXMLType

public SQLXMLType(java.sql.Connection conn,
                  java.io.InputStream is)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

SQLXMLType

public SQLXMLType(java.sql.Connection conn,
                  java.io.InputStream is,
                  java.lang.String kind)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

SQLXMLType

public SQLXMLType(oracle.sql.OpaqueDescriptor type,
                  java.sql.Connection conn,
                  java.lang.Object value)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

SQLXMLType

public SQLXMLType(oracle.sql.OpaqueDescriptor type,
                  java.sql.Connection conn,
                  java.lang.Object value,
                  java.lang.String kind)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

SQLXMLType

public SQLXMLType(java.sql.Connection conn,
                  long cstate)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

SQLXMLType

public SQLXMLType()
           throws java.sql.SQLException
Throws:
java.sql.SQLException

Method Detail

free

public void free()

getString

public java.lang.String getString()
                           throws java.sql.SQLException
SQLXML method Get the string value containing the XML data from the XMLType.
Returns:
the string containing the XML data bytes.
Throws:
java.sql.SQLException

getBinaryStream

public java.io.InputStream getBinaryStream()
                                    throws java.sql.SQLException
SQLXML method Get the value containing the XML data from the XMLType as a InputStream
Returns:
the InputStream containing the XML data bytes.
Throws:
java.sql.SQLException

getCharacterStream

public java.io.Reader getCharacterStream()
                                  throws java.sql.SQLException
SQLXML method Get the value containing the XML data from the XMLType as a InputStream
Returns:
the Reader containing the XML data bytes.
Throws:
java.sql.SQLException

getSource

public <T extends Source> T getSource(java.lang.Class<T> sourceClass)
                           throws java.sql.SQLException
SQLXML method Get the value containing the XML data from the XMLType as a InputStream
Returns:
the Reader containing the XML data bytes.
Throws:
java.sql.SQLException

setString

public void setString(java.lang.String str)
               throws java.sql.SQLException
SQLXML method Set the string value containing the XML data to the XMLType.
Throws:
java.sql.SQLException

setCharacterStream

public java.io.Writer setCharacterStream()
                                  throws java.sql.SQLException
SQLXML method Set the string value containing the XML data to the XMLType.
Throws:
java.sql.SQLException

setBinaryStream

public java.io.OutputStream setBinaryStream()
                                     throws java.sql.SQLException
SQLXML method Set the string value containing the XML data to the XMLType.
Throws:
java.sql.SQLException

setResult

public <T extends Result> T setResult(java.lang.Class<T> resultClass)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

Skip navigation links

Oracle® Database XML Java API Reference
11g Release 1 (11.1)

B28391-01


Copyright © 2003, 2007, Oracle. All rights reserved.