Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert JSON to resultset in JAVA?

I am trying to tweek jdbc driver to read data from json source instead of database without changing functionality of application program. For this, I need to convert JSON to java resultset. There are several ways of converting resultset to json and that takes care of insert/update statements. But for select statement, I need to convert Json to resultset. Any ideas or help is appreciated.

like image 518
pallav_rus Avatar asked Mar 01 '26 07:03

pallav_rus


1 Answers

We figured out a work around. Now storing the resultset in webRowSet(implementation of cachedRowSet) in order to serialize/deserialize it.

like image 138
pallav_rus Avatar answered Mar 05 '26 00:03

pallav_rus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!