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

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


 
  public ListPage<SystemParam> list(ListPage<SystemParam> page,SystemParam t ) {
    SearchCondition sc = new SearchCondition();
    if( t != null ){
      if( t.getName() != null )
        sc.like("name",t.getName() );
     
      if( t.getGroup() != null )
        sc.like("group",t.getGroup() );
     
      if( t.getValue() != null )
View Full Code Here


    if( t != null ){
      if( t.getName() != null )
        sc.like("name",t.getName() );
     
      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

     
      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

 
  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

     
      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

     
      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

 
  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

    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

    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

  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

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.