All Packages Class Hierarchy This Package Previous Next Index
Class oracle.aurora.jndi.sess_iiop.SessionCtx
java.lang.Object
|
+----oracle.aurora.jndi.sess_iiop.SessionCtx
- public class SessionCtx
- extends Object
The SessionCtx class represents the contexts in the session namespace.
Each context is stored persistently in the database, and as such survives
between sessions. Instances of these contexts front for the actual persistent
data. Objects bound in a session context may be either instancs of session
contexts, or of PublishedObject. PublishedObjects are objects that contain
the information necessary to activate the object in a session. Once activated,
repeated activations return the same instance of the activated object in a session.
When a lookup of a name occurs in a SessionCtx, the PublishedObject is returned.
To activate the object which the PublishedObject refers to, a method activate(name)
is supplied. This method correctly narrows the returned object to the type supplied
by the helper class name of the PublishedObject.
- Author:
- Hal Hildebrand.
-
InitialReferencesFinderClass
-
-
SslInitialReferencesFinderClass
-
-
_lookup(Name)
- Lookup, but do not activate, the object associated
with the string name.
-
_lookup(String)
- Lookup, but do not activate, the object associated
with the string name.
-
activate(Name)
- Lookup and activate object associated
with the string name.
-
activate(String)
- Lookup and activate object associated
with the string name.
-
addToEnvironment(String, Object)
- Add the key/value pair to the receiver's environment
-
bind(Name, Object)
- Bind the object to the name in the reciever.
-
bind(Name, Object, Attributes)
- Unsupported in 8.1.5
-
bind(String, Object)
- Bind the object to the name in the reciever.
-
bind(String, Object, Attributes)
- unsupported in 8.1.5
-
close()
- noop
-
composeName(Name, Name)
- Compose two names.
-
composeName(String, String)
- Compose two names.
-
createObject(Name, String, String)
- Create a new PublishedObject in the receiver's context,
binding it to the name given.
-
createObject(Name, String, String, String)
- Create a new PublishedObject in the receiver's context,
binding it to the name given.
-
createObject(String, String, String)
- Create a new PublishedObject in the receiver's context,
binding it to the name given.
-
createObject(String, String, String, String)
- Create a new PublishedObject in the receiver's context,
binding it to the name given.
-
createSubcontext(Name)
- Create a new context and bind it to the supplied name
-
createSubcontext(Name, Attributes)
- Unsupported in 8.1.5
-
createSubcontext(String)
- Create a new context and bind it to the supplied name
-
createSubcontext(String, Attributes)
- Unsupported in 8.1.5
-
destroySubcontext(Name)
- Deletes the sub context associated with the name
-
destroySubcontext(String)
- Deletes the sub context associated with the name
-
get_attributes()
- Answer the ctxAttributes of the receiver.
-
getAttributes()
- Unsupported in 8.1.5
-
getAttributes(Name)
- Unsupported in 8.1.5
-
getAttributes(Name, String[])
- Unsupported in 8.1.5
-
getAttributes(String)
- Unsupported in 8.1.5
-
getAttributes(String, String[])
- Unsupported in 8.1.5
-
getEnvironment()
- Answer the receiver's environment.
-
getNameParser(Name)
- Answer the parser for the receiver
-
getNameParser(String)
- Answer the parser for the receiver
-
getSchema(Name)
- Unsupported in 8.1.5
-
getSchema(String)
- Unsupported in 8.1.5
-
getSchemaClassDefinition(Name)
- Unsupported in 8.1.5
-
getSchemaClassDefinition(String)
- Unsupported in 8.1.5
-
list(Name)
- List the bindings associated with the context bound
to a name.
-
list(String)
- List the bindings associated with the context bound
to a name.
-
listBindings(Name)
- List the bindings associated with the context bound
to a name.
-
listBindings(String)
- List the bindings associated with the context bound
to a name.
-
login()
- Login to the session using the properties set in the
receiver's environment.
-
login(String, String, String)
- Login to the session using the supplied arguments.
-
lookup(Name)
- Lookup the Object bound to a name.
-
lookup(String)
- Lookup the Object bound to a name.
-
lookupLink(Name)
- Lookup the Object bound to a name.
-
lookupLink(String)
- Lookup the Object bound to a name.
-
modifyAttributes(Name, int, Attributes)
- Unsupported in 8.1.5
-
modifyAttributes(Name, ModificationItem[])
- Unsupported in 8.1.5
-
modifyAttributes(String, int, Attributes)
- Unsupported in 8.1.5
-
modifyAttributes(String, ModificationItem[])
- Unsupported in 8.1.5
-
rebind(Name, Object)
- Rebind the name to the Object.
-
rebind(Name, Object, Attributes)
- Unsupported in 8.1.5
-
rebind(String, Object)
- Rebind the name to the Object.
-
rebind(String, Object, Attributes)
- Unsupported in 8.1.5
-
removeFromEnvironment(String)
- Remove the key and associated value from the
receiver's environment.
-
rename(Name, Name)
- Rename the object bound to the from name to the to name.
-
rename(String, String)
- Rename the object bound to the from name to the to name.
-
search(Name, Attributes)
- Unsupported in 8.1.5
-
search(Name, Attributes, String[])
- Unsupported in 8.1.5
-
search(Name, String, Object[], SearchControls)
- Unsupported in 8.1.5
-
search(Name, String, SearchControls)
- Unsupported in 8.1.5
-
search(String, Attributes)
- Unsupported in 8.1.5
-
search(String, Attributes, String[])
- Unsupported in 8.1.5
-
search(String, String, Object[], SearchControls)
- Unsupported in 8.1.5
-
search(String, String, SearchControls)
- Unsupported in 8.1.5
-
sessionId()
- Answer the numeric session id of the session in which the context exists
-
set_attributes(String, String[], String[], String[])
- Set the owner, read, write, and execute privileges of the receiver.
-
set_owner(String)
- Set the owner of the context
-
unbind(Name)
- Unbind the Object associated with the name
-
unbind(String)
- Unbind the Object associated with the name
InitialReferencesFinderClass
public static String InitialReferencesFinderClass
SslInitialReferencesFinderClass
public static String SslInitialReferencesFinderClass
_lookup
public Object _lookup(String name) throws NamingException
- Lookup, but do not activate, the object associated
with the string name. This method will return the instance of
the PublishedObject, rather than the object that is published.
_lookup
public synchronized Object _lookup(Name name) throws NamingException
- Lookup, but do not activate, the object associated
with the string name. This method will return the instance of
the PublishedObject, rather than the object that is published.
activate
public Object activate(String name) throws NamingException
- Lookup and activate object associated
with the string name. This method returns the activated
object for a PublishedObject stored in the session namespace.
activate
public synchronized Object activate(Name name) throws NamingException
- Lookup and activate object associated
with the string name. This method returns the activated
object for a PublishedObject stored in the session namespace.
addToEnvironment
public Object addToEnvironment(String key,
Object value) throws NamingException
- Add the key/value pair to the receiver's environment
bind
public void bind(String name,
Object object) throws NamingException
- Bind the object to the name in the reciever.
bind
public void bind(String arg1,
Object arg2,
Attributes arg3) throws NamingException
- unsupported in 8.1.5
bind
public void bind(Name name,
Object object) throws NamingException
- Bind the object to the name in the reciever.
bind
public void bind(Name arg1,
Object arg2,
Attributes arg3) throws NamingException
- Unsupported in 8.1.5
close
public void close() throws NamingException
- noop
composeName
public String composeName(String arg1,
String arg2) throws NamingException
- Compose two names.
composeName
public Name composeName(Name arg1,
Name arg2) throws NamingException
- Compose two names.
createObject
public PublishedObject createObject(String name,
String className,
String helper) throws NamingException
- Create a new PublishedObject in the receiver's context,
binding it to the name given.
createObject
public PublishedObject createObject(String name,
String className,
String schema,
String helper) throws NamingException
- Create a new PublishedObject in the receiver's context,
binding it to the name given.
createObject
public PublishedObject createObject(Name name,
String className,
String helper) throws NamingException
- Create a new PublishedObject in the receiver's context,
binding it to the name given.
createObject
public PublishedObject createObject(Name name,
String className,
String schema,
String helper) throws NamingException
- Create a new PublishedObject in the receiver's context,
binding it to the name given.
createSubcontext
public Context createSubcontext(String name) throws NamingException
- Create a new context and bind it to the supplied name
createSubcontext
public DirContext createSubcontext(String arg1,
Attributes arg2) throws NamingException
- Unsupported in 8.1.5
createSubcontext
public Context createSubcontext(Name name) throws NamingException
- Create a new context and bind it to the supplied name
createSubcontext
public DirContext createSubcontext(Name arg1,
Attributes arg2) throws NamingException
- Unsupported in 8.1.5
destroySubcontext
public void destroySubcontext(String name) throws NamingException
- Deletes the sub context associated with the name
destroySubcontext
public void destroySubcontext(Name name) throws NamingException
- Deletes the sub context associated with the name
get_attributes
public ctxAttribs get_attributes()
- Answer the ctxAttributes of the receiver.
getAttributes
public ctxAttribs getAttributes()
- Unsupported in 8.1.5
getAttributes
public Attributes getAttributes(String arg1) throws NamingException
- Unsupported in 8.1.5
getAttributes
public Attributes getAttributes(String arg1,
String arg2[]) throws NamingException
- Unsupported in 8.1.5
getAttributes
public Attributes getAttributes(Name arg1) throws NamingException
- Unsupported in 8.1.5
getAttributes
public Attributes getAttributes(Name arg1,
String arg2[]) throws NamingException
- Unsupported in 8.1.5
getEnvironment
public Hashtable getEnvironment() throws NamingException
- Answer the receiver's environment.
getNameParser
public NameParser getNameParser(String arg1) throws NamingException
- Answer the parser for the receiver
getNameParser
public NameParser getNameParser(Name arg1) throws NamingException
- Answer the parser for the receiver
getSchema
public DirContext getSchema(String arg1) throws NamingException
- Unsupported in 8.1.5
getSchema
public DirContext getSchema(Name arg1) throws NamingException
- Unsupported in 8.1.5
getSchemaClassDefinition
public DirContext getSchemaClassDefinition(String arg1) throws NamingException
- Unsupported in 8.1.5
getSchemaClassDefinition
public DirContext getSchemaClassDefinition(Name arg1) throws NamingException
- Unsupported in 8.1.5
list
public NamingEnumeration list(String name) throws NamingException
- List the bindings associated with the context bound
to a name. This operation does not activate any published
objects in that context.
list
public synchronized NamingEnumeration list(Name name) throws NamingException
- List the bindings associated with the context bound
to a name. This operation does not activate any published
objects in that context.
listBindings
public NamingEnumeration listBindings(String name) throws NamingException
- List the bindings associated with the context bound
to a name. This operation does not activate any published
objects in that context.
listBindings
public NamingEnumeration listBindings(Name name) throws NamingException
- List the bindings associated with the context bound
to a name. This operation does not activate any published
objects in that context.
login
public synchronized boolean login() throws NamingException
- Login to the session using the properties set in the
receiver's environment.
login
public synchronized boolean login(String username,
String password,
String role) throws NamingException
- Login to the session using the supplied arguments. Answer true
if the login was successful, fals otherwise.
lookup
public Object lookup(String name) throws NamingException
- Lookup the Object bound to a name. If the name resolves to
a PublishedObject, this method will not activate the PublishedObject.
If activation is desired, use the method activate() instead.
lookup
public Object lookup(Name name) throws NamingException
- Lookup the Object bound to a name. If the name resolves to
a PublishedObject, this method will not activate the PublishedObject.
If activation is desired, use the method activate() instead.
lookupLink
public Object lookupLink(String name) throws NamingException
- Lookup the Object bound to a name. If the name resolves to
a PublishedObject, this method will not activate the PublishedObject.
If activation is desired, use the method activate() instead.
lookupLink
public Object lookupLink(Name name) throws NamingException
- Lookup the Object bound to a name. If the name resolves to
a PublishedObject, this method will not activate the PublishedObject.
If activation is desired, use the method activate() instead.
modifyAttributes
public void modifyAttributes(String arg1,
ModificationItem arg2[]) throws NamingException
- Unsupported in 8.1.5
modifyAttributes
public void modifyAttributes(String arg1,
int arg2,
Attributes arg3) throws NamingException
- Unsupported in 8.1.5
modifyAttributes
public void modifyAttributes(Name arg1,
ModificationItem arg2[]) throws NamingException
- Unsupported in 8.1.5
modifyAttributes
public void modifyAttributes(Name arg1,
int arg2,
Attributes arg3) throws NamingException
- Unsupported in 8.1.5
rebind
public void rebind(String name,
Object obj) throws NamingException
- Rebind the name to the Object.
rebind
public void rebind(String arg1,
Object arg2,
Attributes arg3) throws NamingException
- Unsupported in 8.1.5
rebind
public void rebind(Name name,
Object obj) throws NamingException
- Rebind the name to the Object.
rebind
public void rebind(Name arg1,
Object arg2,
Attributes arg3) throws NamingException
- Unsupported in 8.1.5
removeFromEnvironment
public Object removeFromEnvironment(String key) throws NamingException
- Remove the key and associated value from the
receiver's environment.
rename
public void rename(String from,
String to) throws NamingException
- Rename the object bound to the from name to the to name.
rename
public synchronized void rename(Name from,
Name to) throws NamingException
- Rename the object bound to the from name to the to name.
search
public NamingEnumeration search(String arg1,
String arg2,
Object arg3[],
SearchControls arg4) throws NamingException
- Unsupported in 8.1.5
search
public NamingEnumeration search(String arg1,
String arg2,
SearchControls arg3) throws NamingException
- Unsupported in 8.1.5
search
public NamingEnumeration search(String arg1,
Attributes arg2) throws NamingException
- Unsupported in 8.1.5
search
public NamingEnumeration search(String arg1,
Attributes arg2,
String arg3[]) throws NamingException
- Unsupported in 8.1.5
search
public NamingEnumeration search(Name arg1,
String arg2,
Object arg3[],
SearchControls arg4) throws NamingException
- Unsupported in 8.1.5
search
public NamingEnumeration search(Name arg1,
String arg2,
SearchControls arg3) throws NamingException
- Unsupported in 8.1.5
search
public NamingEnumeration search(Name arg1,
Attributes arg2) throws NamingException
- Unsupported in 8.1.5
search
public NamingEnumeration search(Name arg1,
Attributes arg2,
String arg3[]) throws NamingException
- Unsupported in 8.1.5
sessionId
public int sessionId() throws NamingException
- Answer the numeric session id of the session in which the context exists
set_attributes
public void set_attributes(String owner,
String read[],
String write[],
String execute[])
- Set the owner, read, write, and execute privileges of the receiver.
The owner, and privileges are schema names in the database.
set_owner
public synchronized void set_owner(String owner)
- Set the owner of the context
unbind
public void unbind(String name) throws NamingException
- Unbind the Object associated with the name
unbind
public void unbind(Name name) throws NamingException
- Unbind the Object associated with the name
All Packages Class Hierarchy This Package Previous Next Index