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 BooleanField
Converted
static StringField
Description
static LongField
EditCount
static BooleanField
Enabled
static LongField
FirstRollbackEditPoint
static IdentityField
Id
static BooleanField
IsOEMLocked
static DateField
LastModified
static StringField
LastModifiedBy
static Category
Main
static RecordMeta<ProjectRecord>
META
static StringField
Name
static Category
OEMLOCK
static StringField
OEMLockId
static java.lang.String
PROJECT_NAME_PATTERN
static org.apache.wicket.validation.IValidator<java.lang.String>
PROJECT_NAME_VALIDATOR
static LongField
PublishedEditCount
static StringField
Source
static StringField
Title
static StringField
UUID
-
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.String
getDescription()
java.lang.String
getDisplayTitle()
long
getEditCount()
long
getFirstRollbackEditPoint()
long
getId()
java.util.Date
getLastModified()
java.lang.String
getLastModifiedBy()
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.String
getName()
java.lang.String
getOemLockId()
java.lang.String
getSource()
java.lang.String
getTitle()
java.util.UUID
getUuid()
long
incrementEditCount()
Increments the current value of the EditCount field, setting the new value on this record and returning the new valueboolean
isConverted()
java.lang.Boolean
isEnabled()
boolean
isOemLocked()
void
setAllProps(Project project, GatewayContext context)
Sets properties from the given project object except for the id, editcount, and uuidvoid
setConverted(boolean converted)
void
setSource(java.lang.String source)
void
updateFirstRollbackEditPoint()
-
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: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
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
-
-