Package org.ehrbase.dao.access.support
Class DataAccess
- java.lang.Object
-
- org.ehrbase.dao.access.support.DataAccess
-
- All Implemented Interfaces:
I_DomainAccess
- Direct Known Subclasses:
AqlQueryHandler,AttestationAccess,AuditDetailsAccess,CompositionAccess,CompositionHistoryAccess,CompoXRefAccess,ContextAccess,ContributionAccess,DatabaseStatusAccess,DummyDataAccess,EhrAccess,EntryAccess,FolderAccess,FolderHistoryAccess,ServiceDataAccess,StatusAccess,StoredQueryAccess,SystemAccess,TemplateStoreAccess
public abstract class DataAccess extends Object implements I_DomainAccess
Created by Christian Chevalley on 4/21/2015.
-
-
Field Summary
-
Fields inherited from interface org.ehrbase.dao.access.interfaces.I_DomainAccess
DBCP2_POOL, KEY_AUTO_RECONNECT, KEY_CONNECTION_MODE, KEY_DATABASE, KEY_DIALECT, KEY_HOST, KEY_INITIAL_CONNECTIONS, KEY_INTROSPECT_CACHE, KEY_KNOWLEDGE, KEY_LOG_ABANDONNED, KEY_LOGIN, KEY_MAX_ACTIVE, KEY_MAX_CONNECTION, KEY_MAX_IDLE, KEY_PASSWORD, KEY_PORT, KEY_REMOVE_ABANDONNED, KEY_REMOVE_ABANDONNED_TIMEOUT, KEY_SCHEMA, KEY_SET_MAX_PREPARED_STATEMENTS, KEY_SET_POOL_PREPARED_STATEMENTS, KEY_TEST_ON_BORROW, KEY_URL, KEY_WAIT_MS, PG_POOL
-
-
Constructor Summary
Constructors Constructor Description DataAccess(I_DomainAccess domainAccess)DataAccess(org.jooq.DSLContext context, I_KnowledgeCache knowledgeManager, IntrospectService introspectService, ServerConfig serverConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectiongetConnection()get the JDBC connection to the DBorg.jooq.DSLContextgetContext()get the jOOQ DSL context to perform DB queriesorg.jooq.SQLDialectgetDialect()get jOOQ SQL dialectIntrospectServicegetIntrospectService()I_KnowledgeCachegetKnowledgeManager()get the interface to the current knowledge cacheServerConfiggetServerConfig()voidreleaseConnection(Connection connection)have JOOQ release the DB connection-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ehrbase.dao.access.interfaces.I_DomainAccess
getDataAccess
-
-
-
-
Constructor Detail
-
DataAccess
public DataAccess(org.jooq.DSLContext context, I_KnowledgeCache knowledgeManager, IntrospectService introspectService, ServerConfig serverConfig)
-
DataAccess
public DataAccess(I_DomainAccess domainAccess)
-
-
Method Detail
-
getDialect
public org.jooq.SQLDialect getDialect()
Description copied from interface:I_DomainAccessget jOOQ SQL dialect- Specified by:
getDialectin interfaceI_DomainAccess- Returns:
- SQLDialect
- See Also:
SQLDialect
-
getConnection
public Connection getConnection()
Description copied from interface:I_DomainAccessget the JDBC connection to the DB- Specified by:
getConnectionin interfaceI_DomainAccess- Returns:
- Connection
- See Also:
Connection
-
releaseConnection
public void releaseConnection(Connection connection)
Description copied from interface:I_DomainAccesshave JOOQ release the DB connection- Specified by:
releaseConnectionin interfaceI_DomainAccess
-
getContext
public org.jooq.DSLContext getContext()
Description copied from interface:I_DomainAccessget the jOOQ DSL context to perform DB queries- Specified by:
getContextin interfaceI_DomainAccess- Returns:
- DSLContext
- See Also:
DSLContext
-
getKnowledgeManager
public I_KnowledgeCache getKnowledgeManager()
Description copied from interface:I_DomainAccessget the interface to the current knowledge cache- Specified by:
getKnowledgeManagerin interfaceI_DomainAccess- Returns:
- I_KnowledgeCache
- See Also:
I_KnowledgeCache
-
getIntrospectService
public IntrospectService getIntrospectService()
- Specified by:
getIntrospectServicein interfaceI_DomainAccess
-
getServerConfig
public ServerConfig getServerConfig()
- Specified by:
getServerConfigin interfaceI_DomainAccess
-
-