| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.impl.jdbcjobstore.JobStoreSupport
org.quartz.impl.jdbcjobstore.JobStoreCMT
public class JobStoreCMT
 JobStoreCMT is meant to be used in an application-server
 environment that provides container-managed-transactions. No commit /
 rollback will be1 handled by this class.
 
 If you need commit / rollback, use 
 instead.
 JobStoreTX
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class org.quartz.impl.jdbcjobstore.JobStoreSupport | 
|---|
JobStoreSupport.RecoverMisfiredJobsResult, JobStoreSupport.TransactionCallback, JobStoreSupport.VoidTransactionCallback | 
| Field Summary | |
|---|---|
protected  boolean | 
dontSetNonManagedTXConnectionAutoCommitFalse
 | 
protected  java.lang.String | 
nonManagedTxDsName
 | 
protected  boolean | 
setTxIsolationLevelReadCommitted
 | 
| Fields inherited from class org.quartz.impl.jdbcjobstore.JobStoreSupport | 
|---|
calendarCache, delegateClass, delegateClassName, delegateInitString, dsName, firstCheckIn, instanceId, instanceName, lastCheckin, LOCK_CALENDAR_ACCESS, LOCK_JOB_ACCESS, LOCK_MISFIRE_ACCESS, LOCK_STATE_ACCESS, LOCK_TRIGGER_ACCESS, maxToRecoverAtATime, sigChangeForTxCompletion, tablePrefix, useProperties | 
| Constructor Summary | |
|---|---|
JobStoreCMT()
 | 
|
| Method Summary | |
|---|---|
protected  java.lang.Object | 
executeInLock(java.lang.String lockName,
              JobStoreSupport.TransactionCallback txCallback)
Execute the given callback having optionally acquired the given lock.  | 
protected  java.sql.Connection | 
getNonManagedTXConnection()
 | 
 java.lang.String | 
getNonManagedTXDataSource()
Get the name of the DataSource that should be used for
 performing database functions. | 
 void | 
initialize(ClassLoadHelper loadHelper,
           SchedulerSignaler signaler)
Called by the QuartzScheduler before the JobStore is
 used, in order to give it a chance to initialize. | 
 boolean | 
isDontSetNonManagedTXConnectionAutoCommitFalse()
 | 
 boolean | 
isTxIsolationLevelReadCommitted()
 | 
 void | 
setDontSetNonManagedTXConnectionAutoCommitFalse(boolean b)
Don't call set autocommit(false) on connections obtained from the DataSource.  | 
 void | 
setNonManagedTXDataSource(java.lang.String nonManagedTxDsName)
Set the name of the DataSource that should be used for
 performing database functions. | 
 void | 
setTxIsolationLevelReadCommitted(boolean b)
Set the transaction isolation level of DB connections to sequential.  | 
 void | 
shutdown()
Called by the QuartzScheduler to inform the JobStore that
 it should free up all of it's resources because the scheduler is
 shutting down. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected java.lang.String nonManagedTxDsName
protected boolean dontSetNonManagedTXConnectionAutoCommitFalse
protected boolean setTxIsolationLevelReadCommitted
| Constructor Detail | 
|---|
public JobStoreCMT()
| Method Detail | 
|---|
public void setNonManagedTXDataSource(java.lang.String nonManagedTxDsName)
 Set the name of the DataSource that should be used for
 performing database functions.
 
public java.lang.String getNonManagedTXDataSource()
 Get the name of the DataSource that should be used for
 performing database functions.
 
public boolean isDontSetNonManagedTXConnectionAutoCommitFalse()
public void setDontSetNonManagedTXConnectionAutoCommitFalse(boolean b)
b - public boolean isTxIsolationLevelReadCommitted()
public void setTxIsolationLevelReadCommitted(boolean b)
b - 
public void initialize(ClassLoadHelper loadHelper,
                       SchedulerSignaler signaler)
                throws SchedulerConfigException
JobStoreSupport
 Called by the QuartzScheduler before the JobStore is
 used, in order to give it a chance to initialize.
 
initialize in interface JobStoreinitialize in class JobStoreSupportSchedulerConfigExceptionpublic void shutdown()
JobStoreSupport
 Called by the QuartzScheduler to inform the JobStore that
 it should free up all of it's resources because the scheduler is
 shutting down.
 
shutdown in interface JobStoreshutdown in class JobStoreSupport
protected java.sql.Connection getNonManagedTXConnection()
                                                 throws JobPersistenceException
getNonManagedTXConnection in class JobStoreSupportJobPersistenceException
protected java.lang.Object executeInLock(java.lang.String lockName,
                                         JobStoreSupport.TransactionCallback txCallback)
                                  throws JobPersistenceException
executeInLock in class JobStoreSupportlockName - The name of the lock to acquire, for example 
 "TRIGGER_ACCESS".  If null, then no lock is acquired, but the
 txCallback is still executed in a transaction.
JobPersistenceExceptionJobStoreSupport.executeInNonManagedTXLock(String, TransactionCallback), 
JobStoreSupport.executeInLock(String, TransactionCallback), 
JobStoreSupport.getNonManagedTXConnection(), 
JobStoreSupport.getConnection()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||