Class GridCustomFieldHandler
java.lang.Object
ch.cern.eam.wshub.core.services.grids.customfields.GridCustomFieldHandler
- All Implemented Interfaces:
Serializable
Handles the custom fields when making grid requests.
- Author:
- pkulig
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCustomFieldsJoinClause(String sqlStatementFrom) Adds the join clause to the SQL used to fetch the grid.attachCustomFields(List<String> sqlStatements) In the JPAGrids class we fetch all the fields that need to be selected, as a list.For parts we have to use the deprecated join syntax with the plus (+) To make the join we add ANDs to the where clause.Converts custom fields (DataspyCustomField) to normal dataspy fields (DataspyField)getCustomFieldsAsGridFields(String dataspyID) getCustomFieldsForGrid(String gridID) Fetches the custom fields possible for a grid.voidinitializeForDataspy(String dataspyID) Initializes the handler, to fetch custom fields for a given dataspy.
-
Field Details
-
NUMERICAL_VALUE
EAM stores different types of custom fields in different fields in R5PROPERTYVALUES -
DATE_VALUE
-
VARCHAR_VALUE
-
-
Constructor Details
-
GridCustomFieldHandler
-
-
Method Details
-
initializeForDataspy
Initializes the handler, to fetch custom fields for a given dataspy. This dataspy is then in the state of the handler to avoid fetching the custom fields multiple times.- Parameters:
dataspyID-
-
getCustomFieldsAsDataspyFields
Converts custom fields (DataspyCustomField) to normal dataspy fields (DataspyField) -
attachCustomFields
In the JPAGrids class we fetch all the fields that need to be selected, as a list. This method attaches the names of the of the custom fields to this list. -
addCustomFieldsJoinClause
Adds the join clause to the SQL used to fetch the grid. -
getCustomFieldsAsGridFields
-
getCustomFieldsForGrid
Fetches the custom fields possible for a grid. To do this it checks all custom fields belonging to dataspies belonging to a grid. Also fetches the type of the custom fields. -
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. -
getDataspyID
-