org.gcube.application.aquamaps.aquamapsspeciesview.servlet.db
Class DBManager

java.lang.Object
  extended by org.gcube.application.aquamaps.aquamapsspeciesview.servlet.db.DBManager
All Implemented Interfaces:
DBInterface

public class DBManager
extends Object
implements DBInterface


Field Summary
protected  DBSession session
           
 
Constructor Summary
protected DBManager(String scope)
           
 
Method Summary
 void cleanMaps(String requestId)
           
static void deleteDb(String currentScope)
           
 void fetchSpecies()
           
 String getAssociatedScope()
           
static Set<String> getInitializedScopes()
           
static DBInterface getInstance(String currentScopeString)
           
 String getMaps(String mapRequestId, org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.PagedRequestSettings settings)
           
 String getPhylogenyJSON(String level)
           
 boolean isUpToDate()
           
 Integer putMaps(String mapRequestId, List<CompoundMapItem> items)
           
 void setLastUpdateTime(long lastUpdateTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected DBSession session
Constructor Detail

DBManager

protected DBManager(String scope)
             throws Exception
Throws:
Exception
Method Detail

getInitializedScopes

public static Set<String> getInitializedScopes()

deleteDb

public static void deleteDb(String currentScope)
                     throws Exception
Throws:
Exception

getInstance

public static DBInterface getInstance(String currentScopeString)
                               throws Exception
Throws:
Exception

getPhylogenyJSON

public String getPhylogenyJSON(String level)
                        throws Exception
Specified by:
getPhylogenyJSON in interface DBInterface
Throws:
Exception

getMaps

public String getMaps(String mapRequestId,
                      org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.PagedRequestSettings settings)
               throws Exception
Specified by:
getMaps in interface DBInterface
Throws:
Exception

putMaps

public Integer putMaps(String mapRequestId,
                       List<CompoundMapItem> items)
                throws Exception
Specified by:
putMaps in interface DBInterface
Throws:
Exception

cleanMaps

public void cleanMaps(String requestId)
               throws Exception
Specified by:
cleanMaps in interface DBInterface
Throws:
Exception

isUpToDate

public boolean isUpToDate()
Specified by:
isUpToDate in interface DBInterface

setLastUpdateTime

public void setLastUpdateTime(long lastUpdateTime)

getAssociatedScope

public String getAssociatedScope()

fetchSpecies

public void fetchSpecies()
                  throws RemoteException,
                         Exception
Specified by:
fetchSpecies in interface DBInterface
Throws:
RemoteException
Exception


Copyright © 2013. All Rights Reserved.