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
public class CompoXRefAccess extends DataAccess implements I_CompoXrefAccess
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 Constructor Description CompoXRefAccess(I_DomainAccess domainAccess)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataAccessgetDataAccess()UUIDgetLastLink(UUID masterUid)Retrieve only the latest (by system transaction time) of children matching given parent/master IDMap<UUID,Timestamp>getLinkList(UUID masterUid)Retrieves list of children matching given parent/master IDintsetLink(UUID masterUid, UUID childUid)Insert a new link between given master and child-
Methods inherited from class org.ehrbase.dao.access.support.DataAccess
getConnection, getContext, getDialect, getIntrospectService, getKnowledgeManager, getServerConfig, releaseConnection
-
-
-
-
Constructor Detail
-
CompoXRefAccess
public CompoXRefAccess(I_DomainAccess domainAccess)
-
-
Method Detail
-
getLinkList
public Map<UUID,Timestamp> getLinkList(UUID masterUid)
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
public UUID getLastLink(UUID masterUid)
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
public int setLink(UUID masterUid, UUID childUid)
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
public DataAccess getDataAccess()
- Specified by:
getDataAccessin interfaceI_DomainAccess
-
-