public abstract class DBAction extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
DBAction is an action to be performed as a result of an event in the
system
|
static java.lang.String |
DBCLASS_NAME
DBAction is an action to be performed as a result of an event in the
system
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBAction(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
static DBAction |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
DBActionType |
findType(java.lang.String... args)
The type of action.
|
java.lang.String |
getCondition(java.lang.String... args) |
java.lang.String |
getDisplaySummary(java.lang.String... args) |
DBEvent |
getEvent()
Returns Event that this validation group is for
|
int |
getID(java.lang.String... args) |
int |
getSeq(java.lang.String... args) |
java.lang.String |
getSummary(java.lang.String... args) |
DBActionType |
getType(java.lang.String... args) |
boolean |
isApplicable(DBObject base)
Determines if this action is applicable based on the state of the associated DBObject
|
boolean |
isInactive(java.lang.String... args) |
static DBQuery<DBAction> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
abstract void |
process(MutableDataSource mds,
DBObject base)
Performs the operations on the data source for this event
|
DBAction |
setCondition(java.lang.String value,
java.lang.String... args) |
DBAction |
setEvent(com.aspc.dal.workflow.DBEvent value,
java.lang.String... args) |
DBAction |
setID(int value,
java.lang.String... args) |
DBAction |
setInactive(boolean value,
java.lang.String... args) |
DBAction |
setSeq(int value,
java.lang.String... args) |
DBAction |
setSummary(java.lang.String value,
java.lang.String... args) |
DBAction |
setType(com.aspc.dal.workflow.DBActionType value,
java.lang.String... args) |
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, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extFixUp, extGetDerivedGlobalKey, extGetDerivedValue, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, 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 DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public DBAction(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 DBAction setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getCondition(java.lang.String... args)
@Nonnull public DBAction setCondition(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDisplaySummary(java.lang.String... args)
@Nonnull public DBAction setEvent(com.aspc.dal.workflow.DBEvent value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isInactive(java.lang.String... args)
@Nonnull public DBAction setInactive(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public int getSeq(java.lang.String... args)
@Nonnull public DBAction setSeq(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getSummary(java.lang.String... args)
@Nonnull public DBAction setSummary(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBActionType getType(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBActionType findType(java.lang.String... args) throws NotFoundException
DBActionType
(String,
Mandatory, Searchable)args
- the optional argumentsNotFoundException
- DBActionType was not found@Nonnull public DBAction setType(com.aspc.dal.workflow.DBActionType value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBQuery<DBAction> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBAction 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 abstract void process(MutableDataSource mds, DBObject base) throws java.lang.Exception
mds
- - MutableDataSource that action should be applied tobase
- - Base Object that the event was raised forjava.lang.Exception
- - serious errorpublic DBEvent getEvent()
public boolean isApplicable(DBObject base) throws java.lang.Exception
base
- Base object to test the condition againstjava.lang.Exception
- A serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.