|
Oracle® Application Server XML Java API Reference 10g Release 2 (10.1.2) Part no. B12024-03 September 2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.sql.Datum | +--oracle.sql.DatumWithConnection | +--oracle.sql.OPAQUE | +--oracle.xdb.XMLType
Field Summary | |
static java.lang.String |
_SQL_NAME |
static int |
_SQL_TYPECODE |
static int |
CONNTYPE_KPRB |
static int |
CONNTYPE_OCI8 |
static int |
CONNTYPE_THIN |
Fields inherited from class oracle.sql.OPAQUE |
BUILD_DATE, PRIVATE_TRACE, TRACE |
Constructor Summary | |
XMLType() NOTE - Applications should not use the default constructor, this function is for internal use only. | |
XMLType(java.sql.Connection conn, oracle.sql.BLOB xmlval, int csid) Construct an XMLType given a BLOB containing the XML data | |
XMLType(java.sql.Connection conn, oracle.sql.CLOB xmlval) Construct an XMLType given a CLOB containing the XML data | |
XMLType(java.sql.Connection conn, oracle.sql.CLOB xmlval, java.lang.String schemaURL, boolean wellformed, boolean valid) Construct an XMLType given a CLOB containing the XML data | |
XMLType(java.sql.Connection conn, Document domdoc) Constructor to create an XMLType given an instance of the DOM document | |
XMLType(java.sql.Connection conn, java.io.InputStream is) Construct an XMLType given a InputStream containing the XML data. | |
XMLType(java.sql.Connection conn, java.lang.String xmlval) Construct an XMLType given the string containing the XML data | |
XMLType(java.sql.Connection conn, java.lang.String xmlval, java.lang.String schemaURL, boolean wellformed, boolean valid) Construct an XMLType given the string containing the XML data | |
XMLType(oracle.sql.OpaqueDescriptor type, java.sql.Connection conn, java.lang.Object value) Create an XMLType given an opaque descriptor, connection and a pickled image. |
Method Summary | |
void |
close() Function to free/close the XMLType. |
XMLType |
createSchemaBasedXML(java.lang.String schemaURL) Create a schema-based XML |
static XMLType |
createXML(java.sql.Connection conn, oracle.sql.CLOB xmlval) Create an XMLType given a CLOB containing the XML data |
static XMLType |
createXML(java.sql.Connection conn, oracle.sql.CLOB xmlval, java.lang.String schemaURL, boolean wellformed, boolean valid) Create an XMLType given a CLOB containing the XML data |
static XMLType |
createXML(java.sql.Connection conn, Document domdoc) Create an XMLType given an instance of the DOM document |
static XMLType |
createXML(java.sql.Connection conn, java.io.InputStream is) Create an XMLType given a InputStream containing the XML data. |
static XMLType |
createXML(java.sql.Connection conn, java.lang.String xmlval) Create an XMLType given the string containing the XML data |
static XMLType |
createXML(java.sql.Connection conn, java.lang.String xmlval, java.lang.String schemaURL, boolean wellformed, boolean valid) Create an XMLType given the string containing the XML data |
static XMLType |
createXML(oracle.sql.OPAQUE opq) Create an XMLType given the opaque type containing the XMLType bytes |
boolean |
existsNode(java.lang.String xpath, java.lang.String nsmap) Function to check for the existence of the given set of nodes in the XMLType. |
XMLType |
extract(java.lang.String xpath, java.lang.String nsmap) Function to extract the given set of nodes from the XMLType. |
void |
finalize() Finalize does nothing, use close(). |
oracle.sql.BLOB |
getBlobVal(int csid) Get the BLOB value containing the XML data from the XMLType. |
byte[] |
getBytesValue() NOTE - this function is for internal use only. |
oracle.sql.CLOB |
getClobVal() Get the CLOB value containing the XML data from the XMLType. |
static int |
getConnType(java.sql.Connection conn) |
XDBDocFragment |
getDocumentFragment() Function to return XDBDocFragment if XMLType instance is a fragment |
Document |
getDOM() Gets the DOM document associated with the XMLType. |
static long |
getErrorHandle(java.sql.Connection conn, int conntype) |
java.io.InputStream |
getInputStream() Get an InputStream from the XMLType, applications can read XML data from the stream |
java.lang.String |
getNamespace() return the default namespace of the XMLType document |
oracle.sql.NUMBER |
getNumberVal() Return the numeric value of the XML document |
static oracle.sql.ORADataFactory |
getORADataFactory() NOTE - Internal function, not to be used by applications Get the oradata factory for this XMLType. |
java.lang.String |
getRootElement() Return the root element name |
java.lang.String |
getSchemaURL() Return the schema URL (i.e. location of the schema to which this XMLType conforms) |
static long |
getServiceHandle(java.sql.Connection conn, int conntype) |
java.lang.String |
getStringVal() Get the string value containing the XML data from the XMLType. |
boolean |
isFragment() Function to check if the XMLType is a regular document or a document fragment. |
boolean |
isSchemaBased() Function to check if the XMLType is schema based. |
boolean |
isSchemaValid(java.lang.String schurl, java.lang.String elname) Function to check if the XMLType is schema based. |
boolean |
isSchemaValidated() Return TRUE if the document has been validated against its schema |
void |
schemaValidate() Validate the schema-based document against its own schema. |
void |
setSchemaValidated(boolean validateFlag) This function sets the VALIDATED flag to indicate that the XMLType has been validated or not. |
byte[] |
toBytes() NOTE - this function is for internal use only. |
oracle.sql.Datum |
toDatum(java.sql.Connection conn) NOTE - Internal function, not to be used by applications Construct an image from the XMLType data. |
XMLType |
transform(XMLType xsldoc, java.lang.String parammap) Function to transform the XMLType using the given XSL document. |
void |
writeToOutputStream(java.io.OutputStream os) Write the contents of the XMLType to an OutputStream |
Methods inherited from class oracle.sql.OPAQUE |
getDescriptor, getImageLength, getImageOffset, getJavaSqlConnection, getMap, getSQLTypeName, getValue, isConvertibleTo, makeJdbcArray, setDescriptor, setImage, setImageLength, setValue, toClass, toClass, toJdbc, toJdbc |
Methods inherited from class oracle.sql.DatumWithConnection |
assertNotNull, assertNotNull, getConnection, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int _SQL_TYPECODE
public static final java.lang.String _SQL_NAME
public static final int CONNTYPE_THIN
public static final int CONNTYPE_OCI8
public static final int CONNTYPE_KPRB
Constructor Detail |
public XMLType(java.sql.Connection conn, java.lang.String xmlval) throws java.sql.SQLException
conn
- the connection object to be used.xmlval
- the string containing the XML datajava.sql.SQLException
public XMLType(java.sql.Connection conn, java.lang.String xmlval, java.lang.String schemaURL, boolean wellformed, boolean valid) throws java.sql.SQLException
conn
- the connection object to be used.xmlval
- the string containing the XML dataschemaURL
- the schema URL for the XMLTypewellformed
- XML document is well-formedvalid
- XML document is validjava.sql.SQLException
public XMLType(java.sql.Connection conn, oracle.sql.CLOB xmlval) throws java.sql.SQLException
conn
- the connection object to be used.xmlval
- the CLOB containing the XML datajava.sql.SQLException
public XMLType(java.sql.Connection conn, oracle.sql.CLOB xmlval, java.lang.String schemaURL, boolean wellformed, boolean valid) throws java.sql.SQLException
conn
- the connection object to be used.xmlval
- the CLOB containing the XML dataschemaURL
- the schema URL for the XMLTypewellformed
- XML document is well-formedvalid
- XML document is validjava.sql.SQLException
public XMLType(java.sql.Connection conn, oracle.sql.BLOB xmlval, int csid) throws java.sql.SQLException
conn
- the connection object to be used.xmlval
- the BLOB containing the XML datajava.sql.SQLException
public XMLType(java.sql.Connection conn, java.io.InputStream is) throws java.sql.SQLException
java.sql.SQLException
public XMLType(oracle.sql.OpaqueDescriptor type, java.sql.Connection conn, java.lang.Object value) throws java.sql.SQLException
type
- the opaque type descriptor to be used.conn
- the connection object to be used.value
- the pickled image bytes.java.sql.SQLException
public XMLType(java.sql.Connection conn, Document domdoc) throws java.sql.SQLException
domdoc
- the DOM Document which represents the DOM treejava.sql.SQLException
public XMLType() throws java.sql.SQLException
Method Detail |
public static oracle.sql.ORADataFactory getORADataFactory()
public oracle.sql.Datum toDatum(java.sql.Connection conn) throws java.sql.SQLException
toDatum
in interface oracle.sql.ORAData
conn
- the connection to be used for Datum creationjava.sql.SQLException
public static XMLType createXML(oracle.sql.OPAQUE opq) throws java.sql.SQLException
opq
- the opaque data object from which the XMLType is to be generatedjava.sql.SQLException
public static XMLType createXML(java.sql.Connection conn, java.lang.String xmlval) throws java.sql.SQLException
conn
- the connection object to be used.xmlval
- the string containing the XML datajava.sql.SQLException
public static XMLType createXML(java.sql.Connection conn, java.lang.String xmlval, java.lang.String schemaURL, boolean wellformed, boolean valid) throws java.sql.SQLException
conn
- the connection object to be used.xmlval
- the string containing the XML dataschemaURL
- the schema URL for the XMLTypewellformed
- XML document is well-formedvalid
- XML document is validjava.sql.SQLException
public static XMLType createXML(java.sql.Connection conn, oracle.sql.CLOB xmlval) throws java.sql.SQLException
conn
- the connection object to be used.xmlval
- the CLOB containing the XML datajava.sql.SQLException
public static XMLType createXML(java.sql.Connection conn, oracle.sql.CLOB xmlval, java.lang.String schemaURL, boolean wellformed, boolean valid) throws java.sql.SQLException
conn
- the connection object to be used.xmlval
- the CLOB containing the XML dataschemaURL
- the schema URL for the XMLTypewellformed
- XML document is well-formedvalid
- XML document is validjava.sql.SQLException
public static XMLType createXML(java.sql.Connection conn, java.io.InputStream is) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getStringVal() throws java.sql.SQLException
java.sql.SQLException
public oracle.sql.CLOB getClobVal() throws java.sql.SQLException
java.sql.SQLException
public oracle.sql.BLOB getBlobVal(int csid) throws java.sql.SQLException
java.sql.SQLException
public java.io.InputStream getInputStream() throws java.sql.SQLException
java.sql.SQLException
public void writeToOutputStream(java.io.OutputStream os) throws java.sql.SQLException
java.sql.SQLException
public static XMLType createXML(java.sql.Connection conn, Document domdoc) throws java.sql.SQLException
domdoc
- the DOM Document which represents the DOM treejava.sql.SQLException
public XMLType extract(java.lang.String xpath, java.lang.String nsmap) throws java.sql.SQLException
xpath
- the xpath expression which specifies the nodes to search for.nsmap
- the map of namespaces which resolves the prefixes in the xpath expression. format is "xmlns=a.com xmlns:b=b.com"java.sql.SQLException
public boolean existsNode(java.lang.String xpath, java.lang.String nsmap) throws java.sql.SQLException
xpath
- the xpath expression which specifies the nodes to search for.nsmap
- the map of namespaces which resolves the prefixes in the xpath expression. format is "xmlns=a.com xmlns:b=b.com"java.sql.SQLException
public XMLType transform(XMLType xsldoc, java.lang.String parammap) throws java.sql.SQLException
xsldoc
- the XSL document to be applied to the XMLTypeparammap
- the top level parameters to be passed to the XSL transformation. This should be of the format "a=b c=d e=f". This can be null.java.sql.SQLException
public boolean isFragment() throws java.sql.SQLException
java.sql.SQLException
public XDBDocFragment getDocumentFragment() throws java.sql.SQLException
java.sql.SQLException
public boolean isSchemaValid(java.lang.String schurl, java.lang.String elname) throws java.sql.SQLException
schurl
- the URL of the schema to be validated against; if this is null then the documents own schema URL is used (if one exists).java.sql.SQLException
public XMLType createSchemaBasedXML(java.lang.String schemaURL) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getRootElement() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getSchemaURL() throws java.sql.SQLException
java.sql.SQLException
public boolean isSchemaBased() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getNamespace() throws java.sql.SQLException
java.sql.SQLException
public void schemaValidate() throws java.sql.SQLException
java.sql.SQLException
public boolean isSchemaValidated() throws java.sql.SQLException
java.sql.SQLException
public void setSchemaValidated(boolean validateFlag) throws java.sql.SQLException
validateFlag
-java.sql.SQLException
public oracle.sql.NUMBER getNumberVal() throws java.sql.SQLException
java.sql.SQLException
public Document getDOM() throws java.sql.SQLException
java.sql.SQLException
Document
public byte[] getBytesValue() throws java.sql.SQLException
getBytesValue
in class oracle.sql.OPAQUE
java.sql.SQLException
public static long getErrorHandle(java.sql.Connection conn, int conntype) throws java.sql.SQLException
java.sql.SQLException
public static long getServiceHandle(java.sql.Connection conn, int conntype) throws java.sql.SQLException
java.sql.SQLException
public byte[] toBytes() throws java.sql.SQLException
toBytes
in class oracle.sql.OPAQUE
java.sql.SQLException
public void close()
public void finalize()
finalize
in class java.lang.Object
public static int getConnType(java.sql.Connection conn) throws java.sql.SQLException
java.sql.SQLException
|
Oracle® Application Server XML Java API Reference 10g Release 2 (10.1.2) Part no. B12024-03 September 2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |