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