public class GridCustomFieldHandler extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_VALUE |
static String |
NUMERICAL_VALUE
Infor stores different types of custom fields in different
fields in R5PROPERTYVALUES
|
static String |
VARCHAR_VALUE |
| Constructor and Description |
|---|
GridCustomFieldHandler(Tools tools) |
| Modifier and Type | Method and Description |
|---|---|
String |
addCustomFieldsJoinClause(String sqlStatementFrom)
Adds the join clause to the SQL used to fetch the grid.
|
List<String> |
attachCustomFields(List<String> sqlStatements)
In the JPAGrids class we fetch all the fields that need to be selected, as a list.
|
String |
getCustomFieldJoinConditions()
For parts we have to use the deprecated join syntax with the plus (+)
To make the join we add ANDs to the where clause.
|
List<DataspyField> |
getCustomFieldsAsDataspyFields()
Converts custom fields (DataspyCustomField) to
normal dataspy fields (DataspyField)
|
GridField[] |
getCustomFieldsAsGridFields(String dataspyID) |
Map<String,DataField> |
getCustomFieldsForGrid(String gridID)
Fetches the custom fields possible for a grid.
|
String |
getDataspyID() |
void |
initializeForDataspy(String dataspyID)
Initializes the handler, to fetch custom fields for a given dataspy.
|
public static String NUMERICAL_VALUE
public static String DATE_VALUE
public static String VARCHAR_VALUE
public GridCustomFieldHandler(Tools tools)
public void initializeForDataspy(String dataspyID)
dataspyID - public List<DataspyField> getCustomFieldsAsDataspyFields()
public List<String> attachCustomFields(List<String> sqlStatements)
public String addCustomFieldsJoinClause(String sqlStatementFrom)
public Map<String,DataField> getCustomFieldsForGrid(String gridID)
public String getCustomFieldJoinConditions()
public String getDataspyID()
Copyright © 2023 CERN European Organization for Nuclear Research. All rights reserved.