1 package org.prevayler.demos.scalability.prevayler; 2 3 import java.io.File ; 4 5 import org.prevayler.PrevaylerFactory; 6 8 public class PrevaylerQuerySubject extends PrevaylerScalabilitySubject { 9 10 static final String PREVALENCE_BASE = "QueryTest"; 11 12 public PrevaylerQuerySubject() throws java.io.IOException , ClassNotFoundException { 13 if (new File (PREVALENCE_BASE).exists()) PrevalenceTest.delete(PREVALENCE_BASE); 14 prevayler = PrevaylerFactory.createPrevayler(new QuerySystem(), PREVALENCE_BASE); 15 } 16 17 18 public Object createTestConnection() { 19 return new PrevaylerQueryConnection((QuerySystem)prevayler.prevalentSystem()); 20 } 21 } 22 | Popular Tags |