Package org.ehrbase.dao.access.jooq
Class CompoXRefAccess
java.lang.Object
org.ehrbase.dao.access.support.DataAccess
org.ehrbase.dao.access.jooq.CompoXRefAccess
- All Implemented Interfaces:
I_CompoXrefAccess,I_DomainAccess
Deals with composition links. For example to link an ACTION with an INSTRUCTION with or an OBSERVATION
Created by christian on 9/12/2016.
-
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 -
Method Summary
Modifier and TypeMethodDescriptiongetLastLink(UUID masterUid) Retrieve only the latest (by system transaction time) of children matching given parent/master IDgetLinkList(UUID masterUid) Retrieves list of children matching given parent/master IDintInsert a new link between given master and childMethods inherited from class org.ehrbase.dao.access.support.DataAccess
getConnection, getContext, getDialect, getIntrospectService, getKnowledgeManager, getServerConfig, releaseConnection
-
Constructor Details
-
CompoXRefAccess
-
-
Method Details
-
getLinkList
Description copied from interface:I_CompoXrefAccessRetrieves list of children matching given parent/master ID- Specified by:
getLinkListin interfaceI_CompoXrefAccess- Parameters:
masterUid- parent or masterUUID- Returns:
- A list of children represented as map, where each child has its system transaction time as value
-
getLastLink
Description copied from interface:I_CompoXrefAccessRetrieve only the latest (by system transaction time) of children matching given parent/master ID- Specified by:
getLastLinkin interfaceI_CompoXrefAccess- Parameters:
masterUid- parent or masterUUID- Returns:
UUIDof newest child
-
setLink
Description copied from interface:I_CompoXrefAccessInsert a new link between given master and child- Specified by:
setLinkin interfaceI_CompoXrefAccess- Parameters:
masterUid- parent or masterUUIDchildUid- childUUID- Returns:
- the number of inserted records
-
getDataAccess
- Specified by:
getDataAccessin interfaceI_DomainAccess
-