I’m not sure if this might be a rather stupid question. But is it possible to manually add data/values into a java resultset? For instance if I already have an existing populated ResultSet, is there a way to add more data ontop of it?
//if this was possible for instance
ResultSet rs;
rs.setData("someValue");
Thanks!
You can wrap any JDBC
ResultSetwith your custom implementation:Your custom result set behaves like any other result set. Client code reading data from your custom result set will be oblivious of the changes you perform to it “under the hood”. In other words, you can pretend that some data is available