Package utils
Class GridUtils
java.lang.Object
utils.GridUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getFormattedValue
(Object value, Class<?> type, Formatter formatter) static Object
getFormattedValue
(Object value, Formatter formatter) recordListToTableFieldDataList
(List<org.jooq.Record> records, Set<EntityColumn> entityColumns, org.jooq.SQLDialect sqlDialect) static TableRow
recordToTableFieldData
(org.jooq.Record record, Set<EntityColumn> entityColumns, org.jooq.SQLDialect sqlDialect) static EntityColumn
toEntityColumn
(String gridColumnName) Converts column name in grid to entity columnstatic String
toEntityColumnName
(String gridColumnName) static String
toGridColumnName
(List<EntityColumn> entityColumns, GridDisplayType type) static String
toGridColumnName
(EntityColumn entityColumn)
-
Field Details
-
MULTI_COLUMN_PREFIX
- See Also:
-
COMPLEX_COLUMN_PREFIX
- See Also:
-
-
Method Details
-
toGridColumnName
-
toGridColumnName
-
toEntityColumnName
-
toEntityColumn
Converts column name in grid to entity column- Parameters:
gridColumnName
- column name from grid consisting of 2 parts- Returns:
- entity column with 2 parts from gridColumnName
- Throws:
IllegalArgumentException
- if column name is invalid (i.e. not in format '<entity>$<column>')
-
getFormattedValue
-
getFormattedValue
-
recordListToTableFieldDataList
public static List<TableRow> recordListToTableFieldDataList(List<org.jooq.Record> records, Set<EntityColumn> entityColumns, org.jooq.SQLDialect sqlDialect) -
recordToTableFieldData
public static TableRow recordToTableFieldData(org.jooq.Record record, Set<EntityColumn> entityColumns, org.jooq.SQLDialect sqlDialect)
-