Class RecordMeta<T extends PersistentRecord>
- java.lang.Object
- 
- simpleorm.dataset.SRecordMeta<T>
- 
- com.inductiveautomation.ignition.gateway.localdb.persistence.RecordMeta<T>
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class RecordMeta<T extends PersistentRecord> extends SRecordMeta<T> Simple renaming class of SRecordMeta to be consistent.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringRECORD_NOUN_KEYstatic java.lang.StringRECORD_NOUN_PLURAL_KEY- 
Fields inherited from class simpleorm.dataset.SRecordMetaquoteName
 
- 
 - 
Constructor SummaryConstructors Constructor Description RecordMeta(java.lang.Class<T> userClass, java.lang.String tableName)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRecordListener(IRecordListener<T> listener)static SFieldMetagetNameField(SRecordMeta<?> meta)Returns the field for the record type that represents the record's name.static java.lang.StringgetRecordDescription(SRecordInstance record)Attempts to return the "description" of any given record instance, using heuristics to find the name field (i.e.intgetRecordListenerCount()IRecordListener<T>[]getRecordListeners()static java.lang.StringgetRecordName(SRecordInstance record)Attempts to return the "name" of any given record instance, using heuristics to find the name field (i.e.static java.lang.StringgetRecordNameIfExists(RecordInstanceForeignKey rfk)Attempts to return the "name" of any given record instance, using heuristics to find the name field (i.e.static java.lang.StringgetRecordNameIfExists(SRecordInstance record)Attempts to return the "name" of any given record instance, using heuristics to find the name field (i.e.java.lang.StringgetRecordTypeName(java.util.Locale locale)voidremoveRecordListener(IRecordListener<T> listener)RecordMeta<T>setNounKey(java.lang.String key)RecordMeta<T>setNounPluralKey(java.lang.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 Detail- 
RECORD_NOUN_KEYpublic static final java.lang.String RECORD_NOUN_KEY - See Also:
- Constant Field Values
 
 - 
RECORD_NOUN_PLURAL_KEYpublic static final java.lang.String RECORD_NOUN_PLURAL_KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
RecordMetapublic RecordMeta(java.lang.Class<T> userClass, java.lang.String tableName) 
 
- 
 - 
Method Detail- 
getNameFieldpublic static SFieldMeta getNameField(SRecordMeta<?> meta) Returns 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.
 
 - 
getRecordNamepublic static java.lang.String getRecordName(SRecordInstance record) Attempts 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.
 - 
getRecordNameIfExistspublic static java.lang.String getRecordNameIfExists(SRecordInstance record) Attempts 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.
 - 
getRecordNameIfExistspublic static java.lang.String getRecordNameIfExists(RecordInstanceForeignKey rfk) Attempts 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.
 - 
getRecordDescriptionpublic static java.lang.String getRecordDescription(SRecordInstance record) Attempts 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".
 - 
addRecordListenerpublic void addRecordListener(IRecordListener<T> listener) 
 - 
removeRecordListenerpublic void removeRecordListener(IRecordListener<T> listener) 
 - 
getRecordListenerspublic IRecordListener<T>[] getRecordListeners() 
 - 
getRecordListenerCountpublic int getRecordListenerCount() 
 - 
setNounKeypublic RecordMeta<T> setNounKey(java.lang.String key) 
 - 
setNounPluralKeypublic RecordMeta<T> setNounPluralKey(java.lang.String key) 
 - 
getRecordTypeNamepublic java.lang.String getRecordTypeName(java.util.Locale locale) 
 
- 
 
-