/**
  * 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;
 }
Exemplo n.º 4
0
 @Override
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_RULESET_AUDIT;
 }
 @Override
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_EXPRESSION;
 }
Exemplo n.º 6
0
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_ITEMDATA;
 }
Exemplo n.º 7
0
 @Override
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_ITEM;
 }
Exemplo n.º 8
0
 public FilterDAO(DataSource ds) {
   super(ds);
   digester = SQLFactory.getInstance().getDigester(digesterName);
   this.setQueryNames();
 }
Exemplo n.º 9
0
 protected void setDigesterName() {
   digesterName = SQLFactory.getInstance().DAO_FILTER;
 }