Package com.baasbox.util

Examples of com.baasbox.util.QueryParams


 
  private ODocument getCurrentResetRecord(String username) throws RuntimeException{
    String timeBeforeExpiration = String.valueOf(PasswordRecovery.EMAIL_EXPIRATION_TIME.getValueAsInteger()*60*1000);
   
    ODocument result=null;
    QueryParams criteria = QueryParams.getInstance().where("user.user.name=? and " + ATTRIBUTES_COMPLETED_DATE + " is null and (" + ATTRIBUTES_INVALID + " is not null or " + ATTRIBUTES_INVALID + " is false) and " + ATTRIBUTES_REQUEST_DATE + " > ( sysdate() - ? )").params(new String [] {username, timeBeforeExpiration});
    List<ODocument> resultList=null;
    try {
      resultList = super.get(criteria);
    } catch (SqlInjectionException e) {
      throw new RuntimeException (e);
View Full Code Here

TOP

Related Classes of com.baasbox.util.QueryParams

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.