I would like to use a few ResultSets to dynamically create Listgrid data (transposing and customized value maps etc).
I want to confirm the following is a reasonable way to use a ResultSet.
I want to confirm the following is a reasonable way to use a ResultSet.
Code:
ResultSet resultSet = new ResultSet(dataSource); //I want to load all records resultSet.setFetchMode(FetchMode.LOCAL); ... //add some handlers to respond to changes to the ResultSet (I know that this is only add/remove/re-order records) resultSet.addDataChangedHandler(new DataChangedHandler() { @Override public void onDataChanged(DataChangedEvent event) { //update based on change } }); resultSet.addDataArrivedHandler(new DataArrivedHandler() { //update based on fetch } }); //force a fetch to the result set - after this it should be all cached right? resultSet.toArray();
Comment