|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.xdb.spi.XDBContext
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 | |
long |
m_cstate |
java.util.Hashtable |
m_env |
java.lang.String |
m_path |
static int |
OBJ_CONTAINER |
static int |
OBJ_DOCUMENT |
static long |
RES_OBJ |
protected static XDBNameParser |
s_parser |
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 |
Constructor Summary | |
XDBContext(java.util.Hashtable env) | |
XDBContext(java.util.Hashtable env, java.lang.String path) | |
XDBContext(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[] usrName) |
static long |
getServerEnv() |
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. |
long |
toCState() |
void |
unbind(javax.naming.Name name) Unbinds the name object. |
void |
unbind(java.lang.String name) Unbinds the name object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long RES_OBJ
public static final int OBJ_CONTAINER
public static final int OBJ_DOCUMENT
public java.util.Hashtable m_env
public long m_cstate
public java.lang.String m_path
protected static XDBNameParser s_parser
Constructor Detail |
public XDBContext(java.util.Hashtable env)
public XDBContext(java.util.Hashtable env, java.lang.String path)
public XDBContext(java.util.Hashtable env, java.lang.String path, long cstate)
Method Detail |
public static java.lang.String getSchemaNameNative(long cstate, java.lang.String[] usrName)
public static long getServerEnv()
public java.lang.Object lookup(java.lang.String name) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
name
- 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.Context
name
- the name to look up, relative to the current context.javax.naming.NamingException
XDBDocument
public void bind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
name
- 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.Context
name
- 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.Context
name
- 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.Context
name
- 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.Context
name
- 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 exceptiondestroySubcontext(java.lang.String)
public void unbind(javax.naming.Name name) throws javax.naming.NamingException
unbind
in interface javax.naming.Context
name
- 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 exceptiondestroySubcontext(javax.naming.Name)
public void rename(java.lang.String oldname, java.lang.String newname) throws javax.naming.NamingException
rename
in interface javax.naming.Context
oldname
- 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 exceptionpublic void rename(javax.naming.Name oldname, javax.naming.Name newname) throws javax.naming.NamingException
rename
in interface javax.naming.Context
oldname
- 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 exceptionpublic javax.naming.NamingEnumeration list(java.lang.String name) throws javax.naming.NamingException
list
in interface javax.naming.Context
name
- 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.Context
name
- 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.Context
name
- 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.Context
name
- 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.Context
name
- 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 exceptionpublic void destroySubcontext(javax.naming.Name name) throws javax.naming.NamingException
destroySubcontext
in interface javax.naming.Context
name
- 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 exceptionpublic javax.naming.Context createSubcontext(java.lang.String name) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.Context
javax.naming.NameNotFoundException
- parent path not foundjavax.naming.NotContextException
- parent path not a contextjavax.naming.NameAlreadyBoundException
- name already boundjavax.naming.NamingException
- other naming exceptionpublic javax.naming.Context createSubcontext(javax.naming.Name name) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.Context
javax.naming.NameNotFoundException
- parent path not foundjavax.naming.NotContextException
- parent path not a contextjavax.naming.NameAlreadyBoundException
- name already boundjavax.naming.NamingException
- other naming exceptionpublic java.lang.Object lookupLink(java.lang.String name) throws javax.naming.NamingException
lookupLink
in interface javax.naming.Context
name
- the name to look up, relative to the current context.javax.naming.NamingException
lookup(java.lang.String)
, XDBDocument
public java.lang.Object lookupLink(javax.naming.Name name) throws javax.naming.NamingException
lookupLink
in interface javax.naming.Context
name
- the name to look up, relative to the current context.javax.naming.NamingException
lookup(javax.naming.Name)
, XDBDocument
public javax.naming.NameParser getNameParser(java.lang.String name) throws javax.naming.NamingException
getNameParser
in interface javax.naming.Context
name
- 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 exceptionpublic javax.naming.NameParser getNameParser(javax.naming.Name name) throws javax.naming.NamingException
getNameParser
in interface javax.naming.Context
name
- 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 exceptionpublic java.lang.String composeName(java.lang.String name, java.lang.String prefix)
composeName
in interface javax.naming.Context
name
- the name to appendpublic javax.naming.Name composeName(javax.naming.Name name, javax.naming.Name prefix) throws javax.naming.NamingException
composeName
in interface javax.naming.Context
name
- the name to appendjavax.naming.NamingException
public java.lang.Object addToEnvironment(java.lang.String propName, java.lang.Object propVal) throws javax.naming.NamingException
addToEnvironment
in interface javax.naming.Context
propName
- the name of the environment property to add; may not be nullpropVal
- the value of the property to add; may not be nulljavax.naming.NamingException
public java.lang.Object removeFromEnvironment(java.lang.String propName)
removeFromEnvironment
in interface javax.naming.Context
propName
- the name of the environment property to remove; may not be nullpublic java.util.Hashtable getEnvironment() throws javax.naming.NamingException
getEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public void close()
close
in interface javax.naming.Context
public java.lang.String getNameInNamespace() throws javax.naming.NamingException
getNameInNamespace
in interface javax.naming.Context
javax.naming.NamingException
public long toCState()
|
Oracle® XML Java API Reference 10g Release 1 (10.1) B12024-02 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |