Interface GridAITools.Callbacks
- All Superinterfaces:
Serializable
- Enclosing class:
GridAITools
Callback interface for grid state access and mutation.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the set of available grid IDs.Returns the current state of a grid as a JSON string.voidupdateData(String gridId, String query) Handles a SQL query for the given grid.
-
Method Details
-
getState
Returns the current state of a grid as a JSON string. Should throw if the grid is not found.- Parameters:
gridId- the grid ID- Returns:
- the grid state as JSON
-
updateData
Handles a SQL query for the given grid. Implementations should validate the query and store it for deferred rendering. Should throw if the grid is not found or the query is invalid.- Parameters:
gridId- the grid IDquery- the SQL SELECT query
-
getGridIds
Returns the set of available grid IDs.- Returns:
- the grid IDs, never
null
-