Oracle9i XML API Reference - XDK and Oracle XML DB Release 2 (9.2) Part Number A96616-01 |
|
This chapter documents package oracle.xdb.spi. The classes contained in oracle.xdb.spi implement the service provider drivers that provide the application with common access to JNDI.
The classes contained in oracle.xdb.spi implement the service provider drivers that provide the application with common access to Java Naming and Directory Interface (JNDI). JNDI is a programming interface from Sun for connecting Java programs to naming and directory services such as DNS, LDAP and NDS. JNDI (Java Naming and Directory Interface) is a programming interface from Sun for connecting Java programs to naming and directory services such as DNS, LDAP and NDS.
The application is written to the JNDI API, and the directory drivers are written to the JNDI SPI (Service Provider Interface). The classes in oracle.xdb.spi implement core JNDI SPI interfaces and WebDAV support for Oracle XML DB.
This chapter contains these sections:
This class implements the Java naming and context interface for Oracle XML DB, which extends javax.naming.context
. The current implementation has no federation support, which makes it completely unaware of the existence of other namespaces.
public class XDBContext oracle.xdb.spi.XDBContext
Constructor for class XDBContext. The options are described in the following table.
Parameter | Description |
---|---|
env |
Environment to describe the properties of context. |
path |
Initial path for the context. |
This class implements javax.naming.context
.
public class XDBContextFactory oracle.xdb.spi.XDBContextFactory
Constructor for class XDBContextFactory.
public XDBContextFactory();
Implements javax.naming.NameParser
public class XDBNameParser oracle.xdb.spi.XDBNameParser
Implements javax.naming.NamingEnumeration
public class XDBNamingEnumeration oracle.xdb.spi.XDBNamingEnumeration
This class implements the core features for the Oracle XML DB JNDI service provider interface (SPI). The current implementation has no federation support, being completely unaware of the existence of other namespaces.
public class XDBResource extends java.lang.Object java.lang.Object | +--oracle.xdb.spi.XDBResource
Creates a new instance of XDBResource. The options are described in the following table.
Parameter | Description |
---|---|
env |
Environment passed in. |
path |
Path to the resource |
Retrieves the author of the resource.
public String getAuthor();
Retrieves the DAV (Web Distributed Authoring and Versioning) comment of the resource.
public String getComment();
Returns the content of the resource.
public Object getContent();
Returns the content type of the resource.
public String getContentType();
Returns the creation date of the resource.
public Date getCreateDate();
Returns the display name of the resource.
public String getDisplayName();
Returns the Language of the resource.
public String getLanguage();
Returns the last modification date of the resource.
public Date getLastModDate();
Returns 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 long getOwnerId();
Sets the ACL on the resource.
public void setACL( String aclpath);
Parameter | Description |
---|---|
aclpath |
The path to the ACL resource. |
Sets the author of the resource.
public void setAuthor( String authname);
Parameter | Description |
---|---|
authname |
Author of the resource. |
Sets the DAV (Web Distributed Authoring and Versioning) comment of the resource.
public void setComment(String davcom);
Parameter | Description |
---|---|
davcom |
DAV comment of the resource. |
Sets the content of the resource.
public void setContent( Object xmlobj);
Parameter | Description |
---|---|
xmlobj |
Content of the resource. |
Sets the content type of the resource.
public void setContentType( String conttype);
Parameter | Description |
---|---|
conttype |
Content type of the resource. |
Sets the creation date of the resource.
public void setCreateDate( Date credate);
Parameter | Description |
---|---|
credate |
Creation date of the resource. |
Sets the display name of the resource
public void setDisplayName( String dname);
Parameter | Description |
---|---|
dname |
Display name of the resource. |
Sets the language of the resource.
public void setLanguage(String lang);
Parameter | Description |
---|---|
lang |
Language of the resource. |
Sets the last modification date of the resource.
public void setLastModDate( Date d);
Parameter | Description |
---|---|
d |
Last modification date of the resource. |
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);
Parameter | Description |
---|---|
ownerid |
Owner id of the resource. |
|
Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|