Package com.bleujin.framework.db.procedure

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


        command.addParam(0, 1); ;
        command.addParam(1, "��������"); ;
        command.addClob(2, getLongString()); ;
        command.addBlob(3, new FileInputStream("c:/temp/article.csv"));

        command.execUpdate() ;
    }

    public void xtestClobProcedure() throws Exception {
        IUserProcedure upt = dc.createUserProcedure("bleujin@lobTest2(?,?,?,?)") ;
        upt.addParam(0, 1); ;
View Full Code Here


    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.