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

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


 
  }
 
  public void testScalar() throws Exception {
    Rows rows = dc.getRows(query, 10, 1) ;
    Object value = rows.toHandle(new ScalarHandler()) ;
   
    assertEquals("1", value.toString()) ;
   
   
    rows = dc.getRows(query, 10, 1) ;
    Object secondValue = rows.toHandle(new ScalarHandler(2)) ;
    assertEquals("01", secondValue) ;
  }
View Full Code Here


  }


  public void xtestInsertBatch() throws Exception {

    Object obj = dc.createUserCommand("select max(a) from test").execQuery().toHandle(new ScalarHandler());
    int aMax = (Integer)obj ;
    System.out.println("current:" + aMax);

    // 1000 * 1000
    StopWatch watch = new StopWatch();
View Full Code Here

TOP

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

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.