| 
 | Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--oracle.xdb.dom.XDBNode
        |
        +--oracle.xdb.dom.XDBDocument
              |
              +--oracle.xdb.spi.XDBResource
                    |
                    +--oracle.xdb.spi.XDBResourceContext
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.util.Hashtable | m_env | 
| protected  java.lang.String | m_path | 
| protected  XDBElement | m_resElem | 
| static int | OBJ_BINARY_DOC | 
| static int | OBJ_CONTAINER | 
| static int | OBJ_DOCUMENT | 
| static long | RES_OBJ | 
| protected static XDBNameParser | s_parser | 
| Fields inherited from class oracle.xdb.dom.XDBNode | 
| m_conn, m_owner, m_xobcstate | 
| Fields inherited from interface javax.naming.Context | 
| APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES | 
| 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 | |
| XDBResourceContext(java.util.Hashtable env) | |
| XDBResourceContext(java.util.Hashtable env, java.lang.String path, long cstate) | |
| Method Summary | |
|  java.lang.Object | addToEnvironment(java.lang.String propName, java.lang.Object propVal)Adds a new environment property to the environment of this context. | 
|  void | bind(javax.naming.Name name, java.lang.Object obj)Binds the given name to the object. | 
|  void | bind(java.lang.String name, java.lang.Object obj)Binds the given name to the object. | 
|  void | close()Closes this context, signaling the implementation to free the resources taken up by this context. | 
|  javax.naming.Name | composeName(javax.naming.Name name, javax.naming.Name prefix)Composes a name by combining the prefix with the name. | 
|  java.lang.String | composeName(java.lang.String name, java.lang.String prefix)Composes a name by combining the prefix with the name. | 
|  javax.naming.Context | createSubcontext(javax.naming.Name name)Creates a new subcontext, bound to the given name. | 
|  javax.naming.Context | createSubcontext(java.lang.String name)Creates a new subcontext, bound to the given name. | 
|  void | destroySubcontext(javax.naming.Name name)Unbinds the named subcontext. | 
|  void | destroySubcontext(java.lang.String name)Unbinds the named subcontext. | 
|  java.util.Hashtable | getEnvironment()Retrieves the environment properties for this context. | 
|  java.lang.String | getNameInNamespace()Retrieves the full name of this context within its own namespace. | 
|  javax.naming.NameParser | getNameParser(javax.naming.Name name)Retrieves the parser associated with the named context. | 
|  javax.naming.NameParser | getNameParser(java.lang.String name)Retrieves the parser associated with the named context. | 
| static java.lang.String | getSchemaNameNative(long cstate, java.lang.String[] name) | 
|  javax.naming.NamingEnumeration | list(javax.naming.Name name)Enumerates the names bound in the named context, along with the class names of objects bounds to them. | 
|  javax.naming.NamingEnumeration | list(java.lang.String name)Enumerates the names bound in the named context, along with the class names of objects bounds to them. | 
|  javax.naming.NamingEnumeration | listBindings(javax.naming.Name name)Enumerates the names bound in the named context, along with the objects bounds to them. | 
|  javax.naming.NamingEnumeration | listBindings(java.lang.String name)Enumerates the names bound in the named context, along with the objects bounds to them. | 
|  java.lang.Object | lookup(javax.naming.Name name)Retrieves the named object. | 
|  java.lang.Object | lookup(java.lang.String name)Retrieves the named object. | 
|  java.lang.Object | lookupLink(javax.naming.Name name)Retrieves the named object. | 
|  java.lang.Object | lookupLink(java.lang.String name)Retrieves the named object. | 
|  void | rebind(javax.naming.Name name, java.lang.Object obj)Binds the given name to the object, overwriting any existing binding for the name. | 
|  void | rebind(java.lang.String name, java.lang.Object obj)Binds the given name to the object, overwriting any existing binding for the name. | 
|  java.lang.Object | removeFromEnvironment(java.lang.String propName)Removes an environment property from the environment of this context. | 
|  void | rename(javax.naming.Name oldname, javax.naming.Name newname)Binds a new name to the object already bound to another name, then unbinds the old name. | 
|  void | rename(java.lang.String oldname, java.lang.String newname)Bind a new name to the object already bound to another name, then unbinds the old name. | 
|  void | unbind(javax.naming.Name name)Unbinds the name object. | 
|  void | unbind(java.lang.String name)Unbinds the name object. | 
| Methods inherited from class oracle.xdb.spi.XDBResource | 
| getACL, getAuthor, getCharacterSet, getComment, getContentBinary, getContentType, getContentXML, getCreationDate, getCreator, getDisplayName, getLanguage, getLastModifier, getModificationDate, getOwner, getOwnerId, getSchemaElement, getServerEnv, getSize, getVersionId, isFolder, save, setACL, setAuthor, setCharacterSet, setComment, setContent, setContentType, setCreationDate, setCreator, setDisplayName, setLanguage, setLastModifier, setModificationDate, setOwner, setOwnerId, setSchemaElement, setVersionId | 
| Methods inherited from class oracle.xdb.dom.XDBNode | 
| cloneNode, equals, getAttributes, getChildNodes, getExpandedName, getLocalName, getNamespaceURI, getNodeFromCState, getNodeType, getNodeValue, getParentNode, getPrefix, getQualifiedName, getSchemaNode, hasAttributes, hashCode, isSupported, normalize, setNodeValue, setNodeXob, setOwner, setPrefix, setXobCstate, toCState, toString, write | 
| 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, isSupported, normalize, setNodeValue, setPrefix | 
| Field Detail | 
public static final long RES_OBJ
public static final int OBJ_CONTAINER
public static final int OBJ_DOCUMENT
public static final int OBJ_BINARY_DOC
protected static XDBNameParser s_parser
protected java.lang.String m_path
protected java.util.Hashtable m_env
protected XDBElement m_resElem
| Constructor Detail | 
public XDBResourceContext(java.util.Hashtable env)
                   throws javax.naming.NamingException,
                          javax.naming.OperationNotSupportedException,
                          java.sql.SQLException
public XDBResourceContext(java.util.Hashtable env,
                          java.lang.String path,
                          long cstate)
                   throws javax.naming.NamingException,
                          javax.naming.OperationNotSupportedException,
                          java.sql.SQLException
 
| Method Detail | 
public static java.lang.String getSchemaNameNative(long cstate,
                                                   java.lang.String[] name)
public java.lang.Object lookup(java.lang.String name)
                        throws javax.naming.NamingException
lookup in interface javax.naming.Contextname - the name to look up, relative to the current context.javax.naming.NameNotFoundException - name not foundjavax.naming.NamingException - other naming exceptionXDBDocument
public java.lang.Object lookup(javax.naming.Name name)
                        throws javax.naming.NamingException
lookup in interface javax.naming.Contextname - the name to look up, relative to the current context.javax.naming.NamingExceptionXDBDocument
public void bind(java.lang.String name,
                 java.lang.Object obj)
          throws javax.naming.NamingException
bind in interface javax.naming.Contextname - the name to bind to; may not be emptyobj - the XDBDocument object to bind; may not be nulljavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exceptionXDBDocument
public void bind(javax.naming.Name name,
                 java.lang.Object obj)
          throws javax.naming.NamingException
bind in interface javax.naming.Contextname - the name to bind to; may not be emptyobj - the XDBDocument object to bind; may not be nulljavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exceptionXDBDocument
public void rebind(java.lang.String name,
                   java.lang.Object obj)
            throws javax.naming.NamingException
rebind in interface javax.naming.Contextname - the name to bind to; may not be emptyobj - the XDBDocument object to bind; may not be nulljavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exceptionXDBDocument
public void rebind(javax.naming.Name name,
                   java.lang.Object obj)
            throws javax.naming.NamingException
rebind in interface javax.naming.Contextname - the name to bind to; may not be emptyobj - the XDBDocument object to bind; may not be nulljavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exceptionXDBDocument
public void unbind(java.lang.String name)
            throws javax.naming.NamingException
unbind in interface javax.naming.Contextname - the name to unbindjavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.OperationNotSupportedException - name bound to subcontextjavax.naming.NamingException - other naming exceptionXDBContext.destroySubcontext(java.lang.String)
public void unbind(javax.naming.Name name)
            throws javax.naming.NamingException
unbind in interface javax.naming.Contextname - the name to unbindjavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.OperationNotSupportedException - name bound to subcontextjavax.naming.NamingException - other naming exceptionXDBContext.destroySubcontext(javax.naming.Name)
public void rename(java.lang.String oldname,
                   java.lang.String newname)
            throws javax.naming.NamingException
rename in interface javax.naming.Contextoldname - the name of the existing binding; may not be emptynewname - the name to the new binding; may not be emptyjavax.naming.NamingException - name not foundjavax.naming.OperationNotSupportedException - name bound to subcontextjavax.naming.NamingException - other naming exception
public void rename(javax.naming.Name oldname,
                   javax.naming.Name newname)
            throws javax.naming.NamingException
rename in interface javax.naming.Contextoldname - the name of the existing binding; may not be emptynewname - the name to the new binding; may not be emptyjavax.naming.NamingException - name not foundjavax.naming.OperationNotSupportedException - name bound to subcontext , * @exception javax.naming.NamingException other naming exception
public javax.naming.NamingEnumeration list(java.lang.String name)
                                    throws javax.naming.NamingException
list in interface javax.naming.Contextname - the name of the context to listjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exceptionNameClassPair
public javax.naming.NamingEnumeration list(javax.naming.Name name)
                                    throws javax.naming.NamingException
list in interface javax.naming.Contextname - the name of the context to listjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exceptionNameClassPair
public javax.naming.NamingEnumeration listBindings(java.lang.String name)
                                            throws javax.naming.NamingException
listBindings in interface javax.naming.Contextname - the name of the context to listjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exceptionBinding
public javax.naming.NamingEnumeration listBindings(javax.naming.Name name)
                                            throws javax.naming.NamingException
listBindings in interface javax.naming.Contextname - the name of the context to listjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exceptionBinding
public void destroySubcontext(java.lang.String name)
                       throws javax.naming.NamingException
destroySubcontext in interface javax.naming.Contextname - the name of the context to unbindjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.ContextNotEmptyException - context not emptyjavax.naming.NamingException - other naming exception
public void destroySubcontext(javax.naming.Name name)
                       throws javax.naming.NamingException
destroySubcontext in interface javax.naming.Contextname - the name of the context to unbindjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.ContextNotEmptyException - context not emptyjavax.naming.NamingException - other naming exception
public javax.naming.Context createSubcontext(java.lang.String name)
                                      throws javax.naming.NamingException
createSubcontext in interface javax.naming.Contextjavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exception
public javax.naming.Context createSubcontext(javax.naming.Name name)
                                      throws javax.naming.NamingException
createSubcontext in interface javax.naming.Contextjavax.naming.NameNotFoundException - parent path not foundjavax.naming.NotContextException - parent path not a contextjavax.naming.NameAlreadyBoundException - name already boundjavax.naming.NamingException - other naming exception
public java.lang.Object lookupLink(java.lang.String name)
                            throws javax.naming.NamingException
lookupLink in interface javax.naming.Contextname - the name to look up, relative to the current context.javax.naming.NamingExceptionXDBContext.lookup(java.lang.String), XDBDocument
public java.lang.Object lookupLink(javax.naming.Name name)
                            throws javax.naming.NamingException
lookupLink in interface javax.naming.Contextname - the name to look up, relative to the current context.javax.naming.NamingExceptionXDBContext.lookup(javax.naming.Name), XDBDocument
public javax.naming.NameParser getNameParser(java.lang.String name)
                                      throws javax.naming.NamingException
getNameParser in interface javax.naming.Contextname - the name of the context from which to get the parserjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exception
public javax.naming.NameParser getNameParser(javax.naming.Name name)
                                      throws javax.naming.NamingException
getNameParser in interface javax.naming.Contextname - the name of the context from which to get the parserjavax.naming.NameNotFoundException - context name not foundjavax.naming.NotContextException - name not bound to contextjavax.naming.NamingException - other naming exception
public java.lang.String composeName(java.lang.String name,
                                    java.lang.String prefix)
composeName in interface javax.naming.Contextname - the name to append
public javax.naming.Name composeName(javax.naming.Name name,
                                     javax.naming.Name prefix)
                              throws javax.naming.NamingException
composeName in interface javax.naming.Contextname - the name to appendjavax.naming.NamingException
public java.lang.Object addToEnvironment(java.lang.String propName,
                                         java.lang.Object propVal)
addToEnvironment in interface javax.naming.ContextpropName - the name of the environment property to add; may not be nullpropVal - the value of the property to add; may not be nullpublic java.lang.Object removeFromEnvironment(java.lang.String propName)
removeFromEnvironment in interface javax.naming.ContextpropName - the name of the environment property to remove; may not be null
public java.util.Hashtable getEnvironment()
                                   throws javax.naming.NamingException
getEnvironment in interface javax.naming.Contextjavax.naming.NamingExceptionpublic void close()
close in interface javax.naming.Contextclose in class XDBDocument
public java.lang.String getNameInNamespace()
                                    throws javax.naming.NamingException
getNameInNamespace in interface javax.naming.Contextjavax.naming.NamingException| 
 | Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||