Class SystemRepository

java.lang.Object
org.ehrbase.repository.SystemRepository

@Repository public class SystemRepository extends Object
Handles DB-Access to System
Author:
Stefan Spiska
  • Constructor Details

    • SystemRepository

      public SystemRepository(org.jooq.DSLContext context)
  • Method Details

    • commit

      @Transactional(propagation=REQUIRES_NEW) public void commit(SystemRecord systemRecord)
      Creates a new System in the DB
      Parameters:
      systemRecord -
    • findSystemId

      public Optional<UUID> findSystemId(String system)
      Find the uuid of the system in the DB corresponding to system
      Parameters:
      system -
      Returns:
    • toRecord

      public SystemRecord toRecord(String system, String description)