Class ReferenceField<T extends SRecordInstance>
- java.lang.Object
- 
- simpleorm.dataset.SFieldMeta
- 
- simpleorm.dataset.SFieldReference<T>
- 
- com.inductiveautomation.ignition.gateway.localdb.persistence.ReferenceField<T>
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ReferenceField<T extends SRecordInstance> extends SFieldReference<T> This class allows all the rows of a given table to be listed in a dropdown on a Wicket page. When a dropdown entry is selected by the user, the row id of the selected entry (specified by SRecordMeta<T> referencedRecord) is saved in a specified table (specified by SRecordMeta<?> meta) as a foreign key.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class simpleorm.dataset.SFieldMetaquoteName
 
- 
 - 
Constructor SummaryConstructors Constructor Description ReferenceField(SRecordMeta<?> meta, SRecordMeta<T> referencedRecord, java.lang.String fieldName, SFieldScalar... foreignKeys)ReferenceField(SRecordMeta<?> meta, SRecordMeta<T> referencedRecord, java.lang.String fieldName, SFieldScalar[] foreignKeys, SFieldScalar[] referencedPrimaryKeys)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FormMetagetFormMeta()java.lang.String[]getSupressedNames()An array of record Names which should never be added to any dropdown.booleanisMandatory()ReferenceField<T>setDescriptive(boolean b)voidsetSuppressedNames(java.lang.String[] supressedNames)Sets an array of record Names which should never be added to any dropdown.- 
Methods inherited from class simpleorm.dataset.SFieldReferenceconvertToDataSetFieldType, createColumnSQL, getForeignKeyMetas, getPrimaryKeyForForegnKey, getReferencedRecordMeta, queryFieldValue, toLongerString, toString
 - 
Methods inherited from class simpleorm.dataset.SFieldMetaaddFlag, addValidator, doValidate, equals, getFieldName, getFlags, getRecordMeta, getUserProperties, getUserProperty, getValidators, hashCode, isDescriptive, isForeignKey, isUnqueried, nextGeneratedValue, putUserProperty, readResolve, setQuoted, writeFieldValue, writeFieldValue
 
- 
 
- 
- 
- 
Constructor Detail- 
ReferenceFieldpublic ReferenceField(SRecordMeta<?> meta, SRecordMeta<T> referencedRecord, java.lang.String fieldName, SFieldScalar... foreignKeys) 
 - 
ReferenceFieldpublic ReferenceField(SRecordMeta<?> meta, SRecordMeta<T> referencedRecord, java.lang.String fieldName, SFieldScalar[] foreignKeys, SFieldScalar[] referencedPrimaryKeys) 
 
- 
 - 
Method Detail- 
isMandatorypublic boolean isMandatory() - Overrides:
- isMandatoryin class- SFieldMeta
 
 - 
setDescriptivepublic ReferenceField<T> setDescriptive(boolean b) 
 - 
getFormMetapublic FormMeta getFormMeta() 
 - 
setSuppressedNamespublic void setSuppressedNames(java.lang.String[] supressedNames) Sets an array of record Names which should never be added to any dropdown. Use this to supress system records that should not be visible to the user.
 - 
getSupressedNamespublic java.lang.String[] getSupressedNames() An array of record Names which should never be added to any dropdown. Use this to supress system records that should not be visible to the user. This method will always return a useable ArrayList that may or may not be empty.
 
- 
 
-