02/28/2005
 

com.epicentric.task
Class SchedulerManager

java.lang.Object
  |
  +--com.epicentric.task.SchedulerManager

Deprecated. As of version 4.0, to be removed in 8.0 or later. It has been replaced with TaskManager

public class SchedulerManager
extends Object

static factory class for retrieving PersistentScheduler data from the database.


Field Summary
static String databaseName
          Deprecated.  
static boolean DEBUG
          Deprecated.  
static LockSet lockSet
          Deprecated.  
static String NEXT_TASK_ID
          Deprecated.  
 
Constructor Summary
SchedulerManager()
          Deprecated.  
 
Method Summary
static void addTask(Task task)
          Deprecated. Add task, its schedule, and all its subtasks to database.
static void deleteSubTask(Connection dbConnect, SubTask subTask)
          Deprecated. Given a subtask, delete all its parameters and it.
static void deleteTask(Task task)
          Deprecated. Given a task, delete its entire tree from database.
static Connection getDBConnection()
          Deprecated. Get connection using my database name.
static Task getTask(int taskId)
          Deprecated. Build a complete task given its ID.
static void updateTask(Task task)
          Deprecated. Update an existing task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Deprecated. 

databaseName

public static final String databaseName
Deprecated. 

NEXT_TASK_ID

public static final String NEXT_TASK_ID
Deprecated. 

lockSet

public static LockSet lockSet
Deprecated. 
Constructor Detail

SchedulerManager

public SchedulerManager()
Deprecated. 
Method Detail

getDBConnection

public static Connection getDBConnection()
                                  throws SQLException
Deprecated. 
Get connection using my database name.

updateTask

public static void updateTask(Task task)
                       throws SQLException
Deprecated. 
Update an existing task.

addTask

public static void addTask(Task task)
                    throws SQLException
Deprecated. 
Add task, its schedule, and all its subtasks to database.

getTask

public static Task getTask(int taskId)
                    throws SQLException
Deprecated. 
Build a complete task given its ID.
Returns:
task or null if not found.

deleteTask

public static void deleteTask(Task task)
                       throws SQLException
Deprecated. 
Given a task, delete its entire tree from database. Note we do not test whether task has expired, so call this only if you mean it.
Parameters:
task -  

deleteSubTask

public static void deleteSubTask(Connection dbConnect,
                                 SubTask subTask)
                          throws SQLException
Deprecated. 
Given a subtask, delete all its parameters and it. Remove subtask from parent's collection.
Parameters:
subTask -  

02/28/2005
 

Copyright and Trademark Notices