Oracle9i Supplied Java Packages Reference Release 2 (9.2) Part Number A96609-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 and JDBC interfaces.
This chapter contains these sections:
The classes contained in oracle.xdb.spi implement the JNDI API and the JNDI service provider drivers that provide the application with access to file systems and standard Web protocols.
The application is written to the JNDI API, and the directory drivers are written to the JNDI SPI (Service Provider Interface). The package oracle.xdb.spi contains Oracle-specific extensions to the public standard.
In this release, the Oracle XML DB implementation of JNDI SPI supports the javax.naming
interface. Directory, attribute, and event operations are not yet supported.
See Also:
Oracle9i XML Database Developer's Guide - Oracle XML DB for information about developing applications that use these interfaces. |
The classes in oracle.xdb.spi implement core JNDI and JNDI SPI interfaces for Oracle XML DB.
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 listed in the following table.
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
Takes the environment and path to the resource.
public XDBResource(java.util.Hashtable env)
env
- Environment passed in
path
- Path to the resource
Takes the environment and path to the resource as a string.
public XDBResource(java.util.Hashtable env, java.lang.String path)
Returns the author of the resource
public java.lang.String getAuthor()
Returns the DAV comment of the resource (DAV is for Web distributed authoring and versioning)
public java.lang.String getComment()
Returns the content of the resource
public java.lang.Object getContent()
Returns the content type of the resource
public java.lang.String getContentType()
Returns the creation date of the resource
public java.util.Date getCreateDate()
Returns the display name of the resource
public java.lang.String getDisplayName()
Returns the Language of the resource
public java.lang.String getLanguage()
Returns the last modification date of the resource
public java.util.Date getLastModDate()
Returns the owner id of the resource
public long getOwnerId()
Sets the ACL on the resource
public void setACL(java.lang.String aclpath)
aclpath
- the path to the ACL resource
Sets the author of the resource
public void setAuthor(java.lang.String authname)
authname
- author of the resource
Sets the DAV comment of the resource (for Web distributed authoring and versioning)
public void setComment(java.lang.String davcom)
davcom
- DAV comment of the resource
Sets the content of the resource
public void setContent(java.lang.Object xmlobj)
xmlobj
- content of the resource
Sets the content type of the resource
public void setContentType(java.lang.String conttype)
conttype
- content type of the resource
Sets the creation date of the resource
public void setCreateDate(java.util.Date credate)
credate
- creation date of the resource
Sets the display name of the resource
public void setDisplayName(java.lang.String dname)
dname
- display name of the resource
Sets the ACL on the resource, the ACL is copied from the specified resource.
public void setInheritedACL(java.lang.String aclpath)
aclpath
- path to the ACL to be set
Sets the language of the resource
public void setLanguage(java.lang.String lang)
lang
- language of the resource
Sets the last modification date of the resource
public void setLastModDate(java.util.Date d)
d
- last modification date of the resource
Sets the owner id of the resource
public void setOwnerId(long ownerid)
ownerid
- owner id of the resource
This class provides core Oracle XML DB features for JNDI SPI. The current implementation has no federation support, being completely unaware of the existence of other namespaces. This class implements javax.naming.context
.
public class XDBResourceContext extendsoracle.xdb.spi.XDBBaseContext
oracle.xdb.spi.XDBBaseContext
| +--oracle.xdb.spi.XDBResourceContext
Implements the environment.
public XDBResourceContext(java.util.Hashtable env)
env
- Environment for the context
Returns the author of the resource
public java.lang.String getAuthor()
Returns the content type of the resource
public java.lang.String getContentType()
Returns the creation date of the resource
public java.util.Date getCreateDate()
Returns the DAV comment of the resource
public java.lang.String getDavComment()
Returns the display name of the resource
public java.lang.String getDisplayName()
Retrieves the environment properties for this context. The result is a new copy of the environment; changes made to the returned object have no effect on the context.
public java.util.Hashtable getEnvironment()
XDBBaseContext.getEnvironment()
in class XDBBaseContext
a copy of the environment of this context
Returns the Language of the resource
public java.lang.String getLanguage()
Returns the last modification date of the resource
public java.util.Date getLastModDate()
Returns the owner id of the resource
public long getOwnerId()
Sets the author of the resource
public void setAuthor(java.lang.String authname)
authname
- author of the resource
Sets the content type of the resource
public void setContentType(java.lang.String conttype)
conttype
- content type of the resource
Sets the creation date of the resource
public void setCreateDate(java.util.Date credate)
credate
- creation date of the resource
Sets the DAV comment of the resource
public void setDavComment(java.lang.String davcom)
davcom
- DAV comment of the resource
Sets the display name of the resource
public void setDisplayName(java.lang.String dname)
dname
- display name of the resource
Sets the language of the resource
public void setLanguage(java.lang.String lang)
lang
- language of the resource
Sets the last modification date of the resource
public void setLastModDate(java.util.Date d)
d
- last modification date of the resource
Sets the owner id of the resource
public void setOwnerId(long ownerid)
ownerid
- owner ID of the resource
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|