uk.co.lakesidetech.springxmldb.dao.xindice
Class XindiceCollectionManageXMLDBDao

java.lang.Object
  extended byuk.co.lakesidetech.springxmldb.dao.AbstractXMLDBDao
      extended byuk.co.lakesidetech.springxmldb.dao.BaseCollectionManageXMLDBDao
          extended byuk.co.lakesidetech.springxmldb.dao.xindice.XindiceCollectionManageXMLDBDao
All Implemented Interfaces:
ICollectionManageXMLDBDao

public class XindiceCollectionManageXMLDBDao
extends BaseCollectionManageXMLDBDao

Author:
Stuart Eccles

Field Summary
 
Fields inherited from class uk.co.lakesidetech.springxmldb.dao.BaseCollectionManageXMLDBDao
COLLECTIONMANAGEMENTSERVICE_NAME, 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
XindiceCollectionManageXMLDBDao()
           
 
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 uk.co.lakesidetech.springxmldb.dao.BaseCollectionManageXMLDBDao
addCollectionPath, doesCollectionExist, getCollectionManagementServiceFromCollection, removeCollection
 
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
 

Constructor Detail

XindiceCollectionManageXMLDBDao

public XindiceCollectionManageXMLDBDao()
Method Detail

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)