Package org.ehrbase.dao.access.jooq
Class StoredQueryAccess
java.lang.Object
org.ehrbase.dao.access.support.DataAccess
org.ehrbase.dao.access.jooq.StoredQueryAccess
- All Implemented Interfaces:
I_DomainAccess,I_StoredQueryAccess
Created by Christian Chevalley on 4/20/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
ConstructorsConstructorDescriptionStoredQueryAccess(I_DomainAccess domainAccess, String qualifiedQueryName, String sourceAqlText, String tenantIdentifier) StoredQueryAccess(I_DomainAccess domainAccess, StoredQueryRecord queryRecord, String tenantIdentifier) -
Method Summary
Modifier and TypeMethodDescriptioncommit()delete()static StoredQueryAccessretrieveQualified(I_DomainAccess domainAccess, String qualifiedName) static List<StoredQueryAccess>retrieveQualifiedList(I_DomainAccess domainAccess) retrieve the whole set of stored queriesstatic List<StoredQueryAccess>retrieveQualifiedList(I_DomainAccess domainAccess, String qualifiedName) voidsetQueryText(String queryText) Methods inherited from class org.ehrbase.dao.access.support.DataAccess
getConnection, getContext, getDialect, getIntrospectService, getKnowledgeManager, getServerConfig, releaseConnection
-
Constructor Details
-
StoredQueryAccess
public StoredQueryAccess(I_DomainAccess domainAccess, StoredQueryRecord queryRecord, String tenantIdentifier) -
StoredQueryAccess
public StoredQueryAccess(I_DomainAccess domainAccess, String qualifiedQueryName, String sourceAqlText, String tenantIdentifier)
-
-
Method Details
-
retrieveQualified
public static StoredQueryAccess retrieveQualified(I_DomainAccess domainAccess, String qualifiedName) - Throws:
IllegalArgumentException- if couldn't retrieve instance with given settings
-
retrieveQualifiedList
public static List<StoredQueryAccess> retrieveQualifiedList(I_DomainAccess domainAccess, String qualifiedName) - Throws:
IllegalArgumentException- if couldn't retrieve instance with given settings
-
retrieveQualifiedList
retrieve the whole set of stored queries- Parameters:
domainAccess-- Returns:
-
commit
- Specified by:
commitin interfaceI_StoredQueryAccess
-
commit
- Specified by:
commitin interfaceI_StoredQueryAccess
-
update
- Specified by:
updatein interfaceI_StoredQueryAccess
-
update
- Specified by:
updatein interfaceI_StoredQueryAccess
-
delete
- Specified by:
deletein interfaceI_StoredQueryAccess
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceI_StoredQueryAccess
-
getReverseDomainName
- Specified by:
getReverseDomainNamein interfaceI_StoredQueryAccess
-
getSemanticId
- Specified by:
getSemanticIdin interfaceI_StoredQueryAccess
-
getSemver
- Specified by:
getSemverin interfaceI_StoredQueryAccess
-
getQueryText
- Specified by:
getQueryTextin interfaceI_StoredQueryAccess
-
setQueryText
- Specified by:
setQueryTextin interfaceI_StoredQueryAccess
-
getCreationDate
- Specified by:
getCreationDatein interfaceI_StoredQueryAccess
-
getQueryType
- Specified by:
getQueryTypein interfaceI_StoredQueryAccess
-
getDataAccess
- Specified by:
getDataAccessin interfaceI_DomainAccess
-