1 23 24 package org.objectweb.cjdbc.scenario.tools; 25 26 33 public class GenerateTrace 34 { 35 36 41 public static void main(String [] args) 42 { 43 for (int i = 1; i < 1000000; i++) 44 { 45 System.out.println("00:00:00,000 myDB B " + i); 46 System.out.println("00:00:00,000 myDB W " + i 47 + " INSERT INTO foo VALUES (" + (i * 10) + ")"); 48 System.out.println("00:00:00,000 myDB W " + i 49 + " INSERT INTO foo VALUES (" + (i * 10 + 1) + ")"); 50 System.out.println("00:00:00,000 myDB W " + i 51 + " INSERT INTO foo VALUES (" + (i * 10 + 2) + ")"); 52 System.out.println("00:00:00,000 myDB W " + i 53 + " INSERT INTO foo VALUES (" + (i * 10 + 3) + ")"); 54 System.out.println("00:00:00,000 myDB W " + i 55 + " INSERT INTO foo VALUES (" + (i * 10 + 4) + ")"); 56 System.out.println("00:00:00,000 myDB W " + i 57 + " INSERT INTO foo VALUES (" + (i * 10 + 5) + ")"); 58 System.out.println("00:00:00,000 myDB W " + i 59 + " INSERT INTO foo VALUES (" + (i * 10 + 6) + ")"); 60 System.out.println("00:00:00,000 myDB W " + i 61 + " INSERT INTO foo VALUES (" + (i * 10 + 7) + ")"); 62 System.out.println("00:00:00,000 myDB W " + i 63 + " INSERT INTO foo VALUES (" + (i * 10 + 8) + ")"); 64 System.out.println("00:00:00,000 myDB W " + i 65 + " INSERT INTO foo VALUES (" + (i * 10 + 9) + ")"); 66 System.out.println("00:00:00,000 myDB C " + i); 67 } 68 } 69 } 70 | Popular Tags |