test_class.declarator: repository
test_class.original_string: Repository repository;
test_class.type: Repository
test_class.var_name: repository
test_class.file: configsource-db/src/test/java/org/microprofileext/config/source/db/RepositoryTest.java
test_class.identifier: RepositoryTest
test_case.body: @Test
      void testGetConfigValue_no_stmt() throws SQLException {
          assertNull(repository.getConfigValue("test"));
      }
test_case.class_method_signature: RepositoryTest.testGetConfigValue_no_stmt()
test_case.full_signature: @Test void testGetConfigValue_no_stmt()
test_case.identifier: testGetConfigValue_no_stmt
test_case.invocations: assertNull getConfigValue
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetConfigValue_no_stmt()
focal_class.declarator: KEY_PREFIX = "configsource.db."
focal_class.modifier: private static final
focal_class.original_string: private static final String KEY_PREFIX = "configsource.db.";
focal_class.type: String
focal_class.var_name: KEY_PREFIX
focal_class.declarator: KEY_DATASOURCE = KEY_PREFIX + "datasource"
focal_class.modifier: private static final
focal_class.original_string: private static final String KEY_DATASOURCE = KEY_PREFIX + "datasource";
focal_class.type: String
focal_class.var_name: KEY_DATASOURCE
focal_class.declarator: KEY_TABLE = KEY_PREFIX + "table"
focal_class.modifier: private static final
focal_class.original_string: private static final String KEY_TABLE = KEY_PREFIX + "table";
focal_class.type: String
focal_class.var_name: KEY_TABLE
focal_class.declarator: KEY_KEY_COLUMN = KEY_PREFIX + "key-column"
focal_class.modifier: private static final
focal_class.original_string: private static final String KEY_KEY_COLUMN = KEY_PREFIX + "key-column";
focal_class.type: String
focal_class.var_name: KEY_KEY_COLUMN
focal_class.declarator: KEY_VALUE_COLUMN = KEY_PREFIX + "value-column"
focal_class.modifier: private static final
focal_class.original_string: private static final String KEY_VALUE_COLUMN = KEY_PREFIX + "value-column";
focal_class.type: String
focal_class.var_name: KEY_VALUE_COLUMN
focal_class.declarator: selectOne = null
focal_class.original_string: PreparedStatement selectOne = null;
focal_class.type: PreparedStatement
focal_class.var_name: selectOne
focal_class.declarator: selectAll = null
focal_class.original_string: PreparedStatement selectAll = null;
focal_class.type: PreparedStatement
focal_class.var_name: selectAll
focal_class.file: configsource-db/src/main/java/org/microprofileext/config/source/db/Repository.java
focal_class.identifier: Repository
focal_class.class_method_signature: Repository.Repository(Config config)
focal_class.full_signature: public  Repository(Config config)
focal_class.identifier: Repository
focal_class.modifiers: public
focal_class.parameters: (Config config)
focal_class.signature:  Repository(Config config)
focal_class.class_method_signature: Repository.getAllConfigValues()
focal_class.full_signature: public Map<String, String> getAllConfigValues()
focal_class.identifier: getAllConfigValues
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getAllConfigValues()
focal_class.class_method_signature: Repository.getConfigValue(String key)
focal_class.full_signature: public String getConfigValue(String key)
focal_class.identifier: getConfigValue
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: String
focal_class.signature: String getConfigValue(String key)
focal_class.class_method_signature: Repository.getDatasource(String jndi)
focal_class.full_signature: private DataSource getDatasource(String jndi)
focal_class.identifier: getDatasource
focal_class.modifiers: private
focal_class.parameters: (String jndi)
focal_class.return: DataSource
focal_class.signature: DataSource getDatasource(String jndi)
focal_method.body: public String getConfigValue(String key) {
          if (selectOne != null) {
              try {
                  selectOne.setString(1, key);
                  ResultSet rs = selectOne.executeQuery();
                  if (rs.next()) {
                      return rs.getString(1);
                  }
              } catch (SQLException e) {
                  log.log(Level.FINE, () -> "query for config value failed: " + e.getMessage());
              }
          }
          return null;
      }
focal_method.class_method_signature: Repository.getConfigValue(String key)
focal_method.full_signature: public String getConfigValue(String key)
focal_method.identifier: getConfigValue
focal_method.invocations: setString executeQuery next getString log getMessage
focal_method.modifiers: public
focal_method.parameters: (String key)
focal_method.return: String
focal_method.signature: String getConfigValue(String key)