public class GatewayTaskRecord extends PersistentRecord
SRecordInstance.BrokenOptimisticLockException
Modifier and Type | Field and Description |
---|---|
static IdentityField |
ID |
static BooleanField |
IS_FORCED |
static BooleanField |
IS_SUSPENDED |
static RecordMeta<GatewayTaskRecord> |
META |
static EnumField<ScheduleMode> |
MODE |
static StringField |
NAME |
static StringField |
OWNERID |
static LongField |
PARENT_ID |
static StringField |
SCHEDULE |
static StringField |
TASKID |
static StringField |
Type |
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
Constructor and Description |
---|
GatewayTaskRecord() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getId() |
RecordMeta<GatewayTaskRecord> |
getMeta()
This must be defined in every user record's definition to access the SRecord which provides the meta data for
this instance.
|
ScheduleMode |
getMode() |
java.lang.String |
getName() |
java.lang.String |
getOwnerId() |
java.lang.Long |
getParentId()
Returns null if this record does not have a parent id.
|
java.lang.String |
getSchedule()
The meaning of this string is relative to the mode.
|
java.lang.String |
getTaskId() |
java.lang.String |
getType() |
boolean |
isForced()
Returns true if the user has hit the "run now" link on the page, forcing a scheduled task to run immediately.
|
boolean |
isSuspended()
Returns true if the this task is suspended, meaning that the scheduled task will not be executed
at its schedule time.
|
void |
setForced(boolean isForced) |
void |
setMode(ScheduleMode mode) |
void |
setName(java.lang.String value) |
void |
setOwnerId(java.lang.String value) |
void |
setParentId(java.lang.Long parentId)
Use when a GatewayTaskRecord is duplicated, and the duplicate is executed immediately.
|
void |
setSchedule(java.lang.String value) |
void |
setSuspended(boolean isSuspended)
Set to true to suspend this task, meaning that the scheduled task will not be executed at its scheduled time.
|
void |
setTaskId(java.lang.String value) |
getBoolean, getDoubleObj, getIntObj, getLongObj, getString, installDefaultValues
allFields, assertNewRow, assertNotNewRow, defineInitialValue, deleteRecord, doQueryRecord, doValidateRecord, equals, findReference, findReference, findReference, findReference, getBigDecimal, getBytes, getDataSet, getDate, getDouble, getEnum, getInitialValue, getInt, getLogger, getLong, getObject, getRawArrayValue, getReferenceNoQuery, getTime, getTimestamp, hashCode, isAttached, isDeleted, isDirty, isDirty, isEmpty, isNewRow, isNotDestroyed, isNull, isReadOnly, isValid, onQueryRecord, onValidateField, onValidateRecord, setBigDecimal, setBoolean, setBytes, setDate, setDirty, setDouble, setEmpty, setEnum, setInt, setLong, setNewRow, setNull, setObject, setObject, setRawArrayValue, setReadOnly, setReference, setString, setTime, setTimestamp, toString, validatePrimaryKeys, wasInCache
public static final RecordMeta<GatewayTaskRecord> META
public static final IdentityField ID
public static final StringField NAME
public static final StringField Type
public static final StringField OWNERID
public static final StringField TASKID
public static final BooleanField IS_FORCED
public static final BooleanField IS_SUSPENDED
public static final EnumField<ScheduleMode> MODE
public static final StringField SCHEDULE
public static final LongField PARENT_ID
public RecordMeta<GatewayTaskRecord> getMeta()
SRecordInstance
SRecord getMeta() { return meta; };
The actual meta
variable is thus not Serialized, but it would not be anyway as it is usually static.
getMeta
in class PersistentRecord
public java.lang.Long getId()
public java.lang.String getType()
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getOwnerId()
public void setOwnerId(java.lang.String value)
public java.lang.String getTaskId()
public void setTaskId(java.lang.String value)
public ScheduleMode getMode()
public void setMode(ScheduleMode mode)
public java.lang.String getSchedule()
public void setSchedule(java.lang.String value)
public java.lang.Long getParentId()
public void setParentId(java.lang.Long parentId)
public boolean isForced()
public void setForced(boolean isForced)
public boolean isSuspended()
public void setSuspended(boolean isSuspended)