Class CodeSystemDAOImpl

  • All Implemented Interfaces:
    CodeSystemDAO
    Direct Known Subclasses:
    DerbyCodeSystemDAO, PostgresCodeSystemDAO

    public class CodeSystemDAOImpl
    extends java.lang.Object
    implements CodeSystemDAO
    This DAO uses a connection provided to its constructor. It's therefore assumed to be a short-lived object, created on-the-fly. Caching etc is handled elsewhere...we're just doing JDBC stuff here.
    • Constructor Summary

      Constructors 
      Constructor Description
      CodeSystemDAOImpl​(java.sql.Connection c, java.lang.String schemaName)
      Constructs a DAO instance suitable for acquiring connections from a JDBC Datasource object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.sql.Connection getConnection()
      Provide subclasses with access to the Connection
      protected java.lang.String getSchemaName()
      Getter for the FHIR data schema
      java.util.Map<java.lang.String,​java.lang.Integer> readAllCodeSystems()
      Reads all rows in the code_systems table and returns the data as a Map
      java.lang.Integer readCodeSystemId​(java.lang.String codeSystem)
      Read the code_system_id for the given code system name
      int readOrAddCodeSystem​(java.lang.String systemName)
      Calls a stored procedure to read the system contained in the passed Parameter in the Code_Systems table.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CodeSystemDAOImpl

        public CodeSystemDAOImpl​(java.sql.Connection c,
                                 java.lang.String schemaName)
        Constructs a DAO instance suitable for acquiring connections from a JDBC Datasource object.