Package siena.core.options

Examples of siena.core.options.QueryOptionPage.activate()


      }
      else {
        if(limit != Integer.MAX_VALUE){
          sdbCtx.realPageSize = limit;
          // activates paging (but not pagination)
          pag.activate();
        }else {
          sdbCtx.realPageSize = 0;
        }
      }
    }else {
View Full Code Here


   
    /*if(opt.isActive() && opt.isPaginating()){
      throw new SienaException("Can't change pagination after it has been initialized...");
    }*/
   
    opt.activate();
    opt.pageSize=pageSize;
    opt.pageType = QueryOptionPage.PageType.PAGINATING;
   
    // resets offset to be sure nothing changes the pagination mechanism
    offOpt.offsetType = QueryOptionOffset.OffsetType.PAGINATING;
View Full Code Here

    // sets the pagination
    QueryOptionPage pagOpt = (QueryOptionPage)(options.get(QueryOptionPage.ID));
    //QueryOptionOffset offOpt = (QueryOptionOffset)options.get(QueryOptionOffset.ID);
    //QueryOptionState stateOpt = (QueryOptionState)(options.get(QueryOptionState.ID));
   
    pagOpt.activate();
    pagOpt.pageSize = limit;
    pagOpt.pageType = QueryOptionPage.PageType.MANUAL;
   
    // in stateless mode, we must reset the offset as we don't want it to be stateful
    //if(stateOpt.isStateless() && !offOpt.isManual()){
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.