Class PersistentRecord
java.lang.Object
simpleorm.dataset.SRecordInstance
com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ADAuthProperties,- ADHybridProperties,- ADtoDBHybridAuthProperties,- AlarmNotificationProfileRecord,- AlertNotificationProfileRecord,- AlertStorageProfileRecord,- AuditProfileRecord,- BasicScheduleRecord,- CompositeScheduleRecord,- DatasourceRecord,- DBAuthProperties,- DBTranslatorRecord,- EdgeSystemPropertiesRecord,- EmailProfileSettingsRecord,- GatewayTaskRecord,- HolidayRecord,- HomepagePanelSettingsRecord,- ImageRecord,- IncomingConnection,- InternalAuthProperties,- InternalContactInfoRecord,- InternalRoleRecord,- InternalScheduleAdjustmentRecord,- InternalUserExtraPropsRecord,- InternalUserRecord,- InternalUserRoleMapping,- JDBCDriverRecord,- MetricsDashboardRecord,- OPCServerSettingsRecord,- ProjectChangeRecord,- ProjectRecord,- ProjectResourceRecord,- ProxyRulesRecord,- QueueOverrideSettings,- ScheduleProfileRecord,- ScheduleRecord,- SmtpSettings,- SQLTagProviderRecord,- StoreAndForwardConfigRecord,- SystemPropertiesRecord,- TagHistoryProviderRecord,- TagProviderSettingsRecord,- TaskStatusEventRecord,- UserSourceProfileRecord,- WSChannelSettings,- WSConnectionSettings
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class simpleorm.dataset.SRecordInstanceSRecordInstance.BrokenOptimisticLockException
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ObjectKey value for our "default value" extension to the SimpleORM apistatic final ObjectKey for the field meta objectstatic final ObjectKey value for our "indexed" extension to the SimpleORM apistatic final ObjectKey value for our "unique" extension to the SimpleORM api
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetBoolean(SFieldMeta field) Overridden in order to work around the fact that the base doesn't work well, expects them to be exactly Boolean.TRUE or Boolean.FALSE (like, the actual objects).getDoubleObj(SFieldMeta field) Provides a null-safe alternative to getDouble(), which returns zero if the field was null.getIntObj(SFieldMeta field) Provides a null-safe alternative to getInt(), which returns zero if the field was null.getLongObj(SFieldMeta field) Provides a null-safe alternative to getLong(), which returns zero if the field was null.abstract RecordMeta<?>getMeta()This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance.getString(SFieldMeta field) Returns the field as a string, or null if the field was null.voidMethods inherited from class simpleorm.dataset.SRecordInstanceallFields, 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- 
DEFAULT_VALUEKey value for our "default value" extension to the SimpleORM api
- 
INDEXEDKey value for our "indexed" extension to the SimpleORM api
- 
UNIQUEKey value for our "unique" extension to the SimpleORM api
- 
FORM_META_KEYKey for the field meta object
 
- 
- 
Constructor Details- 
PersistentRecordprotected PersistentRecord()
 
- 
- 
Method Details- 
installDefaultValuespublic void installDefaultValues()
- 
getMetaDescription 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 class- SRecordInstance
 
- 
getStringReturns the field as a string, or null if the field was null. Overridden from SRecordInstance to avoid trimming logic.- Overrides:
- getStringin class- SRecordInstance
 
- 
getIntObjProvides a null-safe alternative to getInt(), which returns zero if the field was null.- Parameters:
- field- The filed to retrieve
- Returns:
- The integer value, or null if the field is null.
 
- 
getLongObjProvides a null-safe alternative to getLong(), which returns zero if the field was null.- Parameters:
- field- The filed to retrieve
- Returns:
- The long value, or null if the field is null.
 
- 
getDoubleObjProvides a null-safe alternative to getDouble(), which returns zero if the field was null.- Parameters:
- field- The filed to retrieve
- Returns:
- The double value, or null if the field is null.
 
- 
getBooleanOverridden in order to work around the fact that the base doesn't work well, expects them to be exactly Boolean.TRUE or Boolean.FALSE (like, the actual objects).- Overrides:
- getBooleanin class- SRecordInstance
 
 
-