* Useful for clearing the database before a unit test.
*/
public static void deleteAllObjects() {
EOEditingContext ec = ERXEC.newEditingContext();
// Hacky way to qualify all objects in any entity in ERXTest, assuming pk is always "id"
EOQualifier q = new ERXKeyValueQualifier("id", EOQualifier.QualifierOperatorNotEqual, Integer.valueOf(-1));
ERXEOAccessUtilities.deleteRowsDescribedByQualifier(ec, Company.ENTITY_NAME, q);
ERXEOAccessUtilities.deleteRowsDescribedByQualifier(ec, Employee.ENTITY_NAME, q);
ERXEOAccessUtilities.deleteRowsDescribedByQualifier(ec, Paycheck.ENTITY_NAME, q);
ERXEOAccessUtilities.deleteRowsDescribedByQualifier(ec, Role.ENTITY_NAME, q);
// Join table hacky delete
q = new ERXKeyValueQualifier("roleId", EOQualifier.QualifierOperatorNotEqual, Integer.valueOf(-1));
ERXEOAccessUtilities.deleteRowsDescribedByQualifier(ec, "EmployeeRole", q);
}