Skip navigation links

Oracle® Database XML Java API Reference
11g Release 1 (11.1)

B28391-01


oracle.xdb.spi
Class XDBResource

java.lang.Object
  extended by oracle.xdb.dom.XDBNode
      extended by oracle.xdb.dom.XDBDocument
          extended by oracle.xdb.spi.XDBResource

All Implemented Interfaces:
Resource, Document, Node
Direct Known Subclasses:
XDBResourceContext

public class XDBResource
extends XDBDocument
implements Resource

This class implements the guts of the XDB JNDI SPI. The current implementation has no federation support, being completely unaware of the existence of other namespaces.


Field Summary
protected  java.lang.String m_path
           
protected  Element m_resElem
           

 

Fields inherited from class oracle.xdb.dom.XDBNode
m_conn, m_owner, m_xobcstate

 

Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE

 

Constructor Summary
XDBResource(java.sql.Connection conn, java.lang.String abspath, long xobd)
           
XDBResource(XMLType resxmlt, java.sql.Connection conn, java.lang.String abspath)
           

 

Method Summary
static void freeServerCtx(long xmctx)
           
 java.lang.String getACL()
           
 java.lang.String getAuthor()
           
 java.lang.String getCharacterSet()
           
 java.lang.String getComment()
           
 java.io.InputStream getContentBinary()
           
 java.lang.String getContentType()
           
 Document getContentXML()
           
 java.sql.Timestamp getCreationDate()
           
 java.lang.String getCreator()
           
 XMLType getCustomMetadata(java.lang.String namespace, java.lang.String name)
           
 java.lang.String getDisplayName()
           
 java.lang.String getLanguage()
           
 java.lang.String getLastModifier()
           
 java.sql.Timestamp getModificationDate()
           
 java.lang.String getOwner()
           
 long getOwnerId()
           
 java.lang.String getRefCount()
           
 java.lang.String getSchemaElement()
           
static long getServerCtx()
           
static long getServerEnv()
           
 int getSize()
           
 int getVersionId()
           
 boolean hasACLChanged()
           
 boolean hasAuthorChanged()
           
 boolean hasChanged(java.lang.String xpath, java.lang.String namespace)
           
 boolean hasCharacterSetChanged()
           
 boolean hasCommentChanged()
           
 boolean hasContentChanged()
           
 boolean hasContentTypeChanged()
           
 boolean hasCreationDateChanged()
           
 boolean hasCreatorChanged()
           
 boolean hasCustomMetadataChanged()
           
 boolean hasDisplayNameChanged()
           
 boolean hasLanguageChanged()
           
 boolean hasLastModifierChanged()
           
 boolean hasModificationDateChanged()
           
 boolean hasOwnerChanged()
           
 boolean hasRefCountChanged()
           
 boolean hasVersionIdChanged()
           
 boolean isFolder()
           
 void save()
           
 void setACL(java.lang.String aclpath)
           
 void setAuthor(java.lang.String authname)
           
 void setCharacterSet(java.lang.String charSet)
           
 void setComment(java.lang.String davcom)
           
 void setContent(java.lang.Object xmlobj)
           
 void setContentType(java.lang.String conttype)
           
 void setCreationDate(java.sql.Timestamp credate)
           
 void setCreator(java.lang.String creator)
           
 void setCustomMetadata(java.lang.String namespace, java.lang.String name, XMLType newData)
           
 void setDisplayName(java.lang.String dname)
           
 void setLanguage(java.lang.String lang)
           
 void setLastModifier(java.lang.String modifier)
           
 void setModificationDate(java.sql.Timestamp moddate)
           
 void setOwner(java.lang.String owner)
           
 void setOwnerId(long ownerid)
           
 void setSchemaElement(java.lang.String schema)
           
 void setVersionId(int versionId)
           

 

Methods inherited from class oracle.xdb.dom.XDBDocument
adoptNode, appendChild, close, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, finalize, getDoctype, getDocumentElement, getDocumentURI, getDomConfig, getElementById, getElementsByTagName, getElementsByTagNameNS, getEnvNative, getFirstChild, getGP, getImplementation, getInputEncoding, getLastChild, getNextSibling, getNodeName, getOwnerDocument, getPreviousSibling, getStrictErrorChecking, getXmlEncoding, getXmlStandalone, getXmlVersion, importNode, insertBefore, isClosed, normalizeDocument, removeChild, renameNode, replaceChild, setDocumentURI, setStrictErrorChecking, setXmlStandalone, setXmlVersion

 

Methods inherited from class oracle.xdb.dom.XDBNode
cloneNode, compareDocumentPosition, equals, getAttributes, getBaseURI, getChildNodes, getExpandedName, getFeature, getInputStream, getLocalName, getNamespaceURI, getNodeFromCState, getNodeType, getNodeValue, getParentNode, getPrefix, getPrimitiveType, getQualifiedName, getSchemaNode, getTextContent, getUserData, hasAttributes, hasChildNodes, hashCode, isDefaultNamespace, isEqualNode, isNilled, isSameNode, isSchemaBased, isSupported, lookupNamespaceURI, lookupPrefix, normalize, setNodeValue, setNodeXob, setOwner, setPrefix, setTextContent, setUserData, setXobCstate, toCState, toString, validateName, write, writeToOutputStream

 

Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface org.w3c.dom.Node
cloneNode, getAttributes, getChildNodes, getLocalName, getNamespaceURI, getNodeType, getNodeValue, getParentNode, getPrefix, hasAttributes, hasChildNodes, isSupported, normalize, setNodeValue, setPrefix

 

Field Detail

m_resElem

protected Element m_resElem

m_path

protected java.lang.String m_path

Constructor Detail

XDBResource

public XDBResource(java.sql.Connection conn,
                   java.lang.String abspath,
                   long xobd)

XDBResource

public XDBResource(XMLType resxmlt,
                   java.sql.Connection conn,
                   java.lang.String abspath)

Method Detail

getServerEnv

public static long getServerEnv()

getServerCtx

public static long getServerCtx()

freeServerCtx

public static void freeServerCtx(long xmctx)

getOwnerId

public long getOwnerId()
Specified by:
getOwnerId in interface Resource

setOwnerId

public void setOwnerId(long ownerid)
                throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setOwnerId in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getCharacterSet

public java.lang.String getCharacterSet()
Specified by:
getCharacterSet in interface Resource

setCharacterSet

public void setCharacterSet(java.lang.String charSet)
                     throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setCharacterSet in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getSchemaElement

public java.lang.String getSchemaElement()
Specified by:
getSchemaElement in interface Resource

setSchemaElement

public void setSchemaElement(java.lang.String schema)
                      throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setSchemaElement in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getCreator

public java.lang.String getCreator()
Specified by:
getCreator in interface Resource

setCreator

public void setCreator(java.lang.String creator)
                throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setCreator in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getRefCount

public java.lang.String getRefCount()

getOwner

public java.lang.String getOwner()
Specified by:
getOwner in interface Resource

setOwner

public void setOwner(java.lang.String owner)
              throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setOwner in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getCreationDate

public java.sql.Timestamp getCreationDate()
Specified by:
getCreationDate in interface Resource

setCreationDate

public void setCreationDate(java.sql.Timestamp credate)
                     throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setCreationDate in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getModificationDate

public java.sql.Timestamp getModificationDate()
Specified by:
getModificationDate in interface Resource

setModificationDate

public void setModificationDate(java.sql.Timestamp moddate)
                         throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setModificationDate in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getLastModifier

public java.lang.String getLastModifier()
Specified by:
getLastModifier in interface Resource

setLastModifier

public void setLastModifier(java.lang.String modifier)
                     throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setLastModifier in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getAuthor

public java.lang.String getAuthor()
Specified by:
getAuthor in interface Resource

setAuthor

public void setAuthor(java.lang.String authname)
               throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setAuthor in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface Resource

setDisplayName

public void setDisplayName(java.lang.String dname)
                    throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setDisplayName in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getComment

public java.lang.String getComment()
Specified by:
getComment in interface Resource

setComment

public void setComment(java.lang.String davcom)
                throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setComment in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getLanguage

public java.lang.String getLanguage()
Specified by:
getLanguage in interface Resource

setLanguage

public void setLanguage(java.lang.String lang)
                 throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setLanguage in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface Resource

setContentType

public void setContentType(java.lang.String conttype)
                    throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setContentType in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getVersionId

public int getVersionId()
Specified by:
getVersionId in interface Resource

setVersionId

public void setVersionId(int versionId)
                  throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setVersionId in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

getContentXML

public Document getContentXML()
Specified by:
getContentXML in interface Resource

getContentBinary

public java.io.InputStream getContentBinary()
Specified by:
getContentBinary in interface Resource

setContent

public void setContent(java.lang.Object xmlobj)
                throws javax.naming.directory.InvalidAttributeValueException,
                       javax.naming.OperationNotSupportedException
Specified by:
setContent in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException
javax.naming.OperationNotSupportedException

getACL

public java.lang.String getACL()
Specified by:
getACL in interface Resource

setACL

public void setACL(java.lang.String aclpath)
            throws javax.naming.directory.InvalidAttributeValueException
Specified by:
setACL in interface Resource
Throws:
javax.naming.directory.InvalidAttributeValueException

save

public void save()

getSize

public int getSize()
Specified by:
getSize in interface Resource

isFolder

public boolean isFolder()
Specified by:
isFolder in interface Resource

getCustomMetadata

public XMLType getCustomMetadata(java.lang.String namespace,
                                 java.lang.String name)

setCustomMetadata

public void setCustomMetadata(java.lang.String namespace,
                              java.lang.String name,
                              XMLType newData)

hasACLChanged

public boolean hasACLChanged()

hasAuthorChanged

public boolean hasAuthorChanged()

hasCharacterSetChanged

public boolean hasCharacterSetChanged()

hasCommentChanged

public boolean hasCommentChanged()

hasContentChanged

public boolean hasContentChanged()

hasContentTypeChanged

public boolean hasContentTypeChanged()

hasCreationDateChanged

public boolean hasCreationDateChanged()

hasCreatorChanged

public boolean hasCreatorChanged()

hasCustomMetadataChanged

public boolean hasCustomMetadataChanged()

hasDisplayNameChanged

public boolean hasDisplayNameChanged()

hasLanguageChanged

public boolean hasLanguageChanged()

hasLastModifierChanged

public boolean hasLastModifierChanged()

hasModificationDateChanged

public boolean hasModificationDateChanged()

hasOwnerChanged

public boolean hasOwnerChanged()

hasRefCountChanged

public boolean hasRefCountChanged()

hasVersionIdChanged

public boolean hasVersionIdChanged()

hasChanged

public boolean hasChanged(java.lang.String xpath,
                          java.lang.String namespace)

Skip navigation links

Oracle® Database XML Java API Reference
11g Release 1 (11.1)

B28391-01


Copyright © 2003, 2007, Oracle. All rights reserved.