test_class.declarator: baseDao
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private BaseDao baseDao;
test_class.type: BaseDao
test_class.var_name: baseDao
test_class.file: common/src/test/java/uk/ac/kcl/iop/brc/core/pipeline/common/data/BaseDaoTest.java
test_class.identifier: BaseDaoTest
test_class.superclass: extends IntegrationTest
test_case.body: @Test
      public void shouldCreateTable() {
          Session session = baseDao.getSourceSessionFactory().openSession();
          SQLQuery sqlQuery = session.createSQLQuery("create table TestTable(id int)");
          sqlQuery.executeUpdate();
  
          session.createSQLQuery("insert into TestTable values(1)").executeUpdate();
          session.createSQLQuery("insert into TestTable values(2)").executeUpdate();
  
          SQLQuery selectQuery = session.createSQLQuery("select * from TestTable");
          List list = selectQuery.list();
  
          assertThat(list.size(), equalTo(2));
      }
test_case.class_method_signature: BaseDaoTest.shouldCreateTable()
test_case.full_signature: @Test public void shouldCreateTable()
test_case.identifier: shouldCreateTable
test_case.invocations: openSession getSourceSessionFactory createSQLQuery executeUpdate executeUpdate createSQLQuery executeUpdate createSQLQuery createSQLQuery list assertThat size equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldCreateTable()
focal_class.declarator: sourceSessionFactory
focal_class.modifier: @Autowired
      @Qualifier("sourceSessionFactory")
      private
focal_class.original_string: @Autowired
      @Qualifier("sourceSessionFactory")
      private SessionFactory sourceSessionFactory;
focal_class.type: SessionFactory
focal_class.var_name: sourceSessionFactory
focal_class.declarator: targetSessionFactory
focal_class.modifier: @Autowired
      @Qualifier("targetSessionFactory")
      private
focal_class.original_string: @Autowired
      @Qualifier("targetSessionFactory")
      private SessionFactory targetSessionFactory;
focal_class.type: SessionFactory
focal_class.var_name: targetSessionFactory
focal_class.declarator: logger = Logger.getLogger(BaseDao.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = Logger.getLogger(BaseDao.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: common/src/main/java/uk/ac/kcl/iop/brc/core/pipeline/common/data/BaseDao.java
focal_class.identifier: BaseDao
focal_class.class_method_signature: BaseDao.getSourceSessionFactory()
focal_class.full_signature: public SessionFactory getSourceSessionFactory()
focal_class.identifier: getSourceSessionFactory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SessionFactory
focal_class.signature: SessionFactory getSourceSessionFactory()
focal_class.class_method_signature: BaseDao.setSourceSessionFactory(SessionFactory sourceSessionFactory)
focal_class.full_signature: public void setSourceSessionFactory(SessionFactory sourceSessionFactory)
focal_class.identifier: setSourceSessionFactory
focal_class.modifiers: public
focal_class.parameters: (SessionFactory sourceSessionFactory)
focal_class.return: void
focal_class.signature: void setSourceSessionFactory(SessionFactory sourceSessionFactory)
focal_class.class_method_signature: BaseDao.getCurrentSourceSession()
focal_class.full_signature: public SessionWrapper getCurrentSourceSession()
focal_class.identifier: getCurrentSourceSession
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SessionWrapper
focal_class.signature: SessionWrapper getCurrentSourceSession()
focal_class.class_method_signature: BaseDao.getCurrentTargetSession()
focal_class.full_signature: public SessionWrapper getCurrentTargetSession()
focal_class.identifier: getCurrentTargetSession
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SessionWrapper
focal_class.signature: SessionWrapper getCurrentTargetSession()
focal_class.class_method_signature: BaseDao.getTargetSessionFactory()
focal_class.full_signature: public SessionFactory getTargetSessionFactory()
focal_class.identifier: getTargetSessionFactory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SessionFactory
focal_class.signature: SessionFactory getTargetSessionFactory()
focal_class.class_method_signature: BaseDao.setTargetSessionFactory(SessionFactory targetSessionFactory)
focal_class.full_signature: public void setTargetSessionFactory(SessionFactory targetSessionFactory)
focal_class.identifier: setTargetSessionFactory
focal_class.modifiers: public
focal_class.parameters: (SessionFactory targetSessionFactory)
focal_class.return: void
focal_class.signature: void setTargetSessionFactory(SessionFactory targetSessionFactory)
focal_class.class_method_signature: BaseDao.createSourceSession()
focal_class.full_signature: public Session createSourceSession()
focal_class.identifier: createSourceSession
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Session
focal_class.signature: Session createSourceSession()
focal_class.class_method_signature: BaseDao.executeSQLQueryForSource(String sqlQuery)
focal_class.full_signature: public void executeSQLQueryForSource(String sqlQuery)
focal_class.identifier: executeSQLQueryForSource
focal_class.modifiers: public
focal_class.parameters: (String sqlQuery)
focal_class.return: void
focal_class.signature: void executeSQLQueryForSource(String sqlQuery)
focal_class.class_method_signature: BaseDao.executeSQLQueryForTarget(String sqlQuery)
focal_class.full_signature: public void executeSQLQueryForTarget(String sqlQuery)
focal_class.identifier: executeSQLQueryForTarget
focal_class.modifiers: public
focal_class.parameters: (String sqlQuery)
focal_class.return: void
focal_class.signature: void executeSQLQueryForTarget(String sqlQuery)
focal_class.class_method_signature: BaseDao.getSQLResultFromSource(String sqlQuery)
focal_class.full_signature: public List getSQLResultFromSource(String sqlQuery)
focal_class.identifier: getSQLResultFromSource
focal_class.modifiers: public
focal_class.parameters: (String sqlQuery)
focal_class.return: List
focal_class.signature: List getSQLResultFromSource(String sqlQuery)
focal_class.class_method_signature: BaseDao.getSQLResultFromTarget(String sqlQuery)
focal_class.full_signature: public List getSQLResultFromTarget(String sqlQuery)
focal_class.identifier: getSQLResultFromTarget
focal_class.modifiers: public
focal_class.parameters: (String sqlQuery)
focal_class.return: List
focal_class.signature: List getSQLResultFromTarget(String sqlQuery)
focal_method.body: public SessionFactory getSourceSessionFactory() {
          return sourceSessionFactory;
      }
focal_method.class_method_signature: BaseDao.getSourceSessionFactory()
focal_method.full_signature: public SessionFactory getSourceSessionFactory()
focal_method.identifier: getSourceSessionFactory
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: SessionFactory
focal_method.signature: SessionFactory getSourceSessionFactory()