Class ProjectChangeRecord
- java.lang.Object
-
- simpleorm.dataset.SRecordInstance
-
- com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
-
- com.inductiveautomation.ignition.gateway.project.records.ProjectChangeRecord
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProjectChangeRecord>
public class ProjectChangeRecord extends PersistentRecord implements java.lang.Comparable<ProjectChangeRecord>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class simpleorm.dataset.SRecordInstance
SRecordInstance.BrokenOptimisticLockException
-
-
Field Summary
Fields Modifier and Type Field Description static StringField
CommitMessage
static LongField
EditCount
static DateField
EditDate
static StringField
EditDetails
static EnumField<ProjectEditType>
EditType
static IdentityField
Id
static RecordMeta<ProjectChangeRecord>
META
static ReferenceField<ProjectRecord>
Project
static LongField
ProjectId
static StringField
UserName
-
Fields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
-
-
Constructor Summary
Constructors Constructor Description ProjectChangeRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEditDetail(java.lang.String detail)
int
compareTo(ProjectChangeRecord o)
Sort order is edit count, edit date, edit type, user name.java.lang.String
getCommitMessage()
long
getEditCount()
java.util.Date
getEditDate()
java.lang.String
getEditDetails()
java.lang.String
getEditType()
RecordMeta<?>
getMeta()
This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance.long
getProjectID()
java.lang.String
getUserName()
-
Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
getBoolean, getDoubleObj, getIntObj, getLongObj, getString, installDefaultValues
-
Methods inherited from class simpleorm.dataset.SRecordInstance
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
-
-
-
-
Field Detail
-
META
public static final RecordMeta<ProjectChangeRecord> META
-
Id
public static final IdentityField Id
-
ProjectId
public static final LongField ProjectId
-
Project
public static final ReferenceField<ProjectRecord> Project
-
EditCount
public static final LongField EditCount
-
EditType
public static final EnumField<ProjectEditType> EditType
-
UserName
public static final StringField UserName
-
CommitMessage
public static final StringField CommitMessage
-
EditDate
public static final DateField EditDate
-
EditDetails
public static final StringField EditDetails
-
-
Method Detail
-
getMeta
public RecordMeta<?> getMeta()
Description copied from class:SRecordInstance
This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance. It is normally defined as:-SRecord getMeta() { return meta; };
The actual
meta
variable is thus not Serialized, but it would not be anyway as it is usually static.- Specified by:
getMeta
in classPersistentRecord
-
addEditDetail
public void addEditDetail(java.lang.String detail)
-
getProjectID
public long getProjectID()
-
getEditCount
public long getEditCount()
-
getEditType
public java.lang.String getEditType()
-
getUserName
public java.lang.String getUserName()
-
getCommitMessage
public java.lang.String getCommitMessage()
-
getEditDate
public java.util.Date getEditDate()
-
getEditDetails
public java.lang.String getEditDetails()
-
compareTo
public int compareTo(@Nonnull ProjectChangeRecord o)
Sort order is edit count, edit date, edit type, user name. Used in the rollback dialog.- Specified by:
compareTo
in interfacejava.lang.Comparable<ProjectChangeRecord>
-
-