public class DBEvent extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
The DBEvent provides the core component of the workflow engine.
|
static java.lang.String |
DBCLASS_NAME
The DBEvent provides the core component of the workflow engine.
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBEvent(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
static DBEvent |
create(MutableDataSource mds)
Make a new instance of this class.
|
protected void |
extCheckDeleteAccess()
Additional access checking for DELETE access for this object.
|
protected GlobalKey |
extGetDerivedGlobalKey(DBField field,
FldParams params)
Calculate the derived global key for this field.
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Calculate the derived value for this field.
|
protected void |
extPreSaveRecord()
update the hasWorkflow fields.
|
static DBEvent |
find(java.lang.String code,
DataSource dataSource)
finds a dbevent by its code
|
DBClassAbstract |
findBaseClass(java.lang.String... args)
The base class is the DBClass that this event belongs to.
|
DBFile |
findDisplaySmallIcon(java.lang.String... args)
Retrieves the icon to be displayed for this Event.
|
static DBEvent |
findKey(DataSource ds,
java.lang.String key)
Find the target for this class by the primary key
|
DBMessage |
findMessage(java.lang.String... args)
The message used when notifying users of this event.
|
DBFile |
findSmallIcon(java.lang.String... args)
A 10X10 icon used to represent this event.
|
DBClassAbstract |
getBaseClass(java.lang.String... args) |
DBClassConcrete |
getBaseClassConcrete()
Returns the Base Class that this Event is for
|
java.lang.String |
getCode(java.lang.String... args) |
DBEventCondition[] |
getConditions()
Retrieves the list of conditions for this Event
|
java.lang.String |
getDescription(java.lang.String... args) |
java.lang.String |
getDisplayShortDesc(java.lang.String... args) |
DBFile |
getDisplaySmallIcon(java.lang.String... args) |
DBMessage |
getMessage(java.lang.String... args) |
DBEvent[] |
getPredecessors()
Retrieves the list of conditions for this Event
|
java.lang.String |
getReprocessInterval(java.lang.String... args) |
DBFile |
getSmallIcon(java.lang.String... args) |
DBEventValidationGroup[] |
getValidationGroups()
Retrieves the list of validation groups for this Event
|
boolean |
hasWorkflow(java.lang.String... args) |
boolean |
hasWorkflowMapping(java.lang.String... args) |
boolean |
isEventInactive(java.lang.String... args) |
boolean |
isInactive(java.lang.String... args) |
boolean |
isSavePeriodicalChangesOneByOne(java.lang.String... args) |
boolean |
isSkipObjectsInError(java.lang.String... args) |
boolean |
isTimer()
Is this a timer event ?
|
static DBQuery<DBEvent> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
boolean |
matches(DBObject base)
Determines if this conditions for this Event matches the current
state of the supplied object
|
DBEvent |
setBaseClass(com.aspc.dal.dbobj.DBClassAbstract value,
java.lang.String... args) |
DBEvent |
setCode(java.lang.String value,
java.lang.String... args) |
DBEvent |
setDescription(java.lang.String value,
java.lang.String... args) |
DBEvent |
setEventInactive(boolean value,
java.lang.String... args) |
DBEvent |
setHasWorkflowMapping(boolean value,
java.lang.String... args) |
DBEvent |
setMessage(com.aspc.dal.message.DBMessage value,
java.lang.String... args) |
DBEvent |
setReprocessInterval(java.lang.String value,
java.lang.String... args) |
DBEvent |
setSavePeriodicalChangesOneByOne(boolean value,
java.lang.String... args) |
DBEvent |
setSkipObjectsInError(boolean value,
java.lang.String... args) |
DBEvent |
setSmallIcon(com.aspc.dal.file.DBFile 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, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extFixUp, 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 DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public DBEvent(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 @Nonnull public java.lang.String getCode(java.lang.String... args)
@Nonnull public DBEvent setCode(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBClassAbstract getBaseClass(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBClassAbstract findBaseClass(java.lang.String... args) throws NotFoundException
DBClassAbstract
(Integer, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- DBClassAbstract was not found@Nonnull public DBEvent setBaseClass(com.aspc.dal.dbobj.DBClassAbstract value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDescription(java.lang.String... args)
@Nonnull public DBEvent setDescription(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDisplayShortDesc(java.lang.String... args)
@CheckReturnValue @Nullable public DBFile getDisplaySmallIcon(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBFile findDisplaySmallIcon(java.lang.String... args) throws NotFoundException
DBFile
(Integer, Derived,
Searchable)args
- the optional argumentsNotFoundException
- DBFile was not found@CheckReturnValue public boolean isEventInactive(java.lang.String... args)
@Nonnull public DBEvent setEventInactive(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean hasWorkflow(java.lang.String... args)
@CheckReturnValue public boolean hasWorkflowMapping(java.lang.String... args)
@Nonnull public DBEvent setHasWorkflowMapping(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isInactive(java.lang.String... args)
@CheckReturnValue @Nullable public DBMessage getMessage(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBMessage findMessage(java.lang.String... args) throws NotFoundException
DBMessage
(String,
Searchable)args
- the optional argumentsNotFoundException
- DBMessage was not found@Nonnull public DBEvent setMessage(com.aspc.dal.message.DBMessage value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getReprocessInterval(java.lang.String... args)
@Nonnull public DBEvent setReprocessInterval(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isSavePeriodicalChangesOneByOne(java.lang.String... args)
@Nonnull public DBEvent setSavePeriodicalChangesOneByOne(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isSkipObjectsInError(java.lang.String... args)
@Nonnull public DBEvent setSkipObjectsInError(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBFile getSmallIcon(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBFile findSmallIcon(java.lang.String... args) throws NotFoundException
DBFile
(Integer, Searchable)args
- the optional argumentsNotFoundException
- DBFile was not found@Nonnull public DBEvent setSmallIcon(com.aspc.dal.file.DBFile value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBEvent 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<DBEvent> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBEvent findKey(@Nonnull DataSource ds, @Nonnull java.lang.String key) throws NotFoundException, java.lang.Exception
ds
- the datasourcekey
- the valueNotFoundException
- if target could not be foundjava.lang.Exception
- a serious problem@OverridingMethodsMustInvokeSuper protected void extCheckDeleteAccess() throws DBAccessException
extCheckDeleteAccess
in class DBObject
DBAccessException
- No access to delete this objectpublic boolean matches(@Nonnull DBObject base) throws java.lang.Exception
base
- Object that we are checking the state ofjava.lang.Exception
- Exceptionpublic boolean isTimer() throws java.lang.Exception
java.lang.Exception
- a serious problempublic DBEventCondition[] getConditions()
public DBEvent[] getPredecessors()
public DBEventValidationGroup[] getValidationGroups()
public DBClassConcrete getBaseClassConcrete()
@CheckReturnValue protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedValue
in class DBObject
field
- The field to getparams
- The parameters for this field eg. language= or default=java.lang.Exception
- A serious problem@CheckReturnValue @Nullable protected GlobalKey extGetDerivedGlobalKey(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedGlobalKey
in class DBObject
field
- The field to getparams
- The parameters for this field eg. language= or default=java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extPreSaveRecord() throws java.lang.Exception
extPreSaveRecord
in class DBObject
java.lang.Exception
- A Serious problempublic static DBEvent find(java.lang.String code, DataSource dataSource) throws java.lang.Exception
code
- the code of the event to finddataSource
- the datasource to look injava.lang.Exception
- a failure to find the eventstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.