uk.co.lakesidetech.springxmldb.dao.xindice
Class XindiceCollectionManageXMLDBDao
java.lang.Object
uk.co.lakesidetech.springxmldb.dao.AbstractXMLDBDao
uk.co.lakesidetech.springxmldb.dao.BaseCollectionManageXMLDBDao
uk.co.lakesidetech.springxmldb.dao.xindice.XindiceCollectionManageXMLDBDao
- All Implemented Interfaces:
- ICollectionManageXMLDBDao
- public class XindiceCollectionManageXMLDBDao
- extends BaseCollectionManageXMLDBDao
- Author:
- Stuart Eccles
Method Summary |
void |
addCollection(java.lang.String existingCollectionPath,
java.lang.String newCollectionName)
Create a collection using the Xindice collection manager. |
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 |
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 |
protected org.apache.xindice.client.xmldb.services.CollectionManager |
getXindiceCollectionManagerFromCollection(org.xmldb.api.base.Collection collection)
|
protected org.apache.xindice.client.xmldb.services.MetaService |
getXindiceMetaServiceFromCollection(org.xmldb.api.base.Collection collection)
|
boolean |
isUseMetadata()
|
void |
setNewColconfig(java.lang.String newColconfig)
|
void |
setUseMetadata(boolean useMetadata)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XindiceCollectionManageXMLDBDao
public XindiceCollectionManageXMLDBDao()
isUseMetadata
public boolean isUseMetadata()
- Returns:
- Returns the useMetadata.
setUseMetadata
public void setUseMetadata(boolean useMetadata)
- Parameters:
useMetadata
- The useMetadata to set.
setNewColconfig
public void setNewColconfig(java.lang.String newColconfig)
- Parameters:
newColconfig
- The newColconfig to set.
getXindiceCollectionManagerFromCollection
protected org.apache.xindice.client.xmldb.services.CollectionManager getXindiceCollectionManagerFromCollection(org.xmldb.api.base.Collection collection)
throws org.xmldb.api.base.XMLDBException
- Throws:
org.xmldb.api.base.XMLDBException
getXindiceMetaServiceFromCollection
protected org.apache.xindice.client.xmldb.services.MetaService getXindiceMetaServiceFromCollection(org.xmldb.api.base.Collection collection)
throws org.xmldb.api.base.XMLDBException
- Throws:
org.xmldb.api.base.XMLDBException
addCollection
public void addCollection(java.lang.String existingCollectionPath,
java.lang.String newCollectionName)
throws XMLDBDataAccessException
- Create a collection using the Xindice collection manager. This allows
a collection configuration to be used in the generation of the collections
- Specified by:
addCollection
in interface ICollectionManageXMLDBDao
- Overrides:
addCollection
in class BaseCollectionManageXMLDBDao
- Parameters:
existingCollectionPath
- newCollectionName
-
- Throws:
XMLDBDataAccessException
- See Also:
ICollectionManageXMLDBDao.addCollection(java.lang.String, java.lang.String)
getCollectionResourceInfo
public java.util.Collection getCollectionResourceInfo(java.lang.String collectionPath)
throws XMLDBDataAccessException
- Description copied from interface:
ICollectionManageXMLDBDao
- 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
- Specified by:
getCollectionResourceInfo
in interface ICollectionManageXMLDBDao
- Overrides:
getCollectionResourceInfo
in class BaseCollectionManageXMLDBDao
- Parameters:
collectionPath
-
- Returns:
-
- Throws:
XMLDBDataAccessException
- See Also:
ICollectionManageXMLDBDao.getCollectionResourceInfo(java.lang.String)
getCollectionCollectionInfo
public java.util.Collection getCollectionCollectionInfo(java.lang.String collectionPath)
throws XMLDBDataAccessException
- Description copied from interface:
ICollectionManageXMLDBDao
- 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
- Specified by:
getCollectionCollectionInfo
in interface ICollectionManageXMLDBDao
- Overrides:
getCollectionCollectionInfo
in class BaseCollectionManageXMLDBDao
- Parameters:
collectionPath
-
- Returns:
-
- Throws:
XMLDBDataAccessException
- See Also:
ICollectionManageXMLDBDao.getCollectionCollectionInfo(java.lang.String)