public class DBEventQueue extends DBObject implements EventMarker
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
DBEventQueue records details of when events were raised
|
static java.lang.String |
DBCLASS_NAME
DBEventQueue records details of when events were raised
|
static java.lang.String |
STATUS_PROCESSED
All actions have been processed
|
static java.lang.String |
STATUS_WAITING_PROCESSING
The actions for this Event have not been processed
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBEventQueue(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
static DBEventQueue |
create(MutableDataSource mds)
Make a new instance of this class.
|
protected void |
extAutoEnterCreate()
Sets the default status to waiting to be processed
|
protected void |
extFixUp()
The extended fix up routine for known problems.
|
protected void |
extPreSaveRecord()
Additional functionality WHILE saving this record to the database.
|
Person |
findEnteredBy(java.lang.String... args)
Entered By.
|
static DBEventQueue |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
java.lang.String |
getBaseKey()
get the base object key
|
DBObject |
getBaseObject()
Returns the associated base object
|
java.lang.String |
getDbObjectKey(java.lang.String... args) |
Person |
getEnteredBy(java.lang.String... args) |
java.util.Date |
getEnterTime(java.lang.String... args) |
DBEvent |
getEvent()
Returns the associated event
|
java.lang.String |
getEventKey()
get the event key
|
int |
getID(java.lang.String... args) |
java.lang.String |
getStatus(java.lang.String... args) |
java.lang.String |
makeKey()
make a key
|
static DBQuery<DBEventQueue> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
static void |
process(MutableDataSource mds,
EventMarker marker)
Process all actions associated with this Event
|
void |
setBaseObject(DBObject base)
set's the base object
|
DBEventQueue |
setDbObjectKey(java.lang.String value,
java.lang.String... args) |
DBEventQueue |
setEnteredBy(com.aspc.dal.dbobj.contact.Person value,
java.lang.String... args) |
DBEventQueue |
setEnterTime(java.util.Date value,
java.lang.String... args) |
DBEventQueue |
setEvent(com.aspc.dal.workflow.DBEvent value,
java.lang.String... args) |
DBEventQueue |
setID(int value,
java.lang.String... args) |
DBEventQueue |
setRowId(long value,
java.lang.String... args) |
DBEventQueue |
setStatus(java.lang.String value,
java.lang.String... args) |
static void |
validateEvent(MutableDataSource mds,
EventMarker marker,
ValidationList list)
Loop through each validation group.
|
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, eventFieldUpdated, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetDerivedValue, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreValidate, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateField, extValidateRecord, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String STATUS_WAITING_PROCESSING
public static final java.lang.String STATUS_PROCESSED
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public DBEventQueue(DBClass def, DataSource dataSource) throws java.lang.Exception
def
- The class of this objectdataSource
- The datasource for this objectjava.lang.Exception
- A serious problem occurred@CheckReturnValue public int getID(java.lang.String... args)
@Nonnull public DBEventQueue setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDbObjectKey(java.lang.String... args)
@Nonnull public DBEventQueue setDbObjectKey(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public java.util.Date getEnterTime(java.lang.String... args)
@Nonnull public DBEventQueue setEnterTime(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Person getEnteredBy(java.lang.String... args)
@CheckReturnValue @Nonnull public final Person findEnteredBy(java.lang.String... args) throws NotFoundException
Person
(Integer,
Searchable)args
- the optional argumentsNotFoundException
- Person was not found@Nonnull public DBEventQueue setEnteredBy(com.aspc.dal.dbobj.contact.Person value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBEventQueue setEvent(com.aspc.dal.workflow.DBEvent value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public DBEventQueue setRowId(long value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getStatus(java.lang.String... args)
@Nonnull public DBEventQueue setStatus(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBEventQueue create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds
- the datasourcejava.lang.Exception
- an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<DBEventQueue> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBEventQueue findKey(@Nonnull DataSource ds, int key) throws NotFoundException, java.lang.Exception
ds
- the datasourcekey
- the valueNotFoundException
- if target could not be foundjava.lang.Exception
- a serious problempublic java.lang.String makeKey()
makeKey
in interface EventMarker
public java.lang.String getBaseKey()
getBaseKey
in interface EventMarker
public java.lang.String getEventKey()
getEventKey
in interface EventMarker
@OverridingMethodsMustInvokeSuper protected void extAutoEnterCreate() throws java.lang.Exception
extAutoEnterCreate
in class DBObject
java.lang.Exception
- A serious problemcom.aspc.DBObj.DBObject#autoEnterCreate()
public static void validateEvent(@Nonnull MutableDataSource mds, @Nonnull EventMarker marker, @Nonnull ValidationList list) throws java.lang.Exception
mds
- the data sourcemarker
- the markerlist
- The validation list.java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extPreSaveRecord() throws java.lang.Exception
extPreSaveRecord
in class DBObject
java.lang.Exception
- A serious problempublic DBEvent getEvent()
getEvent
in interface EventMarker
public static void process(@Nonnull MutableDataSource mds, @Nonnull EventMarker marker) throws java.lang.Exception
mds
- the data sourcemarker
- the markerjava.lang.Exception
- Exceptionpublic DBObject getBaseObject() throws java.lang.Exception
getBaseObject
in interface EventMarker
java.lang.Exception
- Exceptionpublic void setBaseObject(DBObject base)
base
- the base objectstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.