org.gcube.common.xml.databases.existlibrary.collections
Class SimpleCollection
java.lang.Object
org.gcube.common.xml.databases.existlibrary.collections.CollectionImpl
org.gcube.common.xml.databases.existlibrary.collections.SimpleCollection
- All Implemented Interfaces:
- Collection
public class SimpleCollection
- extends CollectionImpl
Simple Collection in the XML Database
- Author:
- Manuele Simi (CNR)
Methods inherited from class org.gcube.common.xml.databases.existlibrary.collections.CollectionImpl |
AddElement, AddElementByResultSet, close, createCollection, createPartitionedCollection, createResource, deleteCollection, executeXPathDirect, executeXPathIndirect, executeXQueryDirect, executeXQueryInDirect, getChildCollectionCount, getCurrentCollection, getName, getService, openSubCollection, removeElements |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCollection
public SimpleCollection(java.lang.String name)
SimpleCollection
public SimpleCollection(java.lang.String name,
org.xmldb.api.base.Collection collection)
create
public void create(Collection parentColl)
throws Collection.CollectionCreationException,
Collection.CollectionAlreadyExistException
- Creates a new Simple Collection
- Throws:
CollectionCreationException
CollectionAlreadyExistException
Collection.CollectionCreationException
Collection.CollectionAlreadyExistException
store
public java.util.List<java.lang.String> store(java.util.List<XMLResource> resources)
throws Collection.CollectionException
- Specified by:
store
in class CollectionImpl
- Throws:
Collection.CollectionException
getResourceById
public XMLResource getResourceById(java.lang.String id)
throws java.lang.Exception
- Throws:
java.lang.Exception