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:
java.io.Serializable
public class ProjectResourceRecord extends PersistentRecord
- 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 BlobField
Data
static BooleanField
Deleted
Special deleted bit used to create reliable diffs based on edit counts.static StringField
Documentation
static LongField
Id
static BooleanField
IsOEMLocked
static LongField
LastEdit
static RecordMeta<ProjectResourceRecord>
META
static StringField
ModuleId
static StringField
ModuleVersion
static StringField
Name
static StringField
ParentUUID
static IdentityField
PkId
static ReferenceField<ProjectRecord>
Project
static LongField
ProjectId
static BooleanField
Protected
static BooleanField
Published
static StringField
ResourceType
static IntField
Scope
static IntField
SerializationVersion
static BooleanField
Staging
-
Fields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
-
-
Constructor Summary
Constructors Constructor Description ProjectResourceRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
cloneFrom(ProjectResourceRecord publishedRecord)
void
deleteRecord()
Deprecated.int
getApplicationScope()
byte[]
getData()
boolean
getDeleted()
java.lang.String
getDocumentation()
long
getId()
java.lang.Long
getLastEdit()
RecordMeta<ProjectResourceRecord>
getMeta()
This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance.java.lang.String
getModuleId()
Version
getModuleVersion()
java.lang.String
getName()
java.util.UUID
getParentUuid()
long
getProjectId()
java.lang.String
getResourceType()
int
getSerializationVersion()
boolean
isLocked()
boolean
isProtected()
boolean
isPublished()
boolean
isStaging()
void
markDeleted(long editCount)
Overridden to toggle deleted flag instead of truly deleting the recordvoid
reallyDelete()
Simply calls super.deleteRecord(); Used in the publishing systemvoid
setAllProps(ProjectResource resource)
-
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, 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<ProjectResourceRecord> META
-
PkId
public static final IdentityField PkId
-
Id
public static final LongField Id
-
ProjectId
public static final LongField ProjectId
-
Project
public static final ReferenceField<ProjectRecord> Project
-
Name
public static final StringField Name
-
Documentation
public static final StringField Documentation
-
ModuleId
public static final StringField ModuleId
-
ModuleVersion
public static final StringField ModuleVersion
-
ResourceType
public static final StringField ResourceType
-
SerializationVersion
public static final IntField SerializationVersion
-
Scope
public static final IntField Scope
-
ParentUUID
public static final StringField ParentUUID
-
Data
public static final BlobField Data
-
Protected
public static final BooleanField Protected
-
LastEdit
public static final LongField LastEdit
-
Deleted
public static final BooleanField Deleted
Special deleted bit used to create reliable diffs based on edit counts. SeedeleteRecord()
override.
-
Published
public static final BooleanField Published
-
Staging
public static final BooleanField Staging
-
IsOEMLocked
public static final BooleanField IsOEMLocked
-
-
Method Detail
-
getMeta
public RecordMeta<ProjectResourceRecord> 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()
-
getProjectId
public long getProjectId()
-
getName
public java.lang.String getName()
-
getDocumentation
public java.lang.String getDocumentation()
-
getLastEdit
public java.lang.Long getLastEdit()
-
getModuleId
public java.lang.String getModuleId()
-
getModuleVersion
public Version getModuleVersion()
-
getResourceType
public java.lang.String getResourceType()
-
getSerializationVersion
public int getSerializationVersion()
-
getApplicationScope
public int getApplicationScope()
-
isProtected
public boolean isProtected()
-
getParentUuid
public java.util.UUID getParentUuid()
-
getDeleted
public boolean getDeleted()
-
isPublished
public boolean isPublished()
-
isStaging
public boolean isStaging()
-
isLocked
public boolean isLocked()
-
getData
public byte[] getData()
-
setAllProps
public void setAllProps(ProjectResource resource)
-
cloneFrom
public void cloneFrom(ProjectResourceRecord publishedRecord)
-
deleteRecord
@Deprecated public void deleteRecord()
Deprecated.Don't call this! Use the other overload instead.- Overrides:
deleteRecord
in 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
-
-