Package com.thinkgem.jeesite.common.persistence

Examples of com.thinkgem.jeesite.common.persistence.Parameter


  public List<User> findAllList() {
    return find("from User where delFlag=:p1 order by id", new Parameter(User.DEL_FLAG_NORMAL));
  }
 
  public User findByLoginName(String loginName){
    return getByHql("from User where loginName = :p1 and delFlag = :p2", new Parameter(loginName, User.DEL_FLAG_NORMAL));
  }
View Full Code Here


  public User findByLoginName(String loginName){
    return getByHql("from User where loginName = :p1 and delFlag = :p2", new Parameter(loginName, User.DEL_FLAG_NORMAL));
  }

  public int updatePasswordById(String newPassword, String id){
    return update("update User set password=:p1 where id = :p2", new Parameter(newPassword, id));
  }
View Full Code Here

  public int updatePasswordById(String newPassword, String id){
    return update("update User set password=:p1 where id = :p2", new Parameter(newPassword, id));
  }
 
  public int updateLoginInfo(String loginIp, Date loginDate, String id){
    return update("update User set loginIp=:p1, loginDate=:p2 where id = :p3", new Parameter(loginIp, loginDate, id));
  }
View Full Code Here

*/
@Repository
public class RoleDao extends BaseDao<Role> {

  public Role findByName(String name){
    return getByHql("from Role where delFlag = :p1 and name = :p2", new Parameter(Role.DEL_FLAG_NORMAL, name));
  }
View Full Code Here

*/
@Repository
public class DictDao extends BaseDao<Dict> {

  public List<Dict> findAllList(){
    return find("from Dict where delFlag=:p1 order by sort", new Parameter(Dict.DEL_FLAG_NORMAL));
  }
View Full Code Here

  public List<Dict> findAllList(){
    return find("from Dict where delFlag=:p1 order by sort", new Parameter(Dict.DEL_FLAG_NORMAL));
  }

  public List<String> findTypeList(){
    return find("select type from Dict where delFlag=:p1 group by type", new Parameter(Dict.DEL_FLAG_NORMAL));
  }
View Full Code Here

*/
@Repository
public class LeaveDao extends BaseDao<Leave> {
 
  public int updateProcessInstanceId(String id,String processInstanceId){
    return update("update Leave set processInstanceId=:p1 where id = :p2", new Parameter(processInstanceId, id));
  }
View Full Code Here

*/
@Repository
public class LinkDao extends BaseDao<Link> {
 
  public List<Link> findByIdIn(Long[] ids){
    return find("front Like where id in (:p1)", new Parameter(new Object[]{ids}));
  }
View Full Code Here

*/
@Repository
public class CategoryDao extends BaseDao<Category> {
 
  public List<Category> findByParentIdsLike(String parentIds){
    return find("from Category where parentIds like :p1", new Parameter(parentIds));
  }
View Full Code Here

    return find("from Category where parentIds like :p1", new Parameter(parentIds));
  }

  public List<Category> findByModule(String module){
    return find("from Category where delFlag=:p1 and (module='' or module=:p2) order by site.id, sort",
        new Parameter(Category.DEL_FLAG_NORMAL, module));
  }
View Full Code Here

TOP

Related Classes of com.thinkgem.jeesite.common.persistence.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.