Package com.tll.criteria

Examples of com.tll.criteria.QueryParam


    }
  }

  private void setCredentials(Long pk, String newUsername, String encNewPassword) {
    dao.executeQuery("user.setCredentials", new QueryParam[] {
      new QueryParam(IEntity.PK_FIELDNAME, PropertyType.STRING, pk),
      new QueryParam("username", PropertyType.STRING, newUsername),
      new QueryParam("password", PropertyType.STRING, encNewPassword) });
  }
View Full Code Here


      break;
    case MERCHANT_LISTING: {
      sorting = new Sorting("dateCreated");
      // find an isp..
      final Isp anIsp = getEntityDao().loadAll(Isp.class).get(0);
      final QueryParam qp = new QueryParam("ispId", PropertyType.STRING, anIsp.getId());
      list.add(qp);
      break;
    }
    case CUSTOMER_LISTING: {
      sorting = new Sorting(new SortColumn("dateCreated", "c"));

      // get the asp (to serve as the parent account)..
      final Asp asp = getEntityDao().loadAll(Asp.class).get(0);
      final QueryParam qp = new QueryParam("accountId", PropertyType.STRING, asp.getId());
      list.add(qp);
      break;
    }
    case INTERFACE_SUMMARY_LISTING:
      sorting = new Sorting(new SortColumn("code", "intf"));
      break;
    case ACCOUNT_INTERFACE_SUMMARY_LISTING: {
      sorting = new Sorting(new SortColumn("code", "intf"));

      list.add(new QueryParam("", PropertyType.STRING, "asp"));
      break;
    }

    // warn of unhandled defined named queries!
    default:
View Full Code Here

    }
  }

  private void setCredentials(String userId, String newUsername, String encNewPassword) {
    dao.executeQuery("user.setCredentials", new QueryParam[] {
      new QueryParam(IEntity.PK_FIELDNAME, PropertyType.STRING, userId),
      new QueryParam("username", PropertyType.STRING, newUsername),
      new QueryParam("password", PropertyType.STRING, encNewPassword) });
  }
View Full Code Here

TOP

Related Classes of com.tll.criteria.QueryParam

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.