|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.activity.xmldb.XMLDBUtilities
This contains some utility methods for accessing and interacting with XMLDB database collections.
| Constructor Summary | |
XMLDBUtilities()
|
|
| Method Summary | |
static void |
addResource(org.xmldb.api.base.Collection collection,
java.lang.String resourceName,
java.lang.String resourcePath)
Adds a named resource to the specified parent collection. |
static void |
addResource(java.lang.String url,
java.io.File file)
Adds the new resource at the specified location to the specified collection. |
static org.xmldb.api.base.Collection |
createCollection(org.xmldb.api.base.Collection parent,
java.lang.String name)
Creates the specified collection. |
static void |
createCollection(java.lang.String url)
Creates the collection at the specified URL. |
static void |
loadDriver(java.lang.String driver)
|
static void |
removeCollection(org.xmldb.api.base.Collection parent,
java.lang.String name)
Removes the named collection from the specified parent collection. |
static void |
removeCollection(java.lang.String url)
Removes the collection at the specified URL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLDBUtilities()
| Method Detail |
public static org.xmldb.api.base.Collection createCollection(org.xmldb.api.base.Collection parent,
java.lang.String name)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
public static void addResource(org.xmldb.api.base.Collection collection,
java.lang.String resourceName,
java.lang.String resourcePath)
throws org.xmldb.api.base.XMLDBException,
CommonSystemException,
CommonUserException
org.xmldb.api.base.XMLDBException
CommonSystemException
CommonUserException
public static void removeCollection(org.xmldb.api.base.Collection parent,
java.lang.String name)
throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
public static void createCollection(java.lang.String url)
throws CommonSystemException
url - The full URL to the new collection.
CommonSystemException
public static void addResource(java.lang.String url,
java.io.File file)
throws CommonSystemException
url - The URL of the collection to add the resource to.file - The file containing the new XML resource content. The name of
the resource is determined using the file name without the
extension.
CommonSystemException
public static void removeCollection(java.lang.String url)
throws CommonSystemException
url - the URL of the collection to remove.
CommonSystemException
public static void loadDriver(java.lang.String driver)
throws CommonSystemException
CommonSystemException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||