XSQLUtil - Oracle 9i

Syntax:

Description:

XSQLUtilXSQLUtil

XSQLUtil

Constructors

XSQLUtil():

public XSQLUtil()

Methods

DictionaryOfParamsAsXMLDocument(Dictionary):

public static oracle.xml.xsql.XMLDocument DictionaryOfParamsAsXMLDocument(java.util.Dictionary dict)

safeURLAsString(URL):

public static java.lang.String safeURLAsString(java.net.URL u)

select(Document, String):

public static oracle.xml.xsql.NodeList select (oracle.xml.xsql.Document d, java.lang.String pattern)

select(Element, String):

public static oracle.xml.xsql.NodeList select (oracle.xml.xsql.Element n,java.lang.String pattern)

select(XMLDocument, String):

public static oracle.xml.xsql.NodeList select (oracle.xml.xsql.XMLDocument d,java.lang.String pattern)

select(XMLElement, String):

public static oracle.xml.xsql.NodeList select (oracle.xml.xsql.XMLElement n,java.lang.String pattern)

selectFirst(Document, String):

public static oracle.xml.xsql.Node selectFirst (oracle.xml.xsql.Document d,java.lang.String pattern)

selectFirst(Element, String):

public static oracle.xml.xsql.Node selectFirst (oracle.xml.xsql.Element n, java.lang.String pattern)

selectFirst(XMLDocument, String):

public static oracle.xml.xsql.Node selectFirst (oracle.xml.xsql.XMLDocument d,java.lang.String pattern)

selectFirst(XMLElement, String):

public static oracle.xml.xsql.Node selectFirst (oracle.xml.xsql.XMLElement n,java.lang.String pattern)

stringParamValue(Object):

public static java.lang.String stringParamValue (java.lang.Object val)

translate(String, String):

public static java.lang.String translate (java.lang.String u, java.lang.String path)

translate(URL, String):

public static java.lang.String translate (java.net.URL u, java.lang.String path)

valueOf(Element, String):

public static java.lang.String valueOf (oracle.xml.xsql.Element n, java.lang.String pattern)

valueOf(Node, String):

public static java.lang.String valueOf (oracle.xml.xsql.Node n, java.lang.String pattern)

valueOf(XMLElement String):

public static java.lang.String valueOf (oracle.xml.xsql.XMLElement n, java.lang.String pattern)

valueOf(XMLNode, String):

public static java.lang.String valueOf (oracle.xml.xsql.XMLNode n, java.lang.String pattern)

XL(String, String):

public static java.lang.String XL (java.lang.String s, java.lang.String enc)

XSQLRequestObjectListener:

Interface that an object created by an action handler can implement to be notified when the current page request processing is completed.

It has a single method:

void pageProcessingCompleted()

Objects that implement this interface and which are added to the current request context using XSQLPageRequest::setRequestObject() will be notified when the page processing of the outermost page is completed.

The following constructors were added to oracle.xml.xsql.XSQLRequest class:

XSQLRequest(oracle.xml.parser.v2.XMLDocument page,java.net.URL baseURL) Create a Request for an XSQL Page

XSQLRequest(XSQLConnectionManagerFactory fact, java.lang.String url) Create a Request for an XSQL Page using a custom connection manager factory

XSQLRequest(XSQLConnectionManagerFactory fact, java.net.URL url) Create a Request for an XSQL Page with a custom connection manager factory.

XSQLRequest(XSQLConnectionManagerFactory fact, oracle.xml.parser.v2.XMLDocument page, java.net.URL baseURL)

Create a Request for an XSQL Page
===========================
The following are new interfaces
=============================
-------------------------------------------------------------------------------------

public interface XSQLConnectionManager

One of two interfaces that must be implemented to override the built-in connection manager implementation. The XSQL Page Processor asks the XSQL Connection Manager Factory associated with each request to create() an instance of an XSQL Connection Manager to service the current request.

In multithreaded environments, the implementation of XSQLConnectionManager must insure that an XSQLConnection instance returned by getConnection() is not used by another thread until it has been released by the XSQL Page Processor after the call to releaseConnection().

void releaseConnection(XSQLConnection theConn, XSQLPageRequest env)
-------------------------------------------------------------------------------------
p

public interface XSQLConnectionManagerFactory

One of two interfaces that must be implemented to override the built-in connection manager implementation. The XSQL Page Processor asks the XSQL Connection Manager Factory associated with each request to create() an instance of an XSQL Connection Manager to service the current request.

Method Summary

XSQLConnectionManager create()
-------------------------------------------------------------------------------------

public interface XSQLDocumentSerializer

Interface that must be implemented by all XSQL Serializers which serialize an XSQL data page as an XML Document to a PrintWriter.

Upon encountering a serializer="XXX" pseudo-attribute in an <?xml-stylesheet?> processing instruction, the XSQL Page Processor invokes the associated serializer by:

  • Constructing an instance of the serializer using the no-args constructor
  • Invoking the XSQL document serializer's serialize() method

NOTE: An implementation of XSQLDocumentSerializer is expected to do the following actions.

  • First, call env.setContentType() to set the content type
  • Then, call env.getWriter() to get the Writer to write to

If the serializer throws an unhandled exception, the XSQL Page Processor will format the stacktrace. See oracle. xml. xsql. src. serializers. XSQL Sample Serializer for an example.

Method Summary:

void serialize(org.w3c.dom.Document doc, XSQLPageRequest env)

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics