Package org.openbravo.scheduling.quartz
Class OpenbravoDriverDelegate
- java.lang.Object
-
- org.openbravo.scheduling.quartz.OpenbravoDriverDelegate
-
- All Implemented Interfaces:
org.quartz.impl.jdbcjobstore.DriverDelegate
public class OpenbravoDriverDelegate extends Object implements org.quartz.impl.jdbcjobstore.DriverDelegate
Adds a wrapper DriverDelegate, that will wrap OpenbravoPostgreJDBCDelegate or OpenbravoOracleJDBCDelegate depending on the value of bbdd.rdbms in Openbravo.properties
-
-
Constructor Summary
Constructors Constructor Description OpenbravoDriverDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
calendarExists(Connection conn, String calendarName)
boolean
calendarIsReferenced(Connection conn, String calendarName)
void
clearData(Connection conn)
int
countMisfiredTriggersInState(Connection conn, String state1, long ts)
int
deleteAllPausedTriggerGroups(Connection conn)
int
deleteCalendar(Connection conn, String calendarName)
int
deleteFiredTrigger(Connection conn, String entryId)
int
deleteFiredTriggers(Connection conn)
int
deleteFiredTriggers(Connection conn, String instanceId)
int
deleteJobDetail(Connection conn, org.quartz.JobKey jobKey)
int
deletePausedTriggerGroup(Connection conn, String groupName)
int
deletePausedTriggerGroup(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher)
int
deleteSchedulerState(Connection conn, String instanceId)
int
deleteTrigger(Connection conn, org.quartz.TriggerKey triggerKey)
boolean
hasMisfiredTriggersInState(Connection conn, String state1, long ts, int count, List<org.quartz.TriggerKey> resultList)
void
initialize(org.slf4j.Logger logger, String tablePrefix, String schedName, String instanceId, org.quartz.spi.ClassLoadHelper classLoadHelper, boolean useProperties, String initString)
int
insertCalendar(Connection conn, String calendarName, org.quartz.Calendar calendar)
int
insertFiredTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, org.quartz.JobDetail jobDetail)
int
insertJobDetail(Connection conn, org.quartz.JobDetail job)
int
insertPausedTriggerGroup(Connection conn, String groupName)
int
insertSchedulerState(Connection conn, String instanceId, long checkInTime, long interval)
int
insertTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, org.quartz.JobDetail jobDetail)
boolean
isExistingTriggerGroup(Connection conn, String groupName)
boolean
isJobNonConcurrent(Connection conn, org.quartz.JobKey jobKey)
boolean
isTriggerGroupPaused(Connection conn, String groupName)
boolean
jobExists(Connection conn, org.quartz.JobKey jobKey)
org.quartz.Calendar
selectCalendar(Connection conn, String calendarName)
List<String>
selectCalendars(Connection conn)
Set<String>
selectFiredTriggerInstanceNames(Connection conn)
List<org.quartz.impl.jdbcjobstore.FiredTriggerRecord>
selectFiredTriggerRecords(Connection conn, String triggerName, String groupName)
List<org.quartz.impl.jdbcjobstore.FiredTriggerRecord>
selectFiredTriggerRecordsByJob(Connection conn, String jobName, String groupName)
List<org.quartz.impl.jdbcjobstore.FiredTriggerRecord>
selectInstancesFiredTriggerRecords(Connection conn, String instanceName)
org.quartz.JobDetail
selectJobDetail(Connection conn, org.quartz.JobKey jobKey, org.quartz.spi.ClassLoadHelper loadHelper)
int
selectJobExecutionCount(Connection conn, org.quartz.JobKey jobKey)
org.quartz.JobDetail
selectJobForTrigger(Connection conn, org.quartz.spi.ClassLoadHelper loadHelper, org.quartz.TriggerKey triggerKey)
org.quartz.JobDetail
selectJobForTrigger(Connection conn, org.quartz.spi.ClassLoadHelper loadHelper, org.quartz.TriggerKey triggerKey, boolean loadJobClass)
List<String>
selectJobGroups(Connection conn)
Set<org.quartz.JobKey>
selectJobsInGroup(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher)
List<org.quartz.TriggerKey>
selectMisfiredTriggers(Connection conn, long ts)
List<org.quartz.TriggerKey>
selectMisfiredTriggersInGroupInState(Connection conn, String groupName, String state, long ts)
List<org.quartz.TriggerKey>
selectMisfiredTriggersInState(Connection conn, String state, long ts)
long
selectNextFireTime(Connection conn)
Deprecated.int
selectNumCalendars(Connection conn)
int
selectNumJobs(Connection conn)
int
selectNumTriggers(Connection conn)
int
selectNumTriggersForJob(Connection conn, org.quartz.JobKey jobKey)
Set<String>
selectPausedTriggerGroups(Connection conn)
List<org.quartz.impl.jdbcjobstore.SchedulerStateRecord>
selectSchedulerStateRecords(Connection conn, String instanceId)
org.quartz.spi.OperableTrigger
selectTrigger(Connection conn, org.quartz.TriggerKey triggerKey)
org.quartz.utils.Key<?>
selectTriggerForFireTime(Connection conn, long fireTime)
List<String>
selectTriggerGroups(Connection conn)
List<String>
selectTriggerGroups(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher)
org.quartz.JobDataMap
selectTriggerJobDataMap(Connection conn, String triggerName, String groupName)
List<org.quartz.TriggerKey>
selectTriggerKeysForJob(Connection conn, org.quartz.JobKey jobKey)
List<org.quartz.spi.OperableTrigger>
selectTriggersForCalendar(Connection conn, String calName)
List<org.quartz.spi.OperableTrigger>
selectTriggersForJob(Connection conn, org.quartz.JobKey jobKey)
List<org.quartz.spi.OperableTrigger>
selectTriggersForRecoveringJobs(Connection conn)
Set<org.quartz.TriggerKey>
selectTriggersInGroup(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher)
List<org.quartz.TriggerKey>
selectTriggersInState(Connection conn, String state)
String
selectTriggerState(Connection conn, org.quartz.TriggerKey triggerKey)
org.quartz.impl.jdbcjobstore.TriggerStatus
selectTriggerStatus(Connection conn, org.quartz.TriggerKey triggerKey)
List<org.quartz.TriggerKey>
selectTriggerToAcquire(Connection conn, long noLaterThan, long noEarlierThan)
Deprecated.List<org.quartz.TriggerKey>
selectTriggerToAcquire(Connection conn, long noLaterThan, long noEarlierThan, int maxCount)
boolean
triggerExists(Connection conn, org.quartz.TriggerKey triggerKey)
int
updateCalendar(Connection conn, String calendarName, org.quartz.Calendar calendar)
int
updateFiredTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, org.quartz.JobDetail jobDetail)
int
updateJobData(Connection conn, org.quartz.JobDetail job)
int
updateJobDetail(Connection conn, org.quartz.JobDetail job)
int
updateSchedulerState(Connection conn, String instanceId, long checkInTime)
int
updateTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, org.quartz.JobDetail jobDetail)
int
updateTriggerGroupStateFromOtherState(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher, String newState, String oldState)
int
updateTriggerGroupStateFromOtherStates(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher, String newState, String oldState1, String oldState2, String oldState3)
int
updateTriggerState(Connection conn, org.quartz.TriggerKey triggerKey, String state)
int
updateTriggerStateFromOtherState(Connection conn, org.quartz.TriggerKey triggerKey, String newState, String oldState)
int
updateTriggerStateFromOtherStates(Connection conn, org.quartz.TriggerKey triggerKey, String newState, String oldState1, String oldState2, String oldState3)
int
updateTriggerStatesForJob(Connection conn, org.quartz.JobKey jobKey, String state)
int
updateTriggerStatesForJobFromOtherState(Connection conn, org.quartz.JobKey jobKey, String state, String oldState)
int
updateTriggerStatesFromOtherStates(Connection conn, String newState, String oldState1, String oldState2)
-
-
-
Method Detail
-
initialize
public void initialize(org.slf4j.Logger logger, String tablePrefix, String schedName, String instanceId, org.quartz.spi.ClassLoadHelper classLoadHelper, boolean useProperties, String initString) throws org.quartz.impl.jdbcjobstore.NoSuchDelegateException
- Specified by:
initialize
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
org.quartz.impl.jdbcjobstore.NoSuchDelegateException
-
updateTriggerStatesFromOtherStates
public int updateTriggerStatesFromOtherStates(Connection conn, String newState, String oldState1, String oldState2) throws SQLException
- Specified by:
updateTriggerStatesFromOtherStates
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectMisfiredTriggers
public List<org.quartz.TriggerKey> selectMisfiredTriggers(Connection conn, long ts) throws SQLException
- Specified by:
selectMisfiredTriggers
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectMisfiredTriggersInState
public List<org.quartz.TriggerKey> selectMisfiredTriggersInState(Connection conn, String state, long ts) throws SQLException
- Specified by:
selectMisfiredTriggersInState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
hasMisfiredTriggersInState
public boolean hasMisfiredTriggersInState(Connection conn, String state1, long ts, int count, List<org.quartz.TriggerKey> resultList) throws SQLException
- Specified by:
hasMisfiredTriggersInState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
countMisfiredTriggersInState
public int countMisfiredTriggersInState(Connection conn, String state1, long ts) throws SQLException
- Specified by:
countMisfiredTriggersInState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectMisfiredTriggersInGroupInState
public List<org.quartz.TriggerKey> selectMisfiredTriggersInGroupInState(Connection conn, String groupName, String state, long ts) throws SQLException
- Specified by:
selectMisfiredTriggersInGroupInState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectTriggersForRecoveringJobs
public List<org.quartz.spi.OperableTrigger> selectTriggersForRecoveringJobs(Connection conn) throws SQLException, IOException, ClassNotFoundException
- Specified by:
selectTriggersForRecoveringJobs
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
IOException
ClassNotFoundException
-
deleteFiredTriggers
public int deleteFiredTriggers(Connection conn) throws SQLException
- Specified by:
deleteFiredTriggers
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
deleteFiredTriggers
public int deleteFiredTriggers(Connection conn, String instanceId) throws SQLException
- Specified by:
deleteFiredTriggers
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
insertJobDetail
public int insertJobDetail(Connection conn, org.quartz.JobDetail job) throws IOException, SQLException
- Specified by:
insertJobDetail
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
IOException
SQLException
-
updateJobDetail
public int updateJobDetail(Connection conn, org.quartz.JobDetail job) throws IOException, SQLException
- Specified by:
updateJobDetail
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
IOException
SQLException
-
selectTriggerKeysForJob
public List<org.quartz.TriggerKey> selectTriggerKeysForJob(Connection conn, org.quartz.JobKey jobKey) throws SQLException
- Specified by:
selectTriggerKeysForJob
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
deleteJobDetail
public int deleteJobDetail(Connection conn, org.quartz.JobKey jobKey) throws SQLException
- Specified by:
deleteJobDetail
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
isJobNonConcurrent
public boolean isJobNonConcurrent(Connection conn, org.quartz.JobKey jobKey) throws SQLException
- Specified by:
isJobNonConcurrent
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
jobExists
public boolean jobExists(Connection conn, org.quartz.JobKey jobKey) throws SQLException
- Specified by:
jobExists
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
updateJobData
public int updateJobData(Connection conn, org.quartz.JobDetail job) throws IOException, SQLException
- Specified by:
updateJobData
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
IOException
SQLException
-
selectJobDetail
public org.quartz.JobDetail selectJobDetail(Connection conn, org.quartz.JobKey jobKey, org.quartz.spi.ClassLoadHelper loadHelper) throws ClassNotFoundException, IOException, SQLException
- Specified by:
selectJobDetail
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
ClassNotFoundException
IOException
SQLException
-
selectNumJobs
public int selectNumJobs(Connection conn) throws SQLException
- Specified by:
selectNumJobs
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectJobGroups
public List<String> selectJobGroups(Connection conn) throws SQLException
- Specified by:
selectJobGroups
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectJobsInGroup
public Set<org.quartz.JobKey> selectJobsInGroup(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.JobKey> matcher) throws SQLException
- Specified by:
selectJobsInGroup
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
insertTrigger
public int insertTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, org.quartz.JobDetail jobDetail) throws SQLException, IOException
- Specified by:
insertTrigger
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
IOException
-
updateTrigger
public int updateTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, org.quartz.JobDetail jobDetail) throws SQLException, IOException
- Specified by:
updateTrigger
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
IOException
-
triggerExists
public boolean triggerExists(Connection conn, org.quartz.TriggerKey triggerKey) throws SQLException
- Specified by:
triggerExists
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
updateTriggerState
public int updateTriggerState(Connection conn, org.quartz.TriggerKey triggerKey, String state) throws SQLException
- Specified by:
updateTriggerState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
updateTriggerStateFromOtherState
public int updateTriggerStateFromOtherState(Connection conn, org.quartz.TriggerKey triggerKey, String newState, String oldState) throws SQLException
- Specified by:
updateTriggerStateFromOtherState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
updateTriggerStateFromOtherStates
public int updateTriggerStateFromOtherStates(Connection conn, org.quartz.TriggerKey triggerKey, String newState, String oldState1, String oldState2, String oldState3) throws SQLException
- Specified by:
updateTriggerStateFromOtherStates
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
updateTriggerGroupStateFromOtherStates
public int updateTriggerGroupStateFromOtherStates(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher, String newState, String oldState1, String oldState2, String oldState3) throws SQLException
- Specified by:
updateTriggerGroupStateFromOtherStates
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
updateTriggerGroupStateFromOtherState
public int updateTriggerGroupStateFromOtherState(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher, String newState, String oldState) throws SQLException
- Specified by:
updateTriggerGroupStateFromOtherState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
updateTriggerStatesForJob
public int updateTriggerStatesForJob(Connection conn, org.quartz.JobKey jobKey, String state) throws SQLException
- Specified by:
updateTriggerStatesForJob
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
updateTriggerStatesForJobFromOtherState
public int updateTriggerStatesForJobFromOtherState(Connection conn, org.quartz.JobKey jobKey, String state, String oldState) throws SQLException
- Specified by:
updateTriggerStatesForJobFromOtherState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
deleteTrigger
public int deleteTrigger(Connection conn, org.quartz.TriggerKey triggerKey) throws SQLException
- Specified by:
deleteTrigger
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectNumTriggersForJob
public int selectNumTriggersForJob(Connection conn, org.quartz.JobKey jobKey) throws SQLException
- Specified by:
selectNumTriggersForJob
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectJobForTrigger
public org.quartz.JobDetail selectJobForTrigger(Connection conn, org.quartz.spi.ClassLoadHelper loadHelper, org.quartz.TriggerKey triggerKey) throws ClassNotFoundException, SQLException
- Specified by:
selectJobForTrigger
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
ClassNotFoundException
SQLException
-
selectJobForTrigger
public org.quartz.JobDetail selectJobForTrigger(Connection conn, org.quartz.spi.ClassLoadHelper loadHelper, org.quartz.TriggerKey triggerKey, boolean loadJobClass) throws ClassNotFoundException, SQLException
- Specified by:
selectJobForTrigger
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
ClassNotFoundException
SQLException
-
selectTriggersForJob
public List<org.quartz.spi.OperableTrigger> selectTriggersForJob(Connection conn, org.quartz.JobKey jobKey) throws SQLException, ClassNotFoundException, IOException, org.quartz.JobPersistenceException
- Specified by:
selectTriggersForJob
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
ClassNotFoundException
IOException
org.quartz.JobPersistenceException
-
selectTriggersForCalendar
public List<org.quartz.spi.OperableTrigger> selectTriggersForCalendar(Connection conn, String calName) throws SQLException, ClassNotFoundException, IOException, org.quartz.JobPersistenceException
- Specified by:
selectTriggersForCalendar
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
ClassNotFoundException
IOException
org.quartz.JobPersistenceException
-
selectTrigger
public org.quartz.spi.OperableTrigger selectTrigger(Connection conn, org.quartz.TriggerKey triggerKey) throws SQLException, ClassNotFoundException, IOException, org.quartz.JobPersistenceException
- Specified by:
selectTrigger
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
ClassNotFoundException
IOException
org.quartz.JobPersistenceException
-
selectTriggerJobDataMap
public org.quartz.JobDataMap selectTriggerJobDataMap(Connection conn, String triggerName, String groupName) throws SQLException, ClassNotFoundException, IOException
- Specified by:
selectTriggerJobDataMap
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
ClassNotFoundException
IOException
-
selectTriggerState
public String selectTriggerState(Connection conn, org.quartz.TriggerKey triggerKey) throws SQLException
- Specified by:
selectTriggerState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectTriggerStatus
public org.quartz.impl.jdbcjobstore.TriggerStatus selectTriggerStatus(Connection conn, org.quartz.TriggerKey triggerKey) throws SQLException
- Specified by:
selectTriggerStatus
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectNumTriggers
public int selectNumTriggers(Connection conn) throws SQLException
- Specified by:
selectNumTriggers
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectTriggerGroups
public List<String> selectTriggerGroups(Connection conn) throws SQLException
- Specified by:
selectTriggerGroups
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectTriggerGroups
public List<String> selectTriggerGroups(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) throws SQLException
- Specified by:
selectTriggerGroups
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectTriggersInGroup
public Set<org.quartz.TriggerKey> selectTriggersInGroup(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) throws SQLException
- Specified by:
selectTriggersInGroup
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectTriggersInState
public List<org.quartz.TriggerKey> selectTriggersInState(Connection conn, String state) throws SQLException
- Specified by:
selectTriggersInState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
insertPausedTriggerGroup
public int insertPausedTriggerGroup(Connection conn, String groupName) throws SQLException
- Specified by:
insertPausedTriggerGroup
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
deletePausedTriggerGroup
public int deletePausedTriggerGroup(Connection conn, String groupName) throws SQLException
- Specified by:
deletePausedTriggerGroup
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
deletePausedTriggerGroup
public int deletePausedTriggerGroup(Connection conn, org.quartz.impl.matchers.GroupMatcher<org.quartz.TriggerKey> matcher) throws SQLException
- Specified by:
deletePausedTriggerGroup
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
deleteAllPausedTriggerGroups
public int deleteAllPausedTriggerGroups(Connection conn) throws SQLException
- Specified by:
deleteAllPausedTriggerGroups
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
isTriggerGroupPaused
public boolean isTriggerGroupPaused(Connection conn, String groupName) throws SQLException
- Specified by:
isTriggerGroupPaused
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectPausedTriggerGroups
public Set<String> selectPausedTriggerGroups(Connection conn) throws SQLException
- Specified by:
selectPausedTriggerGroups
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
isExistingTriggerGroup
public boolean isExistingTriggerGroup(Connection conn, String groupName) throws SQLException
- Specified by:
isExistingTriggerGroup
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
insertCalendar
public int insertCalendar(Connection conn, String calendarName, org.quartz.Calendar calendar) throws IOException, SQLException
- Specified by:
insertCalendar
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
IOException
SQLException
-
updateCalendar
public int updateCalendar(Connection conn, String calendarName, org.quartz.Calendar calendar) throws IOException, SQLException
- Specified by:
updateCalendar
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
IOException
SQLException
-
calendarExists
public boolean calendarExists(Connection conn, String calendarName) throws SQLException
- Specified by:
calendarExists
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectCalendar
public org.quartz.Calendar selectCalendar(Connection conn, String calendarName) throws ClassNotFoundException, IOException, SQLException
- Specified by:
selectCalendar
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
ClassNotFoundException
IOException
SQLException
-
calendarIsReferenced
public boolean calendarIsReferenced(Connection conn, String calendarName) throws SQLException
- Specified by:
calendarIsReferenced
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
deleteCalendar
public int deleteCalendar(Connection conn, String calendarName) throws SQLException
- Specified by:
deleteCalendar
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectNumCalendars
public int selectNumCalendars(Connection conn) throws SQLException
- Specified by:
selectNumCalendars
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectCalendars
public List<String> selectCalendars(Connection conn) throws SQLException
- Specified by:
selectCalendars
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectNextFireTime
@Deprecated public long selectNextFireTime(Connection conn) throws SQLException
Deprecated.- Specified by:
selectNextFireTime
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectTriggerForFireTime
public org.quartz.utils.Key<?> selectTriggerForFireTime(Connection conn, long fireTime) throws SQLException
- Specified by:
selectTriggerForFireTime
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectTriggerToAcquire
@Deprecated public List<org.quartz.TriggerKey> selectTriggerToAcquire(Connection conn, long noLaterThan, long noEarlierThan) throws SQLException
Deprecated.- Specified by:
selectTriggerToAcquire
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectTriggerToAcquire
public List<org.quartz.TriggerKey> selectTriggerToAcquire(Connection conn, long noLaterThan, long noEarlierThan, int maxCount) throws SQLException
- Specified by:
selectTriggerToAcquire
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
insertFiredTrigger
public int insertFiredTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, org.quartz.JobDetail jobDetail) throws SQLException
- Specified by:
insertFiredTrigger
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
updateFiredTrigger
public int updateFiredTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, org.quartz.JobDetail jobDetail) throws SQLException
- Specified by:
updateFiredTrigger
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectFiredTriggerRecords
public List<org.quartz.impl.jdbcjobstore.FiredTriggerRecord> selectFiredTriggerRecords(Connection conn, String triggerName, String groupName) throws SQLException
- Specified by:
selectFiredTriggerRecords
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectFiredTriggerRecordsByJob
public List<org.quartz.impl.jdbcjobstore.FiredTriggerRecord> selectFiredTriggerRecordsByJob(Connection conn, String jobName, String groupName) throws SQLException
- Specified by:
selectFiredTriggerRecordsByJob
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectInstancesFiredTriggerRecords
public List<org.quartz.impl.jdbcjobstore.FiredTriggerRecord> selectInstancesFiredTriggerRecords(Connection conn, String instanceName) throws SQLException
- Specified by:
selectInstancesFiredTriggerRecords
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectFiredTriggerInstanceNames
public Set<String> selectFiredTriggerInstanceNames(Connection conn) throws SQLException
- Specified by:
selectFiredTriggerInstanceNames
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
deleteFiredTrigger
public int deleteFiredTrigger(Connection conn, String entryId) throws SQLException
- Specified by:
deleteFiredTrigger
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectJobExecutionCount
public int selectJobExecutionCount(Connection conn, org.quartz.JobKey jobKey) throws SQLException
- Specified by:
selectJobExecutionCount
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
insertSchedulerState
public int insertSchedulerState(Connection conn, String instanceId, long checkInTime, long interval) throws SQLException
- Specified by:
insertSchedulerState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
deleteSchedulerState
public int deleteSchedulerState(Connection conn, String instanceId) throws SQLException
- Specified by:
deleteSchedulerState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
updateSchedulerState
public int updateSchedulerState(Connection conn, String instanceId, long checkInTime) throws SQLException
- Specified by:
updateSchedulerState
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
selectSchedulerStateRecords
public List<org.quartz.impl.jdbcjobstore.SchedulerStateRecord> selectSchedulerStateRecords(Connection conn, String instanceId) throws SQLException
- Specified by:
selectSchedulerStateRecords
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
clearData
public void clearData(Connection conn) throws SQLException
- Specified by:
clearData
in interfaceorg.quartz.impl.jdbcjobstore.DriverDelegate
- Throws:
SQLException
-
-