Package org.exoplatform.services.database

Examples of org.exoplatform.services.database.ObjectQuery$Parameter


      return new LazyPageList<User>(findUsersByQuery(q), 20);
   }

   public ListAccess<User> findUsersByQuery(Query q) throws Exception
   {
      ObjectQuery oq = new ObjectQuery(UserImpl.class);
      oq.addLIKE("userName", q.getUserName());
      oq.addLIKE("firstName", q.getFirstName());
      oq.addLIKE("lastName", q.getLastName());
      oq.addLIKE("email", q.getEmail());
      oq.addGT("lastLoginTime", q.getFromLoginDate());
      oq.addLT("lastLoginTime", q.getToLoginDate());

      return new SimpleHibernateUserListAccess(service_, oq.getHibernateQuery(), oq.getHibernateCountQuery());
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.database.ObjectQuery$Parameter

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.