public class ScheduleManager extends BaseTable
| Field | Type | Description |
|---|---|---|
| ownerid | BIGINT | Reference:jobs.id |
| ordinal | BIGINT | |
| dayofweek | VARCHAR(255) | |
| dayofmonth | VARCHAR(255) | |
| monthofyear | VARCHAR(255) | |
| yearlist | VARCHAR(255) | |
| hourofday | VARCHAR(255) | |
| minutesofhour | VARCHAR(255) | |
| timezone | VARCHAR(32) | |
| windowlength | BIGINT | |
| requestminimum | CHAR(1) |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
dayOfMonthField |
static java.lang.String |
dayOfWeekField |
static java.lang.String |
hourOfDayField |
static java.lang.String |
minutesOfHourField |
static java.lang.String |
monthOfYearField |
static java.lang.String |
ordinalField |
static java.lang.String |
ownerIDField |
static java.lang.String |
requestMinimumField |
static java.lang.String |
timezoneField |
static java.lang.String |
windowDurationField |
static java.lang.String |
yearField |
dbInterface, tableName| Constructor and Description |
|---|
ScheduleManager(IThreadContext threadContext,
IDBInterface database)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deinstall()
Uninstall.
|
void |
deleteRows(java.lang.Long ownerID)
Delete rows.
|
static java.lang.String |
enumeratedValueToString(EnumeratedValues values)
Go from enumerated value to string.
|
void |
getRows(java.util.Map<java.lang.Long,JobDescription> returnValues,
java.lang.String ownerIDList,
java.util.ArrayList ownerIDParams)
Fill in a set of schedules corresponding to a set of owner id's.
|
void |
getRowsAlternate(java.util.Map returnValues,
java.util.ArrayList ownerIDParams)
Fill in a set of schedules corresponding to a set of owner id's.
|
void |
install(java.lang.String ownerTable,
java.lang.String owningTablePrimaryKey)
Install or upgrade.
|
int |
maxClauseGetRowsAlternate()
Get the max clauses that can be used with getRowsAlternate.
|
static java.lang.String |
requestMinimumValueToString(boolean requestMinimum) |
static EnumeratedValues |
stringToEnumeratedValue(java.lang.String value)
Go from string to enumerated value.
|
static boolean |
stringToRequestMinimumValue(java.lang.String requestMinimum) |
void |
writeRows(java.lang.Long ownerID,
IJobDescription list)
Write a schedule list into the database.
|
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepForpublic static final java.lang.String _rcsid
public static final java.lang.String ownerIDField
public static final java.lang.String ordinalField
public static final java.lang.String dayOfWeekField
public static final java.lang.String dayOfMonthField
public static final java.lang.String monthOfYearField
public static final java.lang.String yearField
public static final java.lang.String hourOfDayField
public static final java.lang.String minutesOfHourField
public static final java.lang.String timezoneField
public static final java.lang.String windowDurationField
public static final java.lang.String requestMinimumField
public ScheduleManager(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
threadContext - is the thread context.database - is the database instance.ManifoldCFExceptionpublic void install(java.lang.String ownerTable,
java.lang.String owningTablePrimaryKey)
throws ManifoldCFException
ownerTable - is the name of the table that owns this one.owningTablePrimaryKey - is the primary key of the owning table.ManifoldCFExceptionpublic void deinstall()
throws ManifoldCFException
ManifoldCFExceptionpublic void getRows(java.util.Map<java.lang.Long,JobDescription> returnValues, java.lang.String ownerIDList, java.util.ArrayList ownerIDParams) throws ManifoldCFException
returnValues - is a map keyed by ownerID, with value of JobDescription.ownerIDList - is the list of owner id's.ownerIDParams - is the corresponding set of owner id parameters.ManifoldCFExceptionpublic int maxClauseGetRowsAlternate()
public void getRowsAlternate(java.util.Map returnValues,
java.util.ArrayList ownerIDParams)
throws ManifoldCFException
returnValues - is a map keyed by ownerID, with a value that is an ArrayList of ScheduleRecord objects.ownerIDParams - is the corresponding set of owner id parameters.ManifoldCFExceptionpublic void writeRows(java.lang.Long ownerID,
IJobDescription list)
throws ManifoldCFException
ownerID - is the owning identifier.list - is the job description that is the source of the schedule.ManifoldCFExceptionpublic void deleteRows(java.lang.Long ownerID)
throws ManifoldCFException
ownerID - is the owner whose rows to delete.ManifoldCFExceptionpublic static EnumeratedValues stringToEnumeratedValue(java.lang.String value) throws ManifoldCFException
value - is the input.ManifoldCFExceptionpublic static java.lang.String enumeratedValueToString(EnumeratedValues values)
values - is the enumerated value.public static java.lang.String requestMinimumValueToString(boolean requestMinimum)
public static boolean stringToRequestMinimumValue(java.lang.String requestMinimum)
throws ManifoldCFException
ManifoldCFException