org.gcube.common.xml.databases.existlibrary
Interface PooledConnection

All Known Implementing Classes:
PooledConnectionImpl

public interface PooledConnection

IDefines the behavior of pooled connection

Author:
manuele simi (CNR)

Nested Class Summary
static class PooledConnection.NoConnectionAvailableException
           
 
Method Summary
 XMLResource createXMLResource(java.lang.String name, java.lang.Object content)
          it creates the XMLresource
 Collection getRootCollection()
          Return the root collection
 void repairConnection()
          repairs the connection
 

Method Detail

getRootCollection

Collection getRootCollection()
                             throws Collection.CollectionException
Return the root collection

Returns:
Collection the root Collection
Throws:
Collection.CollectionException - if something fails

createXMLResource

XMLResource createXMLResource(java.lang.String name,
                              java.lang.Object content)
                              throws Collection.CollectionException
it creates the XMLresource

Parameters:
name - resource name
content - resource content
Returns:
the prepared XMLResource
Throws:
Collection.CollectionException - is something fails

repairConnection

void repairConnection()
                      throws PooledConnection.NoConnectionAvailableException
repairs the connection

Throws:
PooledConnection.NoConnectionAvailableException