Package com.bleujin.framework.db.procedure

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


        command.addParam(0, new int[]{1,2,3}); ;
        command.addParamSize(1, "abcdefg", 3); ;
        command.addClobSize(2, getLongString(), 3);
        command.addBlobSize(3, "c:/temp/article.csv", 3);

        int result = command.execUpdate() ;
    }

    private String getLongString(){
        StringBuffer buffer = new StringBuffer() ;
        for (int i = 0, last = 500 ; i < last; i++) {
View Full Code Here


      for (int i = 0; i < unitCount; i++) {
        cmd.addBatchParam(0, k * unitCount + i) ;
        cmd.addBatchParam(1, "No." + (k * unitCount + i) + ".....") ;
        cmd.addBatchParam(2, RandomUtil.nextRandomString(RandomUtil.nextRandomInt(10, 50), RandomUtil.NUMBER_CHAR_TYPE)) ;
      }
      cmd.execUpdate() ;
      cmd.clearParam() ;
      assertEquals(true, unitCount > sw.getTime()) ;
      sw.stop() ;
      sw.reset() ;
      sw.start() ;
View Full Code Here

        // 10000 -> 4.1 sec
        // 100000 -> 33.547 sec
        batch.addBatchParam(0, i + " Batch ..............................................................................................................") ;
      }
      Debug.line() ;
      batch.execUpdate() ;
      batch.clearParam() ;
    }
  }

 
View Full Code Here

        a[j] = j + i * iMax + aMax + 1;
        b[j] = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789:" + j;
      }
      batch.addParam(a).addParam(b);

      batch.execUpdate();
    }
    watch.stop();
    System.out.println("time(ms):" + watch.getTime());
  }

View Full Code Here

      batch.addBatchParam(5, RandomUtil.nextInt()) ;
      batch.addBatchParam(6, RandomUtil.nextRandomString(12, RandomUtil.DOWNCASE_CHAR_TYPE)) ;
      batch.addBatchParam(7, RandomUtil.nextRandomString(10, RandomUtil.DOWNCASE_CHAR_TYPE)) ;
      batch.addBatchParam(8, RandomUtil.nextInt()) ;
    }
    batch.execUpdate() ;
    dc.destroySelf() ;
  }


  public void testProcedureBatch() throws Exception {
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.