/**
  * Instantiates SQLFactory and all the xml files that contain the queries that are used in our dao
  * class
  */
 private void initializeQueriesInXml() {
   String baseDir = System.getProperty("basedir");
   if (baseDir == null || "".equalsIgnoreCase(baseDir)) {
     throw new IllegalStateException(
         "The system properties basedir were not made available to the application. Therefore we cannot locate the test properties file.");
   }
   SQLFactory.JUNIT_XML_DIR =
       baseDir
           + File.separator
           + "src"
           + File.separator
           + "main"
           + File.separator
           + "webapp"
           + File.separator
           + "properties"
           + File.separator;
   SQLFactory.getInstance().run(dbName);
 }
 @Override
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_SUBJECTGROUPMAP;
 }
 @Override
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_DISCREPANCY_NOTE;
 }
Пример #4
0
 @Override
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_RULESET_AUDIT;
 }
 @Override
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_EXPRESSION;
 }
Пример #6
0
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_ITEMDATA;
 }
Пример #7
0
 @Override
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_ITEM;
 }
Пример #8
0
 public FilterDAO(DataSource ds) {
   super(ds);
   digester = SQLFactory.getInstance().getDigester(digesterName);
   this.setQueryNames();
 }
Пример #9
0
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_FILTER;
 }