code: protected void checkedUpdate (final String query, final int count)
          throws PersistenceException
      {
          executeUpdate(new Operation<Object>() {
              public Object invoke (Connection conn, DatabaseLiaison liaison)
                  throws SQLException, PersistenceException
              {
                  Statement stmt = null;
                  try {
                      stmt = conn.createStatement();
                      JDBCUtil.checkedUpdate(stmt, query, 1);
                  } finally {
                      JDBCUtil.close(stmt);
                  }
                  return null;
              }
          });
      }
docs: Executes the supplied update query in this repository, throwing an exception if the
  modification count is not equal to the specified count.