Examples of like()


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

     
      if( t.getGroup() != null )
        sc.like("group",t.getGroup() );
     
      if( t.getValue() != null )
        sc.like("value",t.getValue() );
    }
    return dao.list(page,sc);
  }
 
  /**
 
View Full Code Here

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

 
  public ListPage<Plan> list(ListPage<Plan> page,Plan t ){
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( !StringUtils.isEmpty(t.getId()) )
        sc.like( "id",t.getId() );
     
      if( t.get_pftPeriod() != null ){
        Calendar cal = Calendar.getInstance();
        Date start = t.get_pftPeriod().getStart();
        Date end = t.get_pftPeriod().getEnd();
View Full Code Here

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

     
      if( t.getStatus() != null )
        sc.equal("status",t.getStatus() );
     
      if( !StringUtils.isEmpty(t.getAddressee()) )
        sc.like("addressee",t.getAddressee() );
       
    }
   
    if(page == null )
      page = new ListPage<EmailContent>();
View Full Code Here

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

     
      if( t.getMessage() != null ){
        Message msg = t.getMessage();
       
        if( StringUtils.isNotEmpty( msg.getTitle() ) ){
          sc.like("message.title", msg.getTitle().trim() );
        }
       
        if( StringUtils.isNotEmpty( msg.getCreator() ) ){
          sc.equal("message.creator", msg.getCreator().trim() );
        }
View Full Code Here

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

 
  public ListPage<ColumnTable> list( ListPage<ColumnTable> page, ColumnTable t){
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( StringUtils.isNotEmpty(t.getId()) )
        sc.like("id", t.getId().trim() );
     
      if( StringUtils.isNotEmpty(t.getName()) )
        sc.like("name", t.getName().trim() );
    }
   
View Full Code Here

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

    if( t != null ){
      if( StringUtils.isNotEmpty(t.getId()) )
        sc.like("id", t.getId().trim() );
     
      if( StringUtils.isNotEmpty(t.getName()) )
        sc.like("name", t.getName().trim() );
    }
   
    return super.list(page, sc);
  }
 
View Full Code Here

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

    if( t != null ){
      if( t.getLoginAccountChange() != null ){
        LoginAccount account = t.getLoginAccountChange().getLoginAccount();
        if( account != null ){
          if( !StringUtils.isEmpty(account.getLoginName()) ){
            sc.like("loginAccountChange.loginAccount.loginName", account.getLoginName().trim());
          }
        }
      }
    }
   
View Full Code Here

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

  public ListPage<LoginLog> list(ListPage<LoginLog> page,LoginLog t ) {
    page.addDescending("createdTime");
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( StringUtil.clean(t.getOperator()) != null )
        sc.like("operator",t.getOperator() );
     
      if( StringUtil.clean(t.getIp()) != null )
        sc.like("ip",t.getIp() );
     
      if( t.get_period() != null ){
View Full Code Here

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

   */
  public ListPage<Role> listTodoAudit(ListPage<Role> page,Role role){
    SearchCondition sc = new SearchCondition();
    if( role != null ){
      if( !StringUtils.isEmpty(role.getName()) ){
        sc.like("name", role.getName());
      }
     
    }
    //sc.in("status",Role.Status.NEW.name(),Role.Status.AUDIT_REJECT.name());
    sc.equal("status",AuditStatus.NEW);
View Full Code Here

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

    if( t != null ){
      if( StringUtil.clean(t.getOperator()) != null )
        sc.like("operator",t.getOperator() );
     
      if( StringUtil.clean(t.getIp()) != null )
        sc.like("ip",t.getIp() );
     
      if( t.get_period() != null ){
        Calendar cal = Calendar.getInstance();
        Date start = t.get_period().getStart();
        Date end = t.get_period().getEnd();
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.