1 17 18 21 package org.quartz.impl.jdbcjobstore; 22 23 import java.sql.Connection ; 24 25 import org.quartz.JobPersistenceException; 26 import org.quartz.SchedulerConfigException; 27 import org.quartz.spi.ClassLoadHelper; 28 import org.quartz.spi.SchedulerSignaler; 29 30 46 public class JobStoreTX extends JobStoreSupport { 47 48 55 56 public void initialize(ClassLoadHelper loadHelper, 57 SchedulerSignaler signaler) throws SchedulerConfigException { 58 59 super.initialize(loadHelper, signaler); 60 61 getLog().info("JobStoreTX initialized."); 62 } 63 64 70 protected Connection getNonManagedTXConnection() 71 throws JobPersistenceException { 72 return getConnection(); 73 } 74 75 90 protected Object executeInLock( 91 String lockName, 92 TransactionCallback txCallback) throws JobPersistenceException { 93 return executeInNonManagedTXLock(lockName, txCallback); 94 } 95 } 96 | Popular Tags |