|
FantasySportsModule 0.0.2-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.fanfoot.db.DB
Provides utility methods for accessing the DB
Constructor Summary | |
DB(java.lang.String dbURI)
Create a DB objet to connect to the indicated DB |
Method Summary | |
void |
addResource(java.lang.String strID,
java.lang.String strResource,
java.lang.String strCollection)
Add the supplied string as a resource to the collection indicated. |
org.xmldb.api.base.Collection |
getCollection(java.lang.String strCollectionName)
Get the collection named from the DB in use |
org.xmldb.api.base.ResourceSet |
runXPathQuery(java.lang.String strCollection,
java.lang.String strQuery)
Query the indicated collection with the XPath query supplied. |
void |
runXUpdateQuery(java.lang.String strCollection,
java.lang.String strUpdate)
XUpdate the indicated collection with the XUpdate modificatons supplied. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DB(java.lang.String dbURI) throws DBException
dbURI
- the URI of the DB to connect to
DBException
- Description of the ExceptionMethod Detail |
public org.xmldb.api.base.ResourceSet runXPathQuery(java.lang.String strCollection, java.lang.String strQuery) throws DBException
strCollection
- Description of the ParameterstrQuery
- XPath query to run
DBException
- if unable to query the databasepublic void runXUpdateQuery(java.lang.String strCollection, java.lang.String strUpdate) throws DBException
strCollection
- Description of the ParameterstrUpdate
- XUdpate modifications to run
DBException
- if unable to update the databasepublic org.xmldb.api.base.Collection getCollection(java.lang.String strCollectionName) throws DBException
strCollectionName
- Description of the Parameter
DBException
- if unable the get the collectionpublic void addResource(java.lang.String strID, java.lang.String strResource, java.lang.String strCollection) throws DBException
strID
- the id of the resource (if null an ID will be
generated)strResource
- the resource to addstrCollection
- the collection to add it to
DBException
- if any problem occurs connecting to the DB
|
FantasySportsModule 0.0.2-dev | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |