public class FormUtils
extends java.lang.Object
| Constructor and Description |
|---|
FormUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<SqlField> |
buildFieldNames(Table table,
java.util.List<BaseAction> fields)
Builds an array of field names from the fields list
|
static java.util.List<SqlField> |
buildTableAndFieldNamesAsList(Table table,
java.util.List<BaseAction> fields)
Builds an array of field names from the fields list
|
static Field |
findMatchingDrawingField(java.util.List<BaseAction> fields,
java.lang.String key)
Finds the (drawing)field from the table that matches the attr.getKey()
|
static BaseStorageField |
findMatchingField(Database database,
java.lang.String tableName,
java.lang.String fieldName)
Finds the (drawing)field from the table that matches the attr.getKey()
|
static BaseStorageField |
findMatchingField(Table table,
java.lang.String fieldName)
Finds the (drawing)field from the table that matches the attr.getKey()
|
static BaseStorageField |
findMatchingField(Table table,
XMLAttribute attr)
Finds the (drawing)field from the table that matches the attr.getKey()
|
static java.lang.String |
getPKKeyValue(java.util.List<XMLAttribute> attrs,
Table table)
Builds a URI parameter string for the PK Key Value.
|
static StorageConfig |
getStorageConfig(java.lang.String storageConfigRef,
IExecContext execContext)
Validates and gets the StorageConfig from the ExecContext
|
public static StorageConfig getStorageConfig(java.lang.String storageConfigRef, IExecContext execContext)
storageConfigRef - the reference name for the storageConfig in the execContextexecContext - the map of key value pairspublic static java.util.List<SqlField> buildFieldNames(Table table, java.util.List<BaseAction> fields)
table - that the fields belong tofields - the list of fieldspublic static java.util.List<SqlField> buildTableAndFieldNamesAsList(Table table, java.util.List<BaseAction> fields)
table - containing the fields to search throughfields - the list of fieldspublic static BaseStorageField findMatchingField(Table table, XMLAttribute attr)
table - the table containing the fieldsattr - the XMLAttribute containing the key to the field we wantpublic static BaseStorageField findMatchingField(Table table, java.lang.String fieldName)
table - the table containing the fieldsfieldName - the name of the field we want from the table.public static BaseStorageField findMatchingField(Database database, java.lang.String tableName, java.lang.String fieldName)
database - as defined in storage.xmltableName - the table containing the fieldsfieldName - the name of the field we want from the table.public static Field findMatchingDrawingField(java.util.List<BaseAction> fields, java.lang.String key)
fields - the fields to search throughkey - the key to the field we wantpublic static java.lang.String getPKKeyValue(java.util.List<XMLAttribute> attrs, Table table)
attrs - list of attributes returned for one query rowtable - that contains the list of fields, we want the PK.