Class PersistentRecord
- java.lang.Object
-
- simpleorm.dataset.SRecordInstance
-
- com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ADAuthProperties,ADHybridProperties,ADtoDBHybridAuthProperties,AlarmNotificationProfileRecord,AlertNotificationProfileRecord,AlertStorageProfileRecord,AuditProfileRecord,BasicScheduleRecord,CompositeScheduleRecord,DatasourceRecord,DBAuthProperties,DBTranslatorRecord,EdgeSystemPropertiesRecord,GatewayTaskRecord,HolidayRecord,HomepagePanelSettingsRecord,ImageRecord,IncomingConnection,InternalAuthProperties,InternalContactInfoRecord,InternalHistorianSettingsRecord,InternalRoleRecord,InternalScheduleAdjustmentRecord,InternalUserExtraPropsRecord,InternalUserRecord,InternalUserRoleMapping,JDBCDriverRecord,LegacySettingsRecord,LegacyTagHistorianSettingsRecord,OPCServerSettingsRecord,ProjectChangeRecord,ProjectRecord,ProjectResourceRecord,QueueOverrideSettings,RemoteHistorianSettingsRecord,ScheduleProfileRecord,ScheduleRecord,SmtpSettings,SplitterSettings,SQLTagProviderRecord,StoreAndForwardConfigRecord,SystemPropertiesRecord,TagHistorianSettingsRecord,TagHistoryProviderRecord,TagProviderSettingsRecord,TaskStatusEventRecord,UserSourceProfileRecord,WSChannelSettings,WSConnectionSettings
public abstract class PersistentRecord extends SRecordInstance
- 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 java.lang.ObjectDEFAULT_VALUEKey value for our "default value" extension to the SimpleORM apistatic java.lang.ObjectFORM_META_KEYKey for the field meta objectstatic java.lang.ObjectINDEXEDKey value for our "indexed" extension to the SimpleORM apistatic java.lang.ObjectUNIQUEKey value for our "unique" extension to the SimpleORM api
-
Constructor Summary
Constructors Modifier Constructor Description protectedPersistentRecord()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleangetBoolean(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).java.lang.DoublegetDoubleObj(SFieldMeta field)Provides a null-safe alternative to getDouble(), which returns zero if the field was null.java.lang.IntegergetIntObj(SFieldMeta field)Provides a null-safe alternative to getInt(), which returns zero if the field was null.java.lang.LonggetLongObj(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.java.lang.StringgetString(SFieldMeta field)Returns the field as a string, or null if the field was null.voidinstallDefaultValues()-
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
-
DEFAULT_VALUE
public static final java.lang.Object DEFAULT_VALUE
Key value for our "default value" extension to the SimpleORM api
-
INDEXED
public static final java.lang.Object INDEXED
Key value for our "indexed" extension to the SimpleORM api
-
UNIQUE
public static final java.lang.Object UNIQUE
Key value for our "unique" extension to the SimpleORM api
-
FORM_META_KEY
public static final java.lang.Object FORM_META_KEY
Key for the field meta object
-
-
Method Detail
-
installDefaultValues
public void installDefaultValues()
-
getMeta
public abstract RecordMeta<?> 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 classSRecordInstance
-
getString
public java.lang.String getString(SFieldMeta field)
Returns the field as a string, or null if the field was null. Overridden from SRecordInstance to avoid trimming logic.- Overrides:
getStringin classSRecordInstance
-
getIntObj
public java.lang.Integer getIntObj(SFieldMeta field)
Provides 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.
-
getLongObj
public java.lang.Long getLongObj(SFieldMeta field)
Provides 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.
-
getDoubleObj
public java.lang.Double getDoubleObj(SFieldMeta field)
Provides 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.
-
getBoolean
public boolean getBoolean(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).- Overrides:
getBooleanin classSRecordInstance
-
-