|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxdrs_impl.genericdb.GenericNodeHandler
| Constructor Summary | |
GenericNodeHandler()
|
|
| Method Summary | |
Node |
add(DBImplementation db,
java.sql.Connection connection,
Mapping parent,
java.lang.String path,
org.gjt.xpp.XmlNode nodeXml)
Add a new node described by the given nodeXml to the storage system. |
void |
addChild(DBImplementation db,
java.sql.Connection connection,
Mapping parentMapping,
java.lang.String childPath,
org.gjt.xpp.XmlNode child)
Do whatever is necessary to add the given child to the described parent. |
void |
create(java.sql.Connection connection)
Create everything that is needed for storage. |
void |
delete(DBImplementation db,
java.sql.Connection connection,
int id)
Delete the node with the given id. |
void |
drop(java.sql.Connection connection)
Remove everything that is needed for storage. |
boolean |
exists(DBImplementation db,
java.sql.Connection connection,
int id)
Check and see if a node with the given id exists. |
Node |
get(DBImplementation db,
java.sql.Connection connection,
int id)
Get the node with the given id from the storage system. |
Node |
update(DBImplementation db,
java.sql.Connection connection,
Mapping mapping,
org.gjt.xpp.XmlNode nodeXml)
Update the node whose mapping is given so it matches the given XML representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GenericNodeHandler()
| Method Detail |
public Node add(DBImplementation db,
java.sql.Connection connection,
Mapping parent,
java.lang.String path,
org.gjt.xpp.XmlNode nodeXml)
throws soaprmi.RemoteException,
java.sql.SQLException,
org.gjt.xpp.XmlPullParserException
Handler
add in interface Handlerconnection - A database connection.parent - A mapping for the new node's parent.path - The path to this new node.nodeXml - An XML representation of the new node.
java.sql.SQLException
org.gjt.xpp.XmlPullParserException
soaprmi.RemoteException
public Node update(DBImplementation db,
java.sql.Connection connection,
Mapping mapping,
org.gjt.xpp.XmlNode nodeXml)
throws soaprmi.RemoteException,
java.sql.SQLException,
org.gjt.xpp.XmlPullParserException
Handler
update in interface Handlerconnection - A database connection.mapping - The mapping for the node to be updated.nodeXml - The node's new XML representation.
org.gjt.xpp.XmlPullParserException
java.sql.SQLException
soaprmi.RemoteException
public Node get(DBImplementation db,
java.sql.Connection connection,
int id)
throws soaprmi.RemoteException,
java.sql.SQLException,
org.gjt.xpp.XmlPullParserException
Handler
get in interface Handlerconnection - A database connection.id - The id of the node to be retreived.
soaprmi.RemoteException
org.gjt.xpp.XmlPullParserException
java.sql.SQLException
public boolean exists(DBImplementation db,
java.sql.Connection connection,
int id)
throws soaprmi.RemoteException,
java.sql.SQLException
Handler
exists in interface Handlerconnection - A database connection.id - The id of the node to look up.
java.sql.SQLException
soaprmi.RemoteException
public void addChild(DBImplementation db,
java.sql.Connection connection,
Mapping parentMapping,
java.lang.String childPath,
org.gjt.xpp.XmlNode child)
throws soaprmi.RemoteException,
java.sql.SQLException,
org.gjt.xpp.XmlPullParserException
Handler
addChild in interface Handlerconnection - A database connection.parentMapping - The parent's mapping.childPath - The child's path.child - An XML representation of the child.
org.gjt.xpp.XmlPullParserException
java.sql.SQLException
soaprmi.RemoteException
public void delete(DBImplementation db,
java.sql.Connection connection,
int id)
throws soaprmi.RemoteException,
java.sql.SQLException
Handler
delete in interface Handlerconnection - A database connection.id - The id of the node to delete.
java.sql.SQLException
soaprmi.RemoteException
public void create(java.sql.Connection connection)
throws soaprmi.RemoteException,
java.sql.SQLException
Handler
create in interface Handlerconnection - A database connection.
java.sql.SQLException
soaprmi.RemoteException
public void drop(java.sql.Connection connection)
throws soaprmi.RemoteException,
java.sql.SQLException
Handler
drop in interface Handlerconnection - A database connection.
java.sql.SQLException
soaprmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||