public class NotificationManager extends BaseTable
Field | Type | Description |
---|---|---|
ownerid | BIGINT | Reference:jobs.id |
ordinal | BIGINT | |
notificationname | VARCHAR(32) | |
connectiondesc | VARCHAR(255) | |
connectionspec | LONGTEXT |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
connectionDescriptionField |
static java.lang.String |
connectionSpecField |
static java.lang.String |
notificationNameField |
static java.lang.String |
ordinalField |
static java.lang.String |
ownerIDField |
dbInterface, tableName
Constructor and Description |
---|
NotificationManager(IThreadContext threadContext,
IDBInterface database)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
buildNotificationQueryClause(java.lang.StringBuilder query,
java.util.ArrayList params,
java.lang.String parentIDField,
java.util.List<java.lang.String> connectionNames)
Build a query clause matching a set of notification connection names.
|
boolean |
compareRows(java.lang.Long ownerID,
IJobDescription job)
Compare rows in job description with what's currently in the database.
|
void |
deinstall()
Uninstall.
|
void |
deleteRows(java.lang.Long ownerID)
Delete rows.
|
java.lang.String[] |
getNotificationConnectionNames(java.lang.Long ownerID)
Get all the notification connection names for a job.
|
void |
getRows(java.util.Map<java.lang.Long,JobDescription> returnValues,
java.lang.String ownerIDList,
java.util.ArrayList ownerIDParams)
Fill in a set of notifications corresponding to a set of owner id's.
|
void |
install(java.lang.String ownerTable,
java.lang.String owningTablePrimaryKey,
java.lang.String notificationTableName,
java.lang.String notificationTableNameField)
Install or upgrade.
|
void |
writeRows(java.lang.Long ownerID,
IJobDescription job)
Write a pipeline 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, sleepFor
public 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 notificationNameField
public static final java.lang.String connectionDescriptionField
public static final java.lang.String connectionSpecField
public NotificationManager(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
threadContext
- is the thread context.database
- is the database instance.ManifoldCFException
public void install(java.lang.String ownerTable, java.lang.String owningTablePrimaryKey, java.lang.String notificationTableName, java.lang.String notificationTableNameField) throws ManifoldCFException
ownerTable
- is the name of the table that owns this one.owningTablePrimaryKey
- is the primary key of the owning table.ManifoldCFException
public void deinstall() throws ManifoldCFException
ManifoldCFException
public void buildNotificationQueryClause(java.lang.StringBuilder query, java.util.ArrayList params, java.lang.String parentIDField, java.util.List<java.lang.String> connectionNames)
public java.lang.String[] getNotificationConnectionNames(java.lang.Long ownerID) throws ManifoldCFException
ownerID
- is the job ID.ManifoldCFException
public 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.ManifoldCFException
public boolean compareRows(java.lang.Long ownerID, IJobDescription job) throws ManifoldCFException
ownerID
- is the owning identifier.job
- is a job description.ManifoldCFException
public void writeRows(java.lang.Long ownerID, IJobDescription job) throws ManifoldCFException
ownerID
- is the owning identifier.job
- is the job description that is the source of the pipeline.ManifoldCFException
public void deleteRows(java.lang.Long ownerID) throws ManifoldCFException
ownerID
- is the owner whose rows to delete.ManifoldCFException