Class ProjectResourceRecord
java.lang.Object
simpleorm.dataset.SRecordInstance
com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
com.inductiveautomation.ignition.gateway.project.records.ProjectResourceRecord
- 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 BlobFieldstatic final BooleanFieldSpecial deleted bit used to create reliable diffs based on edit counts.static final StringFieldstatic final LongFieldstatic final BooleanFieldstatic final LongFieldstatic final RecordMeta<ProjectResourceRecord>static final StringFieldstatic final StringFieldstatic final StringFieldstatic final StringFieldstatic final IdentityFieldstatic final ReferenceField<ProjectRecord>static final LongFieldstatic final BooleanFieldstatic final BooleanFieldstatic final StringFieldstatic final IntFieldstatic final IntFieldstatic final BooleanFieldFields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloneFrom(ProjectResourceRecord publishedRecord) voidDeprecated.intbyte[]getData()booleanlonggetId()getMeta()This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance.getName()longintbooleanisLocked()booleanbooleanbooleanvoidmarkDeleted(long editCount) Overridden to toggle deleted flag instead of truly deleting the recordvoidSimply calls super.deleteRecord(); Used in the publishing systemvoidsetAllProps(ProjectResource resource) Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
getBoolean, getDoubleObj, getIntObj, getLongObj, getString, installDefaultValuesMethods inherited from class simpleorm.dataset.SRecordInstance
allFields, assertNewRow, assertNotNewRow, defineInitialValue, 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
-
META
-
PkId
-
Id
-
ProjectId
-
Project
-
Name
-
Documentation
-
ModuleId
-
ModuleVersion
-
ResourceType
-
SerializationVersion
-
Scope
-
ParentUUID
-
Data
-
Protected
-
LastEdit
-
Deleted
Special deleted bit used to create reliable diffs based on edit counts. SeedeleteRecord()override. -
Published
-
Staging
-
IsOEMLocked
-
-
Constructor Details
-
ProjectResourceRecord
public ProjectResourceRecord()
-
-
Method Details
-
getMeta
Description copied from class:SRecordInstanceThis 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
metavariable is thus not Serialized, but it would not be anyway as it is usually static.- Specified by:
getMetain classPersistentRecord
-
getId
public long getId() -
getProjectId
public long getProjectId() -
getName
-
getDocumentation
-
getLastEdit
-
getModuleId
-
getModuleVersion
-
getResourceType
-
getSerializationVersion
public int getSerializationVersion() -
getApplicationScope
public int getApplicationScope() -
isProtected
public boolean isProtected() -
getParentUuid
-
getDeleted
public boolean getDeleted() -
isPublished
public boolean isPublished() -
isStaging
public boolean isStaging() -
isLocked
public boolean isLocked() -
getData
public byte[] getData() -
setAllProps
-
cloneFrom
-
deleteRecord
Deprecated.Don't call this! Use the other overload instead.- Overrides:
deleteRecordin classSRecordInstance
-
reallyDelete
public void reallyDelete()Simply calls super.deleteRecord(); Used in the publishing system -
markDeleted
public void markDeleted(long editCount) Overridden to toggle deleted flag instead of truly deleting the record
-