DBController dc = DBController.getTestInstance() ;
dc.initSelf() ;
String query = "Types@test(?,?,?,?,?, ?,?,?,?)" ;
UserProcedures upts = dc.createUserProcedures("procedure batch") ;
int max = 1000 ;
for (int i = 0; i < max; i++) {
IUserProcedure upt = dc.createUserProcedure(query) ;
upt.addParam(0, RandomUtil.nextRandomString(25, RandomUtil.DOWNCASE_CHAR_TYPE)) ;
upt.addParam(1, RandomUtil.nextRandomString(10, RandomUtil.DOWNCASE_CHAR_TYPE)) ;
upt.addParam(2, RandomUtil.nextRandomString(10, RandomUtil.DOWNCASE_CHAR_TYPE)) ;
upt.addParam(3, RandomUtil.nextRandomString(20, RandomUtil.DOWNCASE_CHAR_TYPE)) ;
upt.addParam(4, "NORMAL") ;
upt.addParam(5, RandomUtil.nextInt()) ;
upt.addParam(6, RandomUtil.nextRandomString(12, RandomUtil.DOWNCASE_CHAR_TYPE)) ;
upt.addParam(7, RandomUtil.nextRandomString(10, RandomUtil.DOWNCASE_CHAR_TYPE)) ;
upt.addParam(8, RandomUtil.nextInt()) ;
upts.add(upt) ;
}
upts.execUpdate() ;
dc.destroySelf() ;
}