Package com.bleujin.framework.db

Examples of com.bleujin.framework.db.Page


  public Row firstRow() {
    return ExtendTransformer.fetchFirstToRow(this) ;
    }

  public Rows nextPageRows() throws SQLException{
    Page nextPage = query.getPage().getNextPage() ;
    query.setPage(nextPage) ;
    return query.execQuery() ;
  }
View Full Code Here


  public Row firstRow() {
    return ExtendTransformer.fetchFirstToRow(this) ;
    }

  public Rows nextPageRows() throws SQLException{
    Page nextPage = query.getPage().getNextPage() ;
    query.setPage(nextPage) ;
    return query.execQuery() ;
  }
View Full Code Here

   
    // command type
    assertEquals(IQueryable.QUERY_COMMAND, cmd.getCommandType());
   
    // page
    Page page = cmd.getPage() ;
    assertEquals(10, page.getListNum()) ;
    assertEquals(2, page.getPageNo()) ;

    // param
    assertEquals("10", cmd.getParam("no1").toString()) ;
    assertEquals(1, cmd.getParams().size()) ;
  }
View Full Code Here

   
    // command type
    assertEquals(IQueryable.QUERY_COMMAND, cmd.getCommandType());
   
    // page
    Page page = cmd.getPage() ;
    assertEquals(5, page.getListNum()) ;
    assertEquals(1, page.getPageNo()) ;
   
    // param
    assertEquals(0, cmd.getParams().size()) ;
   
    JSONObject result = cmd.execute() ;
View Full Code Here

import com.bleujin.framework.util.Debug;

public class TestPage extends DBTestCase{

  public void testMaxCount() throws Exception {
    Page ten = Page.create(10, 1) ;
    assertEquals(101, ten.getMaxCount()) ;

    assertEquals(100001, Page.ALL.getMaxCount()) ;
  }
View Full Code Here

      assertTrue(e.getCause() instanceof SQLException) ;
    }
  }
 
  public void testPageCommon() throws Exception {
    Page page = Page.create(10, 1) ;
    assertEquals(0, page.getStartLoc()) ;
  }
View Full Code Here

TOP

Related Classes of com.bleujin.framework.db.Page

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.