|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectuk.co.lakesidetech.springxmldb.dao.AbstractXMLDBDao
uk.co.lakesidetech.springxmldb.dao.BaseCollectionManageXMLDBDao
Implementation of ICollectionManageXMLDBDao using XML:DB apis to be reusable across
any XML database which supports a pure XML:DB api
| Field Summary | |
protected static java.lang.String |
COLLECTIONMANAGEMENTSERVICE_NAME
|
protected static java.lang.String |
COLLECTIONMANAGEMENTSERVICE_VERSION
|
| Fields inherited from class uk.co.lakesidetech.springxmldb.dao.AbstractXMLDBDao |
dataSource, RESOURCETYPE_XMLRESOURCE, XPATHQUERYSERVICE_NAME, XPATHQUERYSERVICE_VERSION, XUPDATEQUERYSERVICE_NAME, XUPDATEQUERYSERVICE_VERSION |
| Constructor Summary | |
BaseCollectionManageXMLDBDao()
|
|
| Method Summary | |
void |
addCollection(java.lang.String existingCollectionPath,
java.lang.String newCollectionName)
Add a new child collection to an underlying existing collection |
void |
addCollectionPath(java.lang.String collectionPath)
Add a new collection path to the XML database. |
boolean |
doesCollectionExist(java.lang.String collectionPath)
Evaluate if a specific collection exists at a collection path in the database |
java.util.Collection |
getCollectionCollectionInfo(java.lang.String collectionPath)
Get the information on all child collections of a collection given its collection path This method should return a collection (in the java.util sense) of XMLDBCollectionInfo
objects |
protected org.xmldb.api.modules.CollectionManagementService |
getCollectionManagementServiceFromCollection(org.xmldb.api.base.Collection collection)
Return a CollectionManagementService from the given collection. |
java.util.Collection |
getCollectionResourceInfo(java.lang.String collectionPath)
Get the information on all the resources in a collection given the collection path This method should return a collection (in the java.util sense) of XMLDBResourceInfo
objects |
void |
removeCollection(java.lang.String collectionPath)
Remove a collection from the XML datbase given the full collection path |
| Methods inherited from class uk.co.lakesidetech.springxmldb.dao.AbstractXMLDBDao |
getDataSource, getNameSpaces, getXPathQueryServiceFromCollection, getXUpdateServiceFromCollection, processResourceSetToDocuments, processResourceSetToStrings, setDataSource, setNameSpaces |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String COLLECTIONMANAGEMENTSERVICE_VERSION
protected static final java.lang.String COLLECTIONMANAGEMENTSERVICE_NAME
| Constructor Detail |
public BaseCollectionManageXMLDBDao()
| Method Detail |
protected org.xmldb.api.modules.CollectionManagementService getCollectionManagementServiceFromCollection(org.xmldb.api.base.Collection collection)
throws org.xmldb.api.base.XMLDBException
collection - to get service for
org.xmldb.api.base.XMLDBException - if anything goes wrong
public void addCollection(java.lang.String existingCollectionPath,
java.lang.String newCollectionName)
throws XMLDBDataAccessException
ICollectionManageXMLDBDao
addCollection in interface ICollectionManageXMLDBDaoexistingCollectionPath - newCollectionName -
XMLDBDataAccessException - problems accessing the XML databaseICollectionManageXMLDBDao.addCollection(java.lang.String, java.lang.String)
public void addCollectionPath(java.lang.String collectionPath)
throws XMLDBDataAccessException
ICollectionManageXMLDBDao
addCollectionPath in interface ICollectionManageXMLDBDaocollectionPath -
XMLDBDataAccessException - problems accessing the XML databaseICollectionManageXMLDBDao.addCollectionPath(java.lang.String)
public void removeCollection(java.lang.String collectionPath)
throws XMLDBDataAccessException
ICollectionManageXMLDBDao
removeCollection in interface ICollectionManageXMLDBDaocollectionPath -
XMLDBDataAccessException - problems accessing the XML databaseICollectionManageXMLDBDao.removeCollection(java.lang.String)
public boolean doesCollectionExist(java.lang.String collectionPath)
throws XMLDBDataAccessException
ICollectionManageXMLDBDao
doesCollectionExist in interface ICollectionManageXMLDBDaocollectionPath -
XMLDBDataAccessException - problems accessing the XML databaseICollectionManageXMLDBDao.doesCollectionExist(java.lang.String)
public java.util.Collection getCollectionResourceInfo(java.lang.String collectionPath)
throws XMLDBDataAccessException
ICollectionManageXMLDBDaoXMLDBResourceInfo
objects
getCollectionResourceInfo in interface ICollectionManageXMLDBDaocollectionPath -
XMLDBDataAccessException - problems accessing the XML databaseICollectionManageXMLDBDao.getCollectionResourceInfo(java.lang.String)
public java.util.Collection getCollectionCollectionInfo(java.lang.String collectionPath)
throws XMLDBDataAccessException
ICollectionManageXMLDBDaoXMLDBCollectionInfo
objects
getCollectionCollectionInfo in interface ICollectionManageXMLDBDaocollectionPath -
XMLDBDataAccessException - problems accessing the XML databaseICollectionManageXMLDBDao.getCollectionCollectionInfo(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||