Package com.baasbox.dao

Examples of com.baasbox.dao.GenericDao.executeQuery()


  }

  public static List<ODocument> getRoles() throws SqlInjectionException {
    GenericDao dao = GenericDao.getInstance();
    QueryParams criteria = QueryParams.getInstance().where("name not like \""+RoleDao.FRIENDS_OF_ROLE+"%\" and assignable=true").orderBy("name asc");
    return dao.executeQuery("orole", criteria);
  }
 
  /***
   * Returns a list with a single record containing the ODocument (class ORole) referring to the role specified by the parameter
   * @param name
View Full Code Here


   * @throws SqlInjectionException
   */
  public static List<ODocument> getRoles(String name) throws SqlInjectionException {
    GenericDao dao = GenericDao.getInstance();
    QueryParams criteria = QueryParams.getInstance().where("name = ? and assignable=true").params(new String[]{name}).orderBy("name asc");
    return dao.executeQuery("orole", criteria);
  }
 
  public static ORole getORole(String name)  {
    return RoleDao.getRole(name);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.