test_class.declarator: dao
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private CoordinatesDao dao;
test_class.type: CoordinatesDao
test_class.var_name: dao
test_class.file: pipeline/src/test/java/uk/ac/kcl/iop/brc/core/pipeline/dncpipeline/data/CoordinatesDaoTest.java
test_class.identifier: CoordinatesDaoTest
test_class.superclass: extends IntegrationTest
test_case.body: @Test
      public void shouldLoadCoordinatesFromView() {
          dao.executeSQLQueryForSource("create table vwTestCoordinates(patientId int, sourceTable varchar(100), sourceColumn varchar(100), idInSourceTable int, pkColumnName varchar(100), type varchar(100), updateTime varchar(100))");
          dao.executeSQLQueryForSource("insert into vwTestCoordinates values(5, 'patientDocuments', 'binaryData', 13, 'id', 'binary', '2015-10-10')");
          
          List<DNCWorkCoordinate> result = dao.getCoordinates();
          
          assertThat(result.size(), equalTo(1));
  
          dao.executeSQLQueryForSource("drop table vwTestCoordinates");
      }
test_case.class_method_signature: CoordinatesDaoTest.shouldLoadCoordinatesFromView()
test_case.full_signature: @Test public void shouldLoadCoordinatesFromView()
test_case.identifier: shouldLoadCoordinatesFromView
test_case.invocations: executeSQLQueryForSource executeSQLQueryForSource getCoordinates assertThat size equalTo executeSQLQueryForSource
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldLoadCoordinatesFromView()
focal_class.declarator: logger = Logger.getLogger(CoordinatesDao.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = Logger.getLogger(CoordinatesDao.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: pipeline/src/main/java/uk/ac/kcl/iop/brc/core/pipeline/dncpipeline/data/CoordinatesDao.java
focal_class.identifier: CoordinatesDao
focal_class.class_method_signature: CoordinatesDao.getCoordinates()
focal_class.full_signature: public List<DNCWorkCoordinate> getCoordinates()
focal_class.identifier: getCoordinates
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<DNCWorkCoordinate>
focal_class.signature: List<DNCWorkCoordinate> getCoordinates()
focal_class.superclass: extends BaseDao
focal_method.body: public List<DNCWorkCoordinate> getCoordinates() {
          SessionWrapper session = getCurrentSourceSession();
          try {
              Query getCoordinates = session.getNamedQuery("getCoordinates");
              List<DNCWorkCoordinate> coordinateList = getCoordinates
                      .setResultTransformer(Transformers.aliasToBean(DNCWorkCoordinate.class))
                      .list();
              return coordinateList;
          } catch (Exception ex) {
              logger.error("Error loading coordinates. Please check getCoordinates query. " + ex.getMessage());
              return new ArrayList<>();
          } finally {
              session.closeSession();
          }
      }
focal_method.class_method_signature: CoordinatesDao.getCoordinates()
focal_method.full_signature: public List<DNCWorkCoordinate> getCoordinates()
focal_method.identifier: getCoordinates
focal_method.invocations: getCurrentSourceSession getNamedQuery list setResultTransformer aliasToBean error getMessage closeSession
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: List<DNCWorkCoordinate>
focal_method.signature: List<DNCWorkCoordinate> getCoordinates()