Package com.bleujin.framework.db.bean.handlers

Examples of com.bleujin.framework.db.bean.handlers.BeanListHandler


 
  public void testHandleBean() throws Exception {
    IUserCommand cmd = dc.createUserCommand("select * from copy_tblc") ;
    cmd.setPage(Page.TEN) ;
   
    List<TestBean> beans =  (List<TestBean>)(cmd.execQuery().toHandle(new BeanListHandler(TestBean.class))) ;
    assertEquals(10, beans.size()) ;
  }
View Full Code Here


 
  public void testHandleBeanProcedure() throws Exception {
    IUserProcedure cmd = dc.createUserProcedure("common@testBy()") ;
    cmd.setPage(Page.TEN) ;
   
    List<TestBean> beans =  (List<TestBean>)(cmd.execQuery().toHandle(new BeanListHandler(TestBean.class))) ;
    assertEquals(10, beans.size()) ;
  }
View Full Code Here

 
 
  public void testBeanList() throws Exception {
    Rows rows = dc.getRows(query, 10, 1) ;
   
    List<TestBean> results = (List<TestBean>)rows.toHandle(new BeanListHandler(TestBean.class)) ;
    assertEquals(10, results.size()) ;

    TestBean row = results.get(0);
    assertEquals(1, row.getNo1()) ;
    assertEquals("01", row.getNo2()) ;
View Full Code Here


  public void testClassBean() throws Exception {
    Rows rows = dc.getRows("select * from copy_tblc", 10, 1) ;
   
    List<TestBean> list = (List<TestBean>)rows.toHandle(new BeanListHandler(TestBean.class)) ;
    for(TestBean bean : list){
      Debug.debug(bean) ;
    }
  }
View Full Code Here

TOP

Related Classes of com.bleujin.framework.db.bean.handlers.BeanListHandler

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.