|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxdrs_impl.genericdb.DBImplementation
An interface representing a way to access a specific data storage system. All implementations should contain implementations for mappings, which are links between paths and nodes stored in locations that can be handled by handlers implemented for the specific data storage system. There should at least be one handler that can support any type in a generic way. Also, a mechanism for storing arbitrary tags in an attribute location should be implemented. This attribute system could be used to implement a very basic handler where all tags are stored as attributes.
| Constructor Summary | |
DBImplementation()
|
|
| Method Summary | |
abstract void |
addDNForUser(java.sql.Connection connection,
java.lang.String user,
java.lang.String dn)
|
abstract void |
addGroup(java.sql.Connection connection,
java.lang.String group,
java.lang.String superGroup)
|
void |
addMapping(java.sql.Connection connection,
Mapping mapping,
java.lang.String root,
java.lang.String type,
java.lang.String typeNamespace,
int id,
java.lang.String owner,
java.lang.Object p7)
Method addMapping |
abstract void |
addMapping(java.sql.Connection connection,
Mapping parent,
java.lang.String path,
java.lang.String type,
java.lang.String typeNamespace,
int id,
java.lang.String owner,
java.lang.String readWriteGroup,
java.lang.String readOnlyGroup)
Store the described mapping. |
abstract void |
addUserToGroup(java.sql.Connection connection,
java.lang.String user,
java.lang.String group)
|
abstract int |
addXML(java.sql.Connection connection,
org.gjt.xpp.XmlNode node)
|
abstract void |
create(java.sql.Connection connection)
Create all tables etc. |
protected void |
createHandlers(java.sql.Connection connection)
Create all tables etc. |
abstract void |
deleteAllDNsForUser(java.sql.Connection connection,
java.lang.String user)
|
abstract void |
deleteDNForUser(java.sql.Connection connection,
java.lang.String user,
java.lang.String dn)
|
abstract void |
deleteGroup(java.sql.Connection connection,
java.lang.String group)
|
abstract void |
deleteMapping(java.sql.Connection connection,
java.lang.String path)
Delete the path's mapping. |
abstract void |
deleteUser(java.sql.Connection connection,
java.lang.String user)
|
abstract void |
deleteXML(java.sql.Connection connection,
int id)
|
abstract void |
drop(java.sql.Connection connection)
Drop all the tables etc. |
void |
dropHandlers(java.sql.Connection connection)
Drop all the tables etc. |
abstract boolean |
existsXML(java.sql.Connection connection,
int id)
|
abstract void |
getGroups(java.sql.Connection connection,
java.lang.String user,
java.util.Vector vector)
|
Handler |
getHandler(java.lang.String type,
java.lang.String typeNamespace)
Get the handler for the given type. |
abstract Mapping |
getMapping(java.sql.Connection connection,
int id)
|
abstract Mapping |
getMapping(java.sql.Connection connection,
java.lang.String path)
Get a Mapping for the given path. |
abstract Mapping[] |
getMappings(java.sql.Connection connection,
int parent)
Get all of the mappings who have the given parent. |
abstract java.lang.String |
getUserForDN(java.sql.Connection connection,
java.lang.String dn)
|
abstract org.gjt.xpp.XmlNode |
getXML(java.sql.Connection connection,
int id)
|
abstract boolean |
isGroup(java.sql.Connection connection,
java.lang.String name)
|
abstract boolean |
isUser(java.sql.Connection connection,
java.lang.String name)
|
abstract java.lang.String[] |
keywordSearch(java.sql.Connection connection,
java.lang.String[] keywords,
boolean doAnd,
int maxResults)
|
abstract java.util.Vector |
listGroups(java.sql.Connection connection)
|
abstract void |
listSubGroupsOfGroup(java.sql.Connection connection,
java.lang.String group,
java.util.Vector groups,
boolean recurse)
|
abstract java.util.Vector |
listUsers(java.sql.Connection connection)
|
abstract void |
listUsersOfGroup(java.sql.Connection connection,
java.lang.String group,
java.util.Vector users,
boolean recurse)
|
abstract boolean |
mappingExists(java.sql.Connection connection,
java.lang.String path)
Check to see if the path exists. |
abstract void |
modifyMapping(java.sql.Connection connection,
int parentID,
java.lang.String path,
java.lang.String type,
java.lang.String typeNamespace,
int id,
java.lang.String owner,
java.lang.String readWriteGroup,
java.lang.String readOnlyGroup)
|
static void |
registerDefaultHandler(Handler handler)
Register the default handler. |
static void |
registerHandler(java.lang.String type,
java.lang.String typeNamespace,
Handler handler)
Register a handler for the given type and its namespace. |
abstract void |
removeUserFromGroup(java.sql.Connection connection,
java.lang.String dn,
java.lang.String group)
|
static void |
traceSqlFine(java.lang.String sql,
java.lang.Object[] params)
|
static void |
traceSqlFiner(java.lang.String sql,
java.lang.Object[] params)
|
static void |
traceSqlFinest(java.lang.String sql,
java.lang.Object[] params)
|
static void |
traceSqlResultFinest(java.lang.String comment,
java.sql.ResultSet rs)
|
static void |
traceSqlRowResultFine(soaprmi.util.logging.Level level,
java.lang.String comment,
java.sql.ResultSet rs,
int nestingLevel)
Write to log content of current row in ResultSet. |
static void |
traceSqlRowResultFine(java.sql.ResultSet rs)
|
static void |
traceSqlRowResultFine(java.lang.String comment,
java.sql.ResultSet rs)
|
static void |
traceSqlRowResultFiner(java.sql.ResultSet rs)
|
static void |
traceSqlRowResultFiner(java.lang.String comment,
java.sql.ResultSet rs)
|
static void |
traceSqlRowResultFinest(java.sql.ResultSet rs)
|
abstract void |
updateXML(java.sql.Connection connection,
int id,
org.gjt.xpp.XmlNode node)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBImplementation()
| Method Detail |
public void addMapping(java.sql.Connection connection,
Mapping mapping,
java.lang.String root,
java.lang.String type,
java.lang.String typeNamespace,
int id,
java.lang.String owner,
java.lang.Object p7)
connection - a Connectionmapping - a Mappingtype - a StringtypeNamespace - a Stringid - an intowner - a Stringp7 - an Object
public static void traceSqlRowResultFine(java.lang.String comment,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static void traceSqlRowResultFine(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static void traceSqlRowResultFiner(java.lang.String comment,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static void traceSqlRowResultFiner(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static void traceSqlResultFinest(java.lang.String comment,
java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static void traceSqlRowResultFinest(java.sql.ResultSet rs)
throws java.sql.SQLException
java.sql.SQLException
public static void traceSqlRowResultFine(soaprmi.util.logging.Level level,
java.lang.String comment,
java.sql.ResultSet rs,
int nestingLevel)
throws java.sql.SQLException
java.sql.SQLException
public static void traceSqlFinest(java.lang.String sql,
java.lang.Object[] params)
public static void traceSqlFiner(java.lang.String sql,
java.lang.Object[] params)
public static void traceSqlFine(java.lang.String sql,
java.lang.Object[] params)
public static final void registerHandler(java.lang.String type,
java.lang.String typeNamespace,
Handler handler)
type - The type.typeNamespace - The type's namespace.handler - The handler for the type + namespace.public static final void registerDefaultHandler(Handler handler)
handler - The default handler.
public final Handler getHandler(java.lang.String type,
java.lang.String typeNamespace)
type - The type.typeNamespace - The namespace for the type.
public abstract void create(java.sql.Connection connection)
throws soaprmi.RemoteException,
java.sql.SQLException
connection - A database connection.
soaprmi.RemoteException
java.sql.SQLException
protected final void createHandlers(java.sql.Connection connection)
throws soaprmi.RemoteException,
java.sql.SQLException
connection - A database connection.
soaprmi.RemoteException
java.sql.SQLException
public abstract void drop(java.sql.Connection connection)
throws soaprmi.RemoteException,
java.sql.SQLException
connection - A database connection.
soaprmi.RemoteException
java.sql.SQLException
public final void dropHandlers(java.sql.Connection connection)
throws soaprmi.RemoteException,
java.sql.SQLException
connection - A database connection.
soaprmi.RemoteException
java.sql.SQLException
public abstract boolean mappingExists(java.sql.Connection connection,
java.lang.String path)
throws soaprmi.RemoteException,
java.sql.SQLException
connection - A database connection.path - The path to check.
soaprmi.RemoteException
java.sql.SQLException
public abstract Mapping getMapping(java.sql.Connection connection,
java.lang.String path)
throws soaprmi.RemoteException
connection - A database connection.path - The path for which a mapping is requested.
soaprmi.RemoteException
public abstract Mapping getMapping(java.sql.Connection connection,
int id)
throws soaprmi.RemoteException
soaprmi.RemoteException
public abstract Mapping[] getMappings(java.sql.Connection connection,
int parent)
throws soaprmi.RemoteException,
java.sql.SQLException
connection - A database connection.parent - The parent's id.
soaprmi.RemoteException
java.sql.SQLException
public abstract void getGroups(java.sql.Connection connection,
java.lang.String user,
java.util.Vector vector)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void addUserToGroup(java.sql.Connection connection,
java.lang.String user,
java.lang.String group)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void deleteUser(java.sql.Connection connection,
java.lang.String user)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void removeUserFromGroup(java.sql.Connection connection,
java.lang.String dn,
java.lang.String group)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void addGroup(java.sql.Connection connection,
java.lang.String group,
java.lang.String superGroup)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void deleteGroup(java.sql.Connection connection,
java.lang.String group)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void listUsersOfGroup(java.sql.Connection connection,
java.lang.String group,
java.util.Vector users,
boolean recurse)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void listSubGroupsOfGroup(java.sql.Connection connection,
java.lang.String group,
java.util.Vector groups,
boolean recurse)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract java.util.Vector listGroups(java.sql.Connection connection)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract java.util.Vector listUsers(java.sql.Connection connection)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract java.lang.String getUserForDN(java.sql.Connection connection,
java.lang.String dn)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void addDNForUser(java.sql.Connection connection,
java.lang.String user,
java.lang.String dn)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void deleteDNForUser(java.sql.Connection connection,
java.lang.String user,
java.lang.String dn)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void deleteAllDNsForUser(java.sql.Connection connection,
java.lang.String user)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract boolean isGroup(java.sql.Connection connection,
java.lang.String name)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract boolean isUser(java.sql.Connection connection,
java.lang.String name)
throws soaprmi.RemoteException,
java.sql.SQLException
soaprmi.RemoteException
java.sql.SQLException
public abstract void deleteMapping(java.sql.Connection connection,
java.lang.String path)
throws soaprmi.RemoteException,
java.sql.SQLException
connection - A database connection.path - The mapping's path.
soaprmi.RemoteException
java.sql.SQLException
public abstract void addMapping(java.sql.Connection connection,
Mapping parent,
java.lang.String path,
java.lang.String type,
java.lang.String typeNamespace,
int id,
java.lang.String owner,
java.lang.String readWriteGroup,
java.lang.String readOnlyGroup)
throws java.sql.SQLException
connection - A database connection.parent - The mapping's parent.path - The path to the mapping.type - The mapping's type.typeNamespace - The mapping's type's namespace.id - The mapping's id.
java.sql.SQLException
public abstract void modifyMapping(java.sql.Connection connection,
int parentID,
java.lang.String path,
java.lang.String type,
java.lang.String typeNamespace,
int id,
java.lang.String owner,
java.lang.String readWriteGroup,
java.lang.String readOnlyGroup)
throws java.sql.SQLException,
soaprmi.RemoteException
java.sql.SQLException
soaprmi.RemoteException
public abstract int addXML(java.sql.Connection connection,
org.gjt.xpp.XmlNode node)
throws java.sql.SQLException,
org.gjt.xpp.XmlPullParserException,
soaprmi.RemoteException
java.sql.SQLException
org.gjt.xpp.XmlPullParserException
soaprmi.RemoteException
public abstract void updateXML(java.sql.Connection connection,
int id,
org.gjt.xpp.XmlNode node)
throws java.sql.SQLException,
org.gjt.xpp.XmlPullParserException,
soaprmi.RemoteException
java.sql.SQLException
org.gjt.xpp.XmlPullParserException
soaprmi.RemoteException
public abstract void deleteXML(java.sql.Connection connection,
int id)
throws java.sql.SQLException,
soaprmi.RemoteException
java.sql.SQLException
soaprmi.RemoteException
public abstract org.gjt.xpp.XmlNode getXML(java.sql.Connection connection,
int id)
throws java.sql.SQLException,
org.gjt.xpp.XmlPullParserException,
soaprmi.RemoteException
java.sql.SQLException
org.gjt.xpp.XmlPullParserException
soaprmi.RemoteException
public abstract boolean existsXML(java.sql.Connection connection,
int id)
throws java.sql.SQLException,
soaprmi.RemoteException
java.sql.SQLException
soaprmi.RemoteException
public abstract java.lang.String[] keywordSearch(java.sql.Connection connection,
java.lang.String[] keywords,
boolean doAnd,
int maxResults)
throws java.sql.SQLException,
soaprmi.RemoteException
java.sql.SQLException
soaprmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||