public class TaskFactory extends HibernateFactory
Modifier and Type | Field and Description |
---|---|
static int |
NO_MAXIMUM |
Modifier and Type | Method and Description |
---|---|
static Task |
createTask(Org org,
java.lang.String name,
java.lang.Long data)
Creates a new Task object.
|
protected org.apache.log4j.Logger |
getLogger()
Get the Logger for the derived class so log messages show up on the
correct class
|
static java.util.List |
getTaskListByChannel(Org org)
Gets the list of "update errata cache for channel" tasks.
|
static java.util.List<Task> |
getTaskListByNameLike(java.lang.String nameIn)
Lookup a list of Tasks who's name start with passed in param
|
static Task |
lookup(Org org,
java.lang.String name,
java.lang.Long data)
Lookups up a task.
|
static void |
remove(Task taskIn)
Remove a completed Task from the queue.
|
static void |
save(Task taskIn)
Saves the object to the db
|
addConfigurator, blobToByteArray, byteArrayToBlob, closeSession, closeSessionFactory, commitTransaction, createSessionFactory, createSessionFactory, executeCallableMode, executeSelectMode, getBlobContents, getByteArrayContents, getObject, getSession, initialize, inTransaction, isClosed, isInitialized, listObjectsByNamedQuery, listObjectsByNamedQuery, listObjectsByNamedQuery, lockObject, lookupObjectByNamedQuery, lookupObjectByNamedQuery, reload, removeObject, rollbackTransaction, saveObject, saveObject, stringToByteArray
public static final int NO_MAXIMUM
protected org.apache.log4j.Logger getLogger()
getLogger
in class HibernateFactory
public static Task createTask(Org org, java.lang.String name, java.lang.Long data)
org
- The org to which this task will belongname
- A name for the taskdata
- The data for this task (usually corresponds to an object id)public static void save(Task taskIn)
taskIn
- The task to savepublic static void remove(Task taskIn)
taskIn
- to removepublic static Task lookup(Org org, java.lang.String name, java.lang.Long data)
org
- The org containing the taskname
- The name of the taskdata
- The data in the taskpublic static java.util.List getTaskListByChannel(Org org)
org
- The org containing the taskspublic static java.util.List<Task> getTaskListByNameLike(java.lang.String nameIn)
nameIn
- to lookup