/**
   * Recipe: Iterating a View object using a secondary RowSet iterator.
   *
   * <p>Adjusts all the employees commission by a certain percentage.
   *
   * @param commissionPctAdjustment, the commission percent adjustment
   */
  public void adjustCommission(Number commissionPctAdjustment) {
    // check for valid commission adjustment
    if (commissionPctAdjustment != null) {
      // create an employee secondary RowSet iterator
      RowSetIterator employees = this.createRowSetIterator(null);
      // reset the iterator
      employees.reset();
      // iterate the employees
      while (employees.hasNext()) {
        // get the employee
        EmployeesRowImpl employee = (EmployeesRowImpl) employees.next();
        // check for employee belonging to the sales department
        if (employee.getDepartmentId() != null
            && SALES_DEPARTMENT_ID == employee.getDepartmentId().intValue()) {
          // calculate adjusted commission
          Number commissionPct = employee.getCommissionPct();
          Number adjustedCommissionPct =
              (commissionPct != null)
                  ? commissionPct.add(commissionPctAdjustment)
                  : commissionPctAdjustment;
          // set the employee's new commission
          employee.setCommissionPct(adjustedCommissionPct);
        }
      }

      // done with the RowSet iterator
      employees.closeRowSetIterator();
    }
  }
 public Object get(EmployeesRowImpl obj) {
   return obj.getHrSharedComponentsAppModule_JobsLov();
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getCommissionPct();
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setJobId((String) value);
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setHireDate((Date) value);
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setPhoneNumber((String) value);
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getEmail();
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getLastName();
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getLovSwitcher();
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setLovAttrib((String) value);
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getLovAttrib();
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setDepartmentId((Number) value);
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getManagerId();
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setCommissionPct((Number) value);
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setAttributeInternal(index(), value);
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setEmployeeId((Number) value);
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setLovSwitcher((String) value);
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setLastName((String) value);
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getFavoriteColor();
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getPhoneNumber();
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setFavoriteColor((String) value);
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getHireDate();
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getPicture();
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getJobId();
 }
 public void put(EmployeesRowImpl obj, Object value) {
   obj.setPicture((BlobDomain) value);
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getDepartmens();
 }
 public Object get(EmployeesRowImpl obj) {
   return obj.getSalary();
 }