|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.xml.databases.existlibrary.collections.CollectionImpl
public abstract class CollectionImpl
Partial implementation of collection in the database
| Nested Class Summary | |
|---|---|
static class |
CollectionImpl.CollectionType
Enumeration for collection type |
| Nested classes/interfaces inherited from interface org.gcube.common.xml.databases.existlibrary.collections.Collection |
|---|
Collection.CollectionAlreadyExistException, Collection.CollectionCreationException, Collection.CollectionException |
| Constructor Summary | |
|---|---|
CollectionImpl(java.lang.String name)
|
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
AddElement(java.util.List<XMLResource> listResources)
|
void |
AddElementByResultSet(java.lang.String Locator,
UpdateEventConsumer consumer)
Stores the given resources in the collection |
void |
close()
|
Collection |
createCollection(java.lang.String collectionName)
Creates a new Collection |
Collection |
createPartitionedCollection(java.lang.String collectionName)
Creates a new partitioned collection |
XMLResource |
createResource(java.lang.String name,
java.lang.Object content,
java.lang.String Type)
|
void |
deleteCollection(java.lang.String collectionName)
Removes a collection from the ExistDB |
java.util.List<java.lang.String> |
executeXPathDirect(java.lang.String xPath)
|
java.lang.String |
executeXPathIndirect(java.lang.String xPath)
|
java.util.List<java.lang.String> |
executeXQueryDirect(java.lang.String xQuery)
execute the xquery |
java.lang.String |
executeXQueryInDirect(java.lang.String xQuery)
|
int |
getChildCollectionCount()
Gets the number of children |
Collection |
getCurrentCollection()
Returns the current collection |
java.lang.String |
getName()
Gets the collection name |
org.xmldb.api.base.Service |
getService(java.lang.String service,
java.lang.String version)
|
Collection |
openSubCollection(java.lang.String collectionName)
Open a subCollection |
java.util.List<java.lang.String> |
removeElements(java.lang.String[] toRemove)
removes elements from the collection |
abstract java.util.List<java.lang.String> |
store(java.util.List<XMLResource> resources)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gcube.common.xml.databases.existlibrary.collections.Collection |
|---|
create, getResourceById |
| Constructor Detail |
|---|
public CollectionImpl(java.lang.String name)
| Method Detail |
|---|
public Collection openSubCollection(java.lang.String collectionName)
throws Collection.CollectionException
Collection
openSubCollection in interface CollectionCollection.CollectionException
public void close()
throws Collection.CollectionException
close in interface CollectionCollection.CollectionExceptionpublic java.lang.String getName()
Collection
getName in interface Collection
public org.xmldb.api.base.Service getService(java.lang.String service,
java.lang.String version)
throws java.lang.Exception
java.lang.Exception
public int getChildCollectionCount()
throws Collection.CollectionException
Collection
getChildCollectionCount in interface CollectionCollection.CollectionException
public abstract java.util.List<java.lang.String> store(java.util.List<XMLResource> resources)
throws Collection.CollectionException
Collection.CollectionException
public java.util.List<java.lang.String> removeElements(java.lang.String[] toRemove)
throws Collection.CollectionException
removeElements in interface CollectiontoRemove - List of Resources ID
Collection.CollectionException
public XMLResource createResource(java.lang.String name,
java.lang.Object content,
java.lang.String Type)
throws XMLDBException
XMLDBException
public Collection createCollection(java.lang.String collectionName)
throws Collection.CollectionAlreadyExistException,
Collection.CollectionCreationException
createCollection in interface CollectioncollectionName - String the collection name
CollectionException
Collection.CollectionAlreadyExistException
Collection.CollectionCreationException
public Collection createPartitionedCollection(java.lang.String collectionName)
throws Collection.CollectionAlreadyExistException,
Collection.CollectionCreationException
createPartitionedCollection in interface CollectioncollectionName - the colection name
CollectionCreationException - if the creation fails
Collection.CollectionAlreadyExistException
Collection.CollectionCreationException
public java.util.List<java.lang.String> executeXQueryDirect(java.lang.String xQuery)
throws java.lang.Exception
executeXQueryDirect in interface CollectionxQuery - the xquery
java.lang.Exception - If exist fails
public java.lang.String executeXQueryInDirect(java.lang.String xQuery)
throws java.lang.Exception
executeXQueryInDirect in interface CollectionxQuery -
java.lang.Exception
public java.lang.String executeXPathIndirect(java.lang.String xPath)
throws java.lang.Exception
executeXPathIndirect in interface CollectionxPath -
java.lang.Exception
public java.util.List<java.lang.String> executeXPathDirect(java.lang.String xPath)
throws java.lang.Exception
executeXPathDirect in interface CollectionxPath -
java.lang.Exception
public void deleteCollection(java.lang.String collectionName)
throws Collection.CollectionException
deleteCollection in interface Collectionif - the operation fails
Collection.CollectionExceptionpublic Collection getCurrentCollection()
public void AddElementByResultSet(java.lang.String Locator,
UpdateEventConsumer consumer)
Collection
AddElementByResultSet in interface Collection
public java.util.List<java.lang.String> AddElement(java.util.List<XMLResource> listResources)
throws java.lang.Exception
AddElement in interface Collectionjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||