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:
java.io.Serializable
public class ProjectRecord 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 BooleanFieldConvertedstatic StringFieldDescriptionstatic LongFieldEditCountstatic BooleanFieldEnabledstatic LongFieldFirstRollbackEditPointstatic IdentityFieldIdstatic BooleanFieldIsOEMLockedstatic DateFieldLastModifiedstatic StringFieldLastModifiedBystatic CategoryMainstatic RecordMeta<ProjectRecord>METAstatic StringFieldNamestatic CategoryOEMLOCKstatic StringFieldOEMLockIdstatic java.lang.StringPROJECT_NAME_PATTERNstatic org.apache.wicket.validation.IValidator<java.lang.String>PROJECT_NAME_VALIDATORstatic LongFieldPublishedEditCountstatic StringFieldSourcestatic StringFieldTitlestatic StringFieldUUID-
Fields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
-
-
Constructor Summary
Constructors Constructor Description ProjectRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()java.lang.StringgetDisplayTitle()longgetEditCount()longgetFirstRollbackEditPoint()longgetId()java.util.DategetLastModified()java.lang.StringgetLastModifiedBy()RecordMeta<ProjectRecord>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.StringgetName()java.lang.StringgetOemLockId()java.lang.StringgetSource()java.lang.StringgetTitle()java.util.UUIDgetUuid()longincrementEditCount()Increments the current value of the EditCount field, setting the new value on this record and returning the new valuebooleanisConverted()java.lang.BooleanisEnabled()booleanisOemLocked()voidsetAllProps(Project project, GatewayContext context)Sets properties from the given project object except for the id, editcount, and uuidvoidsetConverted(boolean converted)voidsetSource(java.lang.String source)voidupdateFirstRollbackEditPoint()-
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
-
PROJECT_NAME_PATTERN
public static final java.lang.String PROJECT_NAME_PATTERN
- See Also:
- Constant Field Values
-
PROJECT_NAME_VALIDATOR
public static final org.apache.wicket.validation.IValidator<java.lang.String> PROJECT_NAME_VALIDATOR
-
META
public static final RecordMeta<ProjectRecord> META
-
Id
public static final IdentityField Id
-
Name
public static final StringField Name
-
Description
public static final StringField Description
-
Title
public static final StringField Title
-
Source
public static final StringField Source
-
LastModified
public static final DateField LastModified
-
LastModifiedBy
public static final StringField LastModifiedBy
-
EditCount
public static final LongField EditCount
-
PublishedEditCount
public static final LongField PublishedEditCount
-
FirstRollbackEditPoint
public static final LongField FirstRollbackEditPoint
-
UUID
public static final StringField UUID
-
IsOEMLocked
public static final BooleanField IsOEMLocked
-
OEMLockId
public static final StringField OEMLockId
-
Enabled
public static final BooleanField Enabled
-
Converted
public static final BooleanField Converted
-
Main
public static final Category Main
-
OEMLOCK
public static final Category OEMLOCK
-
-
Method Detail
-
getMeta
public RecordMeta<ProjectRecord> 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
public java.lang.String getName()
-
getSource
public java.lang.String getSource()
-
setSource
public void setSource(java.lang.String source)
-
getTitle
public java.lang.String getTitle()
-
getDisplayTitle
public java.lang.String getDisplayTitle()
-
getDescription
public java.lang.String getDescription()
-
isEnabled
public java.lang.Boolean isEnabled()
-
getLastModified
public java.util.Date getLastModified()
-
getLastModifiedBy
public java.lang.String getLastModifiedBy()
-
getEditCount
public long getEditCount()
-
getFirstRollbackEditPoint
public long getFirstRollbackEditPoint()
-
updateFirstRollbackEditPoint
public void updateFirstRollbackEditPoint()
-
getUuid
public java.util.UUID getUuid()
-
isOemLocked
public boolean isOemLocked()
-
getOemLockId
public java.lang.String 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
public void setAllProps(Project project, GatewayContext context)
Sets properties from the given project object except for the id, editcount, and uuid
-
-