org.gcube.common.xml.databases.existlibrary.collections
Class SimpleCollection

java.lang.Object
  extended by org.gcube.common.xml.databases.existlibrary.collections.CollectionImpl
      extended by 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)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.common.xml.databases.existlibrary.collections.CollectionImpl
CollectionImpl.CollectionType
 
Nested classes/interfaces inherited from interface org.gcube.common.xml.databases.existlibrary.collections.Collection
Collection.CollectionAlreadyExistException, Collection.CollectionCreationException, Collection.CollectionException
 
Constructor Summary
SimpleCollection(java.lang.String name)
           
SimpleCollection(java.lang.String name, org.xmldb.api.base.Collection collection)
           
 
Method Summary
 void create(Collection parentColl)
          Creates a new Simple Collection
 XMLResource getResourceById(java.lang.String id)
           
 java.util.List<java.lang.String> store(java.util.List<XMLResource> resources)
           
 
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
 

Constructor Detail

SimpleCollection

public SimpleCollection(java.lang.String name)

SimpleCollection

public SimpleCollection(java.lang.String name,
                        org.xmldb.api.base.Collection collection)
Method Detail

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