Package rife.scheduler.taskmanagers
Class DatabaseTasks
java.lang.Object
rife.database.DbQueryManager
rife.scheduler.taskmanagers.DatabaseTasks
- All Implemented Interfaces:
Cloneable
,TaskManager
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
activateTask_
(Update activateTask, int id) protected int
addTask_
(SequenceValue getTaskId, Insert insertTask, DbPreparedStatementHandler handler, Task task) protected boolean
concludeTask_
(Task task) protected boolean
deactivateTask_
(Update deactivateTask, int id) protected Collection<Task>
getAllTasks_
(Select getAllTasks, DatabaseTasks.ProcessTask processTask) protected Collection<Task>
getScheduledTasks_
(Select getScheduledTasks, DatabaseTasks.ProcessTask processTask) Retrieves the scheduler of this task manager.protected Task
getTask_
(Select getTask, DatabaseTasks.ProcessTask processTask, int id) protected Collection<Task>
getTasksToProcess_
(Select getTasksToProcess, DatabaseTasks.ProcessTask processTask) abstract boolean
install()
protected boolean
install_
(CreateSequence createSequenceTask, CreateTable createTableTask) abstract boolean
remove()
protected boolean
remove_
(DropSequence dropSequenceTask, DropTable dropTableTask) protected boolean
removeTask_
(Delete removeTask, int id) protected boolean
rescheduleTask_
(Task task, long newPlanned, Frequency frequency) void
setScheduler
(Scheduler scheduler) Sets the scheduler that uses this task manager.protected boolean
updateTask_
(Update updateTask, DbPreparedStatementHandler handler, Task task) Methods inherited from class rife.database.DbQueryManager
clone, executeFetchAll, executeFetchAll, executeFetchAll, executeFetchAll, executeFetchAllBeans, executeFetchAllBeans, executeFetchFirst, executeFetchFirst, executeFetchFirst, executeFetchFirst, executeFetchFirstBean, executeFetchFirstBean, executeGetFirstBoolean, executeGetFirstBoolean, executeGetFirstByte, executeGetFirstByte, executeGetFirstBytes, executeGetFirstBytes, executeGetFirstDate, executeGetFirstDate, executeGetFirstDate, executeGetFirstDate, executeGetFirstDouble, executeGetFirstDouble, executeGetFirstFloat, executeGetFirstFloat, executeGetFirstInt, executeGetFirstInt, executeGetFirstLong, executeGetFirstLong, executeGetFirstShort, executeGetFirstShort, executeGetFirstString, executeGetFirstString, executeGetFirstTime, executeGetFirstTime, executeGetFirstTime, executeGetFirstTime, executeGetFirstTimestamp, executeGetFirstTimestamp, executeGetFirstTimestamp, executeGetFirstTimestamp, executeHasResultRows, executeHasResultRows, executeQuery, executeQuery, executeResultQuery, executeUpdate, executeUpdate, executeUpdate, executeUseFirstAsciiStream, executeUseFirstAsciiStream, executeUseFirstBinaryStream, executeUseFirstBinaryStream, executeUseFirstCharacterStream, executeUseFirstCharacterStream, fetch, fetch, fetch, fetchAll, fetchAll, getConnection, getDatasource, inTransaction, inTransaction, reserveConnection
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface rife.scheduler.TaskManager
activateTask, addTask, concludeTask, deactivateTask, getAllTasks, getScheduledTasks, getTask, getTasksToProcess, removeTask, rescheduleTask, updateTask
-
Constructor Details
-
DatabaseTasks
-
-
Method Details
-
setScheduler
Description copied from interface:TaskManager
Sets the scheduler that uses this task manager.- Specified by:
setScheduler
in interfaceTaskManager
- Parameters:
scheduler
- this task manager's scheduler
-
getScheduler
Description copied from interface:TaskManager
Retrieves the scheduler of this task manager.- Specified by:
getScheduler
in interfaceTaskManager
- Returns:
- this task manager's scheduler; or
null
if the scheduler hasn't been set
-
install
- Throws:
TaskManagerException
-
remove
- Throws:
TaskManagerException
-
install_
protected boolean install_(CreateSequence createSequenceTask, CreateTable createTableTask) throws TaskManagerException - Throws:
TaskManagerException
-
remove_
protected boolean remove_(DropSequence dropSequenceTask, DropTable dropTableTask) throws TaskManagerException - Throws:
TaskManagerException
-
addTask_
protected int addTask_(SequenceValue getTaskId, Insert insertTask, DbPreparedStatementHandler handler, Task task) throws TaskManagerException - Throws:
TaskManagerException
-
updateTask_
protected boolean updateTask_(Update updateTask, DbPreparedStatementHandler handler, Task task) throws TaskManagerException - Throws:
TaskManagerException
-
getTask_
protected Task getTask_(Select getTask, DatabaseTasks.ProcessTask processTask, int id) throws TaskManagerException - Throws:
TaskManagerException
-
getAllTasks_
protected Collection<Task> getAllTasks_(Select getAllTasks, DatabaseTasks.ProcessTask processTask) throws TaskManagerException - Throws:
TaskManagerException
-
getTasksToProcess_
protected Collection<Task> getTasksToProcess_(Select getTasksToProcess, DatabaseTasks.ProcessTask processTask) throws TaskManagerException - Throws:
TaskManagerException
-
getScheduledTasks_
protected Collection<Task> getScheduledTasks_(Select getScheduledTasks, DatabaseTasks.ProcessTask processTask) throws TaskManagerException - Throws:
TaskManagerException
-
removeTask_
- Throws:
TaskManagerException
-
rescheduleTask_
protected boolean rescheduleTask_(Task task, long newPlanned, Frequency frequency) throws TaskManagerException - Throws:
TaskManagerException
-
concludeTask_
- Throws:
TaskManagerException
-
activateTask_
- Throws:
TaskManagerException
-
deactivateTask_
- Throws:
TaskManagerException
-