I have a Java Db database table that I use to display results in JFreeChart. There are two processes:
At the moment, the only way I found to get the new data inserted by (1) into the RowSet is by re-running the query. JdbcRowSet only reflects updates to those rows that are already in the set, and not any newly inserted ones.
Is there a type of RowSet or ResultSet that adds the new rows automatically? Or do I have to re-run the query each time?
Using JDBC, you will have to re-run the query each time. You may be able to achieve what you are looking for by using an ORM, such as Hibernate.