Package com.bleujin.framework.db.procedure

Examples of com.bleujin.framework.db.procedure.IUserCommand.addParam()


    sw.start() ;
    for (int i = 0; i < unitCount; i++) {
      IUserCommand cmd = dc.createUserCommand("insert into performance_sample(a, b, c) values(?, ?, ?)") ;
      cmd.addParam(0, unitCount + i) ;
      cmd.addParam(1, "No." + (unitCount + i) + ".....") ;
      cmd.addParam(2, RandomUtil.nextRandomString(RandomUtil.nextRandomInt(10, 50), RandomUtil.NUMBER_CHAR_TYPE)) ;
      cmd.execUpdate() ;
    }
    Debug.debug(sw.getTime()) ;
    assertEquals(true, unitCount * 50 > sw.getTime()) ;
    sw.stop() ;
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.