Skip Headers

Oracle9i XML Database Developer's Guide - Oracle XML DB
Release 2 (9.2)

Part Number A96620-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Feedback

Go to previous page Go to next page
View PDF

E
Java DOM API for XMLType, Resource API for Java: Quick Reference

This appendix contains a quick reference for the following Oracle XML DB Java APIs:

Java DOM API For XMLType

Packages oracle.xdb and oracle.xdb.dom implements the Java DOM API for XMLType. Java DOM API for XMLType implements the W3C DOM Recommendation Level 1.0 and Level 2.0 Core and also provides Oracle-specific extensions.

Table E-1 lists the Java DOM API for XMLType (oracle.xdb.dom and oracle.xdb) classes. Note that class XMLType is in package oracle.xdb and not oracle.xdb.dom.

See Also:

Non-Supported Java Methods

The following are methods documented in Release 2 (9.2.0.1) but not currently supported in Release 2 (9.2.0.2):

Oracle XML DB Resource API for Java

Oracle XML DB Resource API for Java's WebDav support is implemented using package oracle.xdb.spi classes that render the service provider interface (SPI) drivers. Classes in oracle.xdb.spi implement core WebDAV support for Oracle XML DB. Table E-2 lists the oracle.xdb.spi classes.

See Also:

Chapter 17, "Oracle XML DB Resource API for Java"

Table E-2 Oracle XML DB Resource API for Java (oracle.xdb.spi)  
oracle.xdb.spi Class Description

XDBContext Class

Implements the Java naming and context interface for Oracle XML DB, which extends javax.naming.context. In this release there is no federation support, in other words, it is completely unaware of the existence of other namespaces. Methods:

XDBContext() - Class XDBContext constructor.

  • public XDBContext( Hashtable env); Creates an instance of XDBContext class given the environment.
  • public XDBContext( Hashtable env, String path); Creates an instance of XDBContext class given the environment and path.

Parameters: env - Environment to describe properties of context, path - Initial path for the context.

XDBContextFactory Class

Implements javax.naming.context.

Methods:

XDBContextFactory() - Constructor for class XDBContextFactory. public XDBContextFactory();

XDBNameParser Class

Implements javax.naming.NameParser

XDBNamingEnumeration Class

Implements javax.naming.NamingEnumeration

XDBResource Class

Implements the core features for Oracle XML DB JNDI service provider interface (SPI). This release has no federation support, and is unaware of the existence of other namespaces.

public class XDBResource extends java.lang.Object.

Methods:

XDBResource()- Creates a new instance of XDBResource

getAuthor() - Returns author of the resource

getComment() - Returns the DAV comment of the resource

getContent() - Returns the content of the resource

getContentType() - Returns the content type of the resource

getCreateDate() - Returns the create date of the resource

getDisplayName() - Returns the display name of the resource

getLanguage() - Returns the language of the resource

getLastModDate() - Returns the last modification date of the resource

getOwnerId() - Returns the owner ID of the resource

setACL() - Sets the ACL on the resource

setAuthor() - Sets the author of the resource

setComment() - Sets the DAV comment of the resource

setContent() - Sets the content of the resource

setContentType() - Sets the content type of the resource

setCreateDate() - Sets the creation date of the resource

setDisplayName() - Sets the display name of the resource

setLanguage() - Sets the language of the resource

setLastModDate() - Sets the last modification date of the resource

setOwnerId() -Sets the owner ID of the resource

XDBResource()

Creates a new instance of XDBResource. public Creates a new instance of XDBResource given the environment.

public XDBResource( Hashtable env, String path); Creates a new instance of XDBResource given the environment and path.

Parameters: env - Environment passed in, path - Path to the resource

getAuthor()

Retrieves the author of the resource.

public String getAuthor();

getComment()

Retrieves the DAV (Web Distributed Authoring and Versioning) comment of the resource.

public String getComment();

getContent()

Returns the content of the resource.

public Object getContent();

getContentType()

Returns the content type of the resource. public String getContentType();

getCreateDate()

Returns the creation date of the resource. public Date getCreateDate();

getDisplayName()

Returns the display name of the resource. public String getDisplayName();

getLanguage()

Returns the Language of the resource. public String getLanguage();

getLastModDate()

Returns the last modification date of the resource.

public Date getLastModDate();

getOwnerId()

Returns the owner id of the resource. The value expected by this method is the user id value for the database user as provided by the catalog views such as ALL_USERS, and so on.

public long getOwnerId();

setACL()

Sets the ACL on the resource.

public void setACL( String aclpath);

Parametes: aclpath - The path to the ACL resource.

setAuthor()

Sets the author of the resource. public void setAuthor( String authname); Parameter: authname - Author of the resource.

setComment()

Sets the DAV (Web Distributed Authoring and Versioning) comment of the resource.

public void setComment(String davcom); Parameter: davcom - DAV comment of the resource.

setContent()

Sets the content of the resource.

public void setContent( Object xmlobj); Parameter: xmlobj - Content of the resource.

setContentType()

Sets the content type of the resource.

public void setContentType( String conttype);

Parameter: conttype - Content type of the resource.

setCreateDate()

Sets the creation date of the resource.

public void setCreateDate( Date credate);

Parameter: credate - Creation date of the resource.

setDisplayName()

Sets the display name of the resource.

public void setDisplayName( String dname);

Parameter: dname - Display name of the resource.

setLanguage()

Sets the language of the resource.

public void setLanguage(String lang);

Parameter: lang - Language of the resource.

setLastModDate()

Sets the last modification date of the resource.

public void - setLastModDate( Date d);

Parameter: d - Last modification date of the resource.

setOwnerId()

Sets the owner id of the resource. The owner id value expected by this method is the user id value for the database user as provided by the catalog views such as ALL_USERS, and so on.

public void setOwnerId( long ownerid);

Parameters: ownerid - Owner id of the resource.