Class RecordMeta<T extends PersistentRecord>
java.lang.Object
simpleorm.dataset.SRecordMeta<T>
com.inductiveautomation.ignition.gateway.localdb.persistence.RecordMeta<T>
- All Implemented Interfaces:
- Serializable
Simple renaming class of SRecordMeta to be consistent.
- See Also:
- 
Field SummaryFieldsFields inherited from class simpleorm.dataset.SRecordMetaquoteName
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddRecordListener(IRecordListener<T> listener) static SFieldMetagetNameField(SRecordMeta<?> meta) Returns the field for the record type that represents the record's name.static StringgetRecordDescription(SRecordInstance record) Attempts to return the "description" of any given record instance, using heuristics to find the name field (i.e.intIRecordListener<T>[]static StringgetRecordName(SRecordInstance record) Attempts to return the "name" of any given record instance, using heuristics to find the name field (i.e.static StringAttempts to return the "name" of any given record instance, using heuristics to find the name field (i.e.static StringgetRecordNameIfExists(SRecordInstance record) Attempts to return the "name" of any given record instance, using heuristics to find the name field (i.e.getRecordTypeName(Locale locale) voidremoveRecordListener(IRecordListener<T> listener) setNounKey(String key) setNounPluralKey(String key) Methods inherited from class simpleorm.dataset.SRecordMetafieldsForMode, getAllScalarFields, getDescriptiveScalarFields, getField, getFieldMetas, getFieldNames, getPrimaryKeys, getQueriedScalarFields, getTableName, getUserClass, getUserProperties, getUserProperty, putUserProperty, readResolve, setQuoted, toLongerString, toString
- 
Field Details- 
RECORD_NOUN_KEY- See Also:
 
- 
RECORD_NOUN_PLURAL_KEY- See Also:
 
 
- 
- 
Constructor Details- 
RecordMeta
 
- 
- 
Method Details- 
getNameFieldReturns the field for the record type that represents the record's name. If it has not been explicitly set, it looks for a field with the name "Name". If none exists, it looks for the first descriptive scalar field. If there is none, it returns null.- Returns:
- A field that represents the name of the record, or null if none can be found.
 
- 
getRecordNameAttempts to return the "name" of any given record instance, using heuristics to find the name field (i.e. it guesses that it is named "Name". See getNameField() logic.
- 
getRecordNameIfExistsAttempts to return the "name" of any given record instance, using heuristics to find the name field (i.e. it guesses that it is named "Name". Will return null if it can't find a name unlike getRecordName(), which returns the record.toString() if a name field can't be found.
- 
getRecordNameIfExistsAttempts to return the "name" of any given record instance, using heuristics to find the name field (i.e. it guesses that it is named "Name".) If the name cannot be located in this way, the foreign key column name is returned instead.
- 
getRecordDescriptionAttempts to return the "description" of any given record instance, using heuristics to find the name field (i.e. it guesses that it is named "Description" or "Desc".
- 
addRecordListener
- 
removeRecordListener
- 
getRecordListeners
- 
getRecordListenerCountpublic int getRecordListenerCount()
- 
setNounKey
- 
setNounPluralKey
- 
getRecordTypeName
 
-