Class ProjectRecord
java.lang.Object
simpleorm.dataset.SRecordInstance
com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
com.inductiveautomation.ignition.gateway.project.records.ProjectRecord
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class simpleorm.dataset.SRecordInstance
SRecordInstance.BrokenOptimisticLockException
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanField
static final StringField
static final LongField
static final BooleanField
static final LongField
static final IdentityField
static final BooleanField
static final DateField
static final StringField
static final RecordMeta<ProjectRecord>
static final StringField
static final StringField
static final String
static final LongField
static final StringField
static final StringField
static final StringField
Fields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, INDEXED, UNIQUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
getId()
getMeta()
This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance.getName()
getTitle()
getUuid()
long
Increments the current value of the EditCount field, setting the new value on this record and returning the new valueboolean
boolean
void
setAllProps
(ResourceCollection project, GatewayContext context) Sets properties from the given project object except for the id, editcount, and uuidvoid
setConverted
(boolean converted) void
void
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 Details
-
PROJECT_NAME_PATTERN
- See Also:
-
META
-
Id
-
Name
-
Description
-
Title
-
Source
-
LastModified
-
LastModifiedBy
-
EditCount
-
PublishedEditCount
-
FirstRollbackEditPoint
-
UUID
-
IsOEMLocked
-
OEMLockId
-
Enabled
-
Converted
-
-
Constructor Details
-
ProjectRecord
public ProjectRecord()
-
-
Method Details
-
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
-
getId
public long getId() -
getName
-
getSource
-
setSource
-
getTitle
-
getDisplayTitle
-
getDescription
-
isEnabled
-
getLastModified
-
getLastModifiedBy
-
getEditCount
public long getEditCount() -
getFirstRollbackEditPoint
public long getFirstRollbackEditPoint() -
updateFirstRollbackEditPoint
public void updateFirstRollbackEditPoint() -
getUuid
-
isOemLocked
public boolean isOemLocked() -
getOemLockId
-
isConverted
public boolean isConverted() -
setConverted
public void setConverted(boolean converted) -
incrementEditCount
public long incrementEditCount()Increments the current value of the EditCount field, setting the new value on this record and returning the new value -
setAllProps
Sets properties from the given project object except for the id, editcount, and uuid
-