public class DaoSession extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CATALINA_HOME |
static org.apache.log4j.Logger |
logger |
protected static String |
PERSISTENCE_H2DBSPECIES_H2 |
protected static String |
PROPERTY_CATALINA_HOME |
| Constructor and Description |
|---|
DaoSession() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkASLSession(org.gcube.application.framework.core.session.ASLSession session)
Check asl session.
|
static javax.persistence.EntityManagerFactory |
createEntityManagerFactory(org.gcube.application.framework.core.session.ASLSession session)
Creates the entity manager factory.
|
static OccurrenceJobPersistence |
createOccurrencesJobDao(String username,
String scope,
org.gcube.application.framework.core.session.ASLSession session)
Creates the occurrences job dao.
|
static String |
getConnectionUrl(org.gcube.application.framework.core.session.ASLSession session)
Gets the connection url.
|
static javax.persistence.EntityManagerFactory |
getEntityManagerFactory(org.gcube.application.framework.core.session.ASLSession session)
Gets the entity manager factory.
|
static GisLayerJobPersistence |
getGisLayersJobDAO(org.gcube.application.framework.core.session.ASLSession session)
Gets the gis layers job dao.
|
static OccurrenceRowPersistence |
getOccurrenceDAO(org.gcube.application.framework.core.session.ASLSession session)
Gets the occurrence dao.
|
static OccurrenceJobPersistence |
getOccurrencesJobDAO(org.gcube.application.framework.core.session.ASLSession session)
Gets the occurrences job dao.
|
static ResultRowPersistence |
getResultRowDAO(org.gcube.application.framework.core.session.ASLSession session)
Gets the result row dao.
|
static TaxonRowPersistence |
getTaxonDAO(org.gcube.application.framework.core.session.ASLSession session)
Gets the taxon dao.
|
static TaxonomyRowPersistence |
getTaxonomyDAO(org.gcube.application.framework.core.session.ASLSession session)
Gets the taxonomy dao.
|
static TaxonomyJobPersistence |
getTaxonomyJobDAO(org.gcube.application.framework.core.session.ASLSession session)
Gets the taxonomy job dao.
|
static String |
getTomcatFolder()
Gets the tomcat folder.
|
static String |
getUsernameScopeValue(String username,
String scope)
Gets the username scope value.
|
static OccurrenceJobPersistence |
initOccurrencesJobsDao(org.gcube.application.framework.core.session.ASLSession session)
Inits the occurrences jobs dao.
|
static ResultRowPersistence |
initResultRowDao(org.gcube.application.framework.core.session.ASLSession session)
Inits the result row dao.
|
static void |
initSessionDaoObjects(org.gcube.application.framework.core.session.ASLSession session)
Inits the session dao objects.
|
static TaxonRowPersistence |
initTaxonDao(org.gcube.application.framework.core.session.ASLSession session)
Inits the taxon dao.
|
static TaxonomyJobPersistence |
initTaxonomyJobsDao(org.gcube.application.framework.core.session.ASLSession session)
Inits the taxonomy jobs dao.
|
static javax.persistence.EntityManager |
newEntityManager(org.gcube.application.framework.core.session.ASLSession session)
New entity manager.
|
protected static final String PROPERTY_CATALINA_HOME
protected static final String CATALINA_HOME
protected static final String PERSISTENCE_H2DBSPECIES_H2
public static org.apache.log4j.Logger logger
public static boolean checkASLSession(org.gcube.application.framework.core.session.ASLSession session)
throws SessionExpired
session - the sessionSessionExpired - the session expiredpublic static String getUsernameScopeValue(String username, String scope) throws SessionExpired
username - the usernamescope - the scopeSessionExpired - the session expiredpublic static String getTomcatFolder()
public static String getConnectionUrl(org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired
session - the sessionSessionExpired - the session expiredpublic static void initSessionDaoObjects(org.gcube.application.framework.core.session.ASLSession session)
throws DatabaseServiceException
session - the sessionDatabaseServiceException - the database service exceptionpublic static javax.persistence.EntityManager newEntityManager(org.gcube.application.framework.core.session.ASLSession session)
throws SessionExpired,
Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static javax.persistence.EntityManagerFactory getEntityManagerFactory(org.gcube.application.framework.core.session.ASLSession session)
throws SessionExpired,
Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static OccurrenceJobPersistence getOccurrencesJobDAO(org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired, Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static GisLayerJobPersistence getGisLayersJobDAO(org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired, Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static TaxonomyJobPersistence getTaxonomyJobDAO(org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired, Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static javax.persistence.EntityManagerFactory createEntityManagerFactory(org.gcube.application.framework.core.session.ASLSession session)
throws SessionExpired,
Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static OccurrenceJobPersistence initOccurrencesJobsDao(org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired, Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static TaxonomyJobPersistence initTaxonomyJobsDao(org.gcube.application.framework.core.session.ASLSession session) throws Exception
session - the sessionException - the exceptionpublic static OccurrenceJobPersistence createOccurrencesJobDao(String username, String scope, org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired, Exception
username - the usernamescope - the scopesession - the sessionSessionExpired - the session expiredException - the exceptionpublic static ResultRowPersistence initResultRowDao(org.gcube.application.framework.core.session.ASLSession session) throws Exception
session - the sessionException - the exceptionpublic static OccurrenceRowPersistence getOccurrenceDAO(org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired, Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static TaxonRowPersistence initTaxonDao(org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired, Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static TaxonRowPersistence getTaxonDAO(org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired, Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static TaxonomyRowPersistence getTaxonomyDAO(org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired, Exception
session - the sessionSessionExpired - the session expiredException - the exceptionpublic static ResultRowPersistence getResultRowDAO(org.gcube.application.framework.core.session.ASLSession session) throws SessionExpired, Exception
session - the sessionSessionExpired - the session expiredException - the exceptionCopyright © 2021. All Rights Reserved.