Package com.google.code.lightssh.common.dao

Examples of com.google.code.lightssh.common.dao.SearchCondition.equal()


 
  public ListPage<EmailContent> list(ListPage<EmailContent> page,EmailContent t ) {
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( t.getType() != null)
        sc.equal("type",t.getType() );
     
      if( t.getStatus() != null )
        sc.equal("status",t.getStatus() );
     
      if( !StringUtils.isEmpty(t.getAddressee()) )
View Full Code Here


    if( t != null ){
      if( t.getType() != null)
        sc.equal("type",t.getType() );
     
      if( t.getStatus() != null )
        sc.equal("status",t.getStatus() );
     
      if( !StringUtils.isEmpty(t.getAddressee()) )
        sc.like("addressee",t.getAddressee() );
       
    }
View Full Code Here

 
  public ListPage<Publish> list(ListPage<Publish> page ,Publish t){
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( t.getUser() != null && t.getUser().getId() != null ){
        sc.equal("user.id", t.getUser().getId() );
      }
     
      if( t.getPeriod() != null ){
        Calendar cal = Calendar.getInstance();
        Date start = t.getPeriod().getStart();
View Full Code Here

        if( StringUtils.isNotEmpty( msg.getTitle() ) ){
          sc.like("message.title", msg.getTitle().trim() );
        }
       
        if( StringUtils.isNotEmpty( msg.getCreator() ) ){
          sc.equal("message.creator", msg.getCreator().trim() );
        }
      }
    }
   
    return dao.list(page, sc);
View Full Code Here

    if( StringUtils.isEmpty(colTabId) )
      return null;
   
    SearchCondition sc = new SearchCondition();
    ListPage<ColumnItem> page = new ListPage<ColumnItem>(Integer.MAX_VALUE);
    sc.equal("table.id", colTabId.trim() );
    page = columnItemDao.list(page,sc);
   
    return page.getList();
  }
View Full Code Here

        sc.like("name", role.getName());
      }
     
    }
    //sc.in("status",Role.Status.NEW.name(),Role.Status.AUDIT_REJECT.name());
    sc.equal("status",AuditStatus.NEW);
   
    return getRoleDao().list(page,sc);
  }

View Full Code Here

      page = new ListPage<LoginFailure>( );
   
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( !StringUtils.isEmpty(t.getSessionId()) ){
        sc.equal("sessionId",t.getSessionId().trim());
      }
    }
   
    return dao.list(page,sc);
  }
View Full Code Here

        type == null || StringUtils.isEmpty(subValue) )
      return null;
   
    ListPage<Subscription> page = new ListPage<Subscription>(1);
    SearchCondition sc = new SearchCondition();
    sc.equal("catalog.id", catalogId )
      .equal("recType", type )
      .equal("recValue", subValue );
   
    page = dao.list(page, sc);
   
View Full Code Here

  public ListPage<RoleChange> listTodoAudit(ListPage<RoleChange> page,RoleChange t ){
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( t.getRole() != null ){
        if( !StringUtils.isEmpty(t.getRole().getId()) ){
          sc.equal("role.id",t.getRole().getId().trim());
        }
        if( !StringUtils.isEmpty(t.getRole().getName()) ){
          sc.like("role.name",t.getRole().getName().trim());
        }
      }
View Full Code Here

  public ListPage<TaskLog> list(ListPage<TaskLog> page,TaskLog t){
    SearchCondition sc = new SearchCondition();
   
    if( t != null ){
      if( StringUtils.isNotEmpty(t.getActProcInstId()) ){
        sc.equal("actProcInstId", t.getActProcInstId().trim() );
      }
    }
   
    return dao.list(page, sc);
  }
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.