23
Package oracle.xdb.spi

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.

JDBC (Java DataBase Connectivity) is a programming interface that enables Java applications to access a database using the SQL language. JDBC is the Java counterpart of Microsoft's ODBC.

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.

XDBContext Class

Description of XDBContext

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.

Syntax of XDBContext

public class XDBContext
oracle.xdb.spi.XDBContext

Methods

XDBContext()

Description

Constructor for class XDBContext. The options are listed in the following table.

Syntax

Parameters

public XDBContext(java.util.Hashtable env)

Takes the environment to the resource.

public XDBContext(java.util.Hashtable env, java.lang.String path)

Takes the environment and path to the resource.

Parameters

env - environment to describe the properties of context.

path - initial path for the context.

XDBContextFactory Class

Description of XDBContextFactory

This class implements javax.naming.context .

Syntax of XDBContextFactory

public class XDBContextFactory
oracle.xdb.spi.XDBContextFactory

Constructors

XDBContextFactory()

Description

Constructor for class XDBContextFactory

Syntax

public XDBContextFactory()

XDBNameParser Class

Description

Implements javax.naming.NameParser

Syntax

public class XDBNameParser
oracle.xdb.spi.XDBNameParser

XDBNamingEnumeration Class

Description

Implements javax.naming.NamingEnumeration

Syntax

public class XDBNamingEnumeration
oracle.xdb.spi.XDBNamingEnumeration

XDBResource Class

Description

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.

Syntax

getAuthor()

Description

Syntax

getComment()

Description

Returns the DAV comment of the resource (DAV is for Web distributed authoring and versioning)

Syntax

public java.lang.String getComment()

getContent()

Description

Returns the content of the resource

Syntax

public java.lang.Object getContent()

getContentType()

Description

Returns the content type of the resource

Syntax

public java.lang.String getContentType()

getCreateDate()

Description

Returns the creation date of the resource

Syntax

public java.util.Date getCreateDate()

getDisplayName()

Description

Returns the display name of the resource

Syntax

public java.lang.String getDisplayName()

getLanguage()

Description

Returns the Language of the resource

Syntax

public java.lang.String getLanguage()

getLastModDate()

Description

Returns the last modification date of the resource

Syntax

public java.util.Date getLastModDate()

getOwnerId()

Description

Returns the owner id of the resource

Syntax

public long getOwnerId()

setACL(String)

Description

Sets the ACL on the resource

Syntax

public void setACL(java.lang.String aclpath)

Parameters

aclpath - the path to the ACL resource

setAuthor(String)

Description

Sets the author of the resource

Syntax

public void setAuthor(java.lang.String authname)

Parameters

authname - author of the resource

setComment(String)

Description

Sets the DAV comment of the resource (for Web distributed authoring and versioning)

Syntax

public void setComment(java.lang.String davcom)

Parameters

davcom - DAV comment of the resource

setContent(Object)

Description

Sets the content of the resource

Syntax

public void setContent(java.lang.Object xmlobj)

Parameters

xmlobj - content of the resource

setContentType(String)

Description

Sets the content type of the resource

Syntax

public void setContentType(java.lang.String conttype)

Parameters

conttype - content type of the resource

setCreateDate(Date)

Description

Sets the creation date of the resource

Syntax

public void setCreateDate(java.util.Date credate)

Parameters

credate - creation date of the resource

setDisplayName(String)

Description

Sets the display name of the resource

Syntax

public void setDisplayName(java.lang.String dname)

Parameters

dname - display name of the resource

setInheritedACL(String)

Description

Sets the ACL on the resource, the ACL is copied from the specified resource.

Syntax

public void setInheritedACL(java.lang.String aclpath)

Parameters

aclpath - path to the ACL to be set

setLanguage(String)

Description

Sets the language of the resource

Syntax

public void setLanguage(java.lang.String lang)

Parameters

lang - language of the resource

setLastModDate(Date)

Description

Sets the last modification date of the resource

Syntax

public void setLastModDate(java.util.Date d)

Parameters

d - last modification date of the resource

setOwnerId(long)

Description

Sets the owner id of the resource

Syntax

public void setOwnerId(long ownerid)

Parameters

ownerid - owner id of the resource

XDBResourceContext Class

Description of XDBResourceContext

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.