217218219220221222223224225226227
statement1.setInt(1, projectID); ResultSet result = statement1.executeQuery(); if (result.next()) { if (result.getInt("c") < 2) { con.setAutoCommit(true); throw new ProjectNeedsActiveLeaderException(); } } else { throw new DAOException(); } }