/** * Get the list of all rules * * @return List<Rule> */ public List<Rule> getRules() { // Lock it! mLock.lock(); try { startTransaction(); return rulesTable.getAllEntries(localDatabase, Rule.class, rulesTable.getMapper()); } catch (DBException e) { Logger.error(this, "Problems starting transaction"); } finally { endTransaction(); mLock.unlock(); } return null; }