1 24 25 package org.objectweb.cjdbc.scenario.raidb1.recoverylog; 26 27 import org.objectweb.cjdbc.scenario.templates.Raidb1RecoveryTemplate; 28 import org.objectweb.cjdbc.scenario.tools.testlet.AbstractTestLet; 29 import org.objectweb.cjdbc.scenario.tools.testlet.PreparedStatementRecoveryTestLet; 30 31 37 public class CompiledPreparedStatementAndRecoveryScenario extends 38 Raidb1RecoveryTemplate 39 { 40 41 static final String NUMBER_OF_UPDATES = "50"; 42 43 48 public void testSetAndGetOnOptimized() throws Exception 49 { 50 PreparedStatementRecoveryTestLet let = new PreparedStatementRecoveryTestLet( 51 mainVdb); 52 let.set(AbstractTestLet.USE_OPTIMIZED_STATEMENT, Boolean.TRUE); 53 let.set(AbstractTestLet.NUMBER_OF_UPDATES, NUMBER_OF_UPDATES); 54 let.execute(); 55 } 56 57 62 public void testSetAndGetNonOptimized() throws Exception 63 { 64 PreparedStatementRecoveryTestLet let = new PreparedStatementRecoveryTestLet( 65 mainVdb); 66 let.set(AbstractTestLet.USE_OPTIMIZED_STATEMENT, Boolean.FALSE); 67 let.set(AbstractTestLet.NUMBER_OF_UPDATES, NUMBER_OF_UPDATES); 68 let.execute(); 69 } 70 71 } | Popular Tags |