|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectledge.naming.db.DatabaseContext
org.objectledge.naming.db.DatabaseDirContext
public class DatabaseDirContext
Database based implementation of java.naming.directory.DirContext interface.
| Field Summary |
|---|
| Fields inherited from class org.objectledge.naming.db.DatabaseContext |
|---|
context, env, parser, persistence, PERSISTENCE |
| Fields inherited from interface javax.naming.directory.DirContext |
|---|
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE |
| 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 | |
|---|---|
|
DatabaseDirContext(Hashtable env)
The directory context constructor. |
protected |
DatabaseDirContext(Hashtable env,
PersistentContext context,
Persistence persistence)
The context constructor. |
| Methods inherited from class org.objectledge.naming.db.DatabaseContext |
|---|
addToEnvironment, bind, bind, close, composeName, composeName, createContextDelegate, destroySubcontext, getDelegate, getDN, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookupContext, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.naming.Context |
|---|
addToEnvironment, bind, bind, close, composeName, composeName, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
| Constructor Detail |
|---|
public DatabaseDirContext(Hashtable env)
env - the environment.
protected DatabaseDirContext(Hashtable env,
PersistentContext context,
Persistence persistence)
throws NamingException
env - the environment.context - the persistent context delegate.persistence - the persistence.
NamingException - if operation failed.| Method Detail |
|---|
public Object lookup(Name name)
throws NamingException
lookup in interface Contextlookup in class DatabaseContextNamingException
public Attributes getAttributes(Name name)
throws NamingException
getAttributes in interface DirContextNamingException
public Attributes getAttributes(String name)
throws NamingException
getAttributes in interface DirContextNamingException
public Attributes getAttributes(Name name,
String[] attrIds)
throws NamingException
getAttributes in interface DirContextNamingException
public Attributes getAttributes(String name,
String[] attrIds)
throws NamingException
getAttributes in interface DirContextNamingException
public void modifyAttributes(Name name,
int modOp,
Attributes attrs)
throws NamingException
modifyAttributes in interface DirContextNamingException
public void modifyAttributes(String name,
int modOp,
Attributes attrs)
throws NamingException
modifyAttributes in interface DirContextNamingException
public void modifyAttributes(Name name,
ModificationItem[] mods)
throws NamingException
modifyAttributes in interface DirContextNamingException
public void modifyAttributes(String name,
ModificationItem[] mods)
throws NamingException
modifyAttributes in interface DirContextNamingException
public void bind(Name name,
Object obj,
Attributes attrs)
throws NamingException
bind in interface DirContextNamingException
public void bind(String name,
Object obj,
Attributes attrs)
throws NamingException
bind in interface DirContextNamingException
public void rebind(Name name,
Object obj,
Attributes attrs)
throws NamingException
rebind in interface DirContextNamingException
public void rebind(String name,
Object obj,
Attributes attrs)
throws NamingException
rebind in interface DirContextNamingException
public void destroySubcontext(Name name)
throws NamingException
destroySubcontext in interface ContextdestroySubcontext in class DatabaseContextNamingException
public DirContext createSubcontext(Name name,
Attributes attrs)
throws NamingException
createSubcontext in interface DirContextNamingException
public DirContext createSubcontext(String name,
Attributes attrs)
throws NamingException
createSubcontext in interface DirContextNamingException
public Context createSubcontext(String name)
throws NamingException
createSubcontext in interface ContextcreateSubcontext in class DatabaseContextNamingException
public Context createSubcontext(Name name)
throws NamingException
createSubcontext in interface ContextcreateSubcontext in class DatabaseContextNamingException
public DirContext getSchema(Name name)
throws NamingException
getSchema in interface DirContextNamingException
public DirContext getSchema(String name)
throws NamingException
getSchema in interface DirContextNamingException
public DirContext getSchemaClassDefinition(Name name)
throws NamingException
getSchemaClassDefinition in interface DirContextNamingException
public DirContext getSchemaClassDefinition(String name)
throws NamingException
getSchemaClassDefinition in interface DirContextNamingException
public NamingEnumeration search(Name name,
Attributes matchingAttributes,
String[] attributesToReturn)
throws NamingException
search in interface DirContextNamingException
public NamingEnumeration search(String name,
Attributes matchingAttributes,
String[] attributesToReturn)
throws NamingException
search in interface DirContextNamingException
public NamingEnumeration search(Name name,
Attributes matchingAttributes)
throws NamingException
search in interface DirContextNamingException
public NamingEnumeration search(String name,
Attributes matchingAttributes)
throws NamingException
search in interface DirContextNamingException
public NamingEnumeration search(Name name,
String filter,
SearchControls cons)
throws NamingException
search in interface DirContextNamingException
public NamingEnumeration search(String name,
String filter,
SearchControls cons)
throws NamingException
search in interface DirContextNamingException
public NamingEnumeration search(Name name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
throws NamingException
search in interface DirContextNamingException
public NamingEnumeration search(String name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
throws NamingException
search in interface DirContextNamingException
private Attributes getAllAttributes(long contextId)
throws NamingException
contextId - the context id.
NamingException - thrown if operation fails.
private void deleteAllAttributes(long contextId)
throws NamingException
contextId - the context id.
NamingException - thrown if operation fails.
private Attributes filterAttributes(Attributes attributes,
String[] attrIds)
attributes - the attributes to be filter.attrIds - the filter.
private Map getChildrenAttributes(long parentId)
throws NamingException
parentId - the parent context id.
NamingException - thrown if operation fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||