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 BooleanFieldstatic final StringFieldstatic final LongFieldstatic final BooleanFieldstatic final LongFieldstatic final IdentityFieldstatic final BooleanFieldstatic final DateFieldstatic final StringFieldstatic final Categorystatic final RecordMeta<ProjectRecord>static final StringFieldstatic final Categorystatic final StringFieldstatic final Stringstatic final org.apache.wicket.validation.IValidator<String>static final LongFieldstatic final StringFieldstatic final StringFieldstatic final StringFieldFields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglonglonggetId()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()longIncrements the current value of the EditCount field, setting the new value on this record and returning the new valuebooleanbooleanvoidsetAllProps(Project project, GatewayContext context) Sets properties from the given project object except for the id, editcount, and uuidvoidsetConverted(boolean converted) voidvoidMethods 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, 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:
-
PROJECT_NAME_VALIDATOR
-
META
-
Id
-
Name
-
Description
-
Title
-
Source
-
LastModified
-
LastModifiedBy
-
EditCount
-
PublishedEditCount
-
FirstRollbackEditPoint
-
UUID
-
IsOEMLocked
-
OEMLockId
-
Enabled
-
Converted
-
Main
-
OEMLOCK
-
-
Constructor Details
-
ProjectRecord
public ProjectRecord()
-
-
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() -
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
-