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,ServiceDataAccess,StatusAccess,StatusHistoryAccess,StoredQueryAccess,SystemAccess,TemplateStoreAccess
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
ConstructorsConstructorDescriptionDataAccess(I_DomainAccess domainAccess) DataAccess(org.jooq.DSLContext context, I_KnowledgeCache knowledgeManager, IntrospectService introspectService, ServerConfig serverConfig) -
Method Summary
Modifier and TypeMethodDescriptionget the JDBC connection to the DBorg.jooq.DSLContextget the jOOQ DSL context to perform DB queriesorg.jooq.SQLDialectget jOOQ SQL dialectget the interface to the current knowledge cachevoidreleaseConnection(Connection connection) have JOOQ release the DB connectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ehrbase.dao.access.interfaces.I_DomainAccess
getDataAccess
-
Constructor Details
-
DataAccess
public DataAccess(org.jooq.DSLContext context, I_KnowledgeCache knowledgeManager, IntrospectService introspectService, ServerConfig serverConfig) -
DataAccess
-
-
Method Details
-
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
Description copied from interface:I_DomainAccessget the JDBC connection to the DB- Specified by:
getConnectionin interfaceI_DomainAccess- Returns:
- Connection
- See Also:
-
releaseConnection
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
Description copied from interface:I_DomainAccessget the interface to the current knowledge cache- Specified by:
getKnowledgeManagerin interfaceI_DomainAccess- Returns:
- I_KnowledgeCache
- See Also:
-
getIntrospectService
- Specified by:
getIntrospectServicein interfaceI_DomainAccess
-
getServerConfig
- Specified by:
getServerConfigin interfaceI_DomainAccess
-