I have to implement a requirement for a Java CRUD application where users want to keep search results intact, even if they perform actions that affect the criteria by which returned strings are matched.
Confused? OK. Let me give you a familiar example. In Gmail, if you perform an advanced search on unread messages, you are presented with a list of relevant results. Click on an entry, and then return to the search list. It happens that you just read this entry, but it has not disappeared from the original result set. Only this line has changed from bold to normal.
I need to implement the same behavior, but the application is designed in such a way that any transaction is saved first, and then the user interface requests db for synchronization. The complexity of the application and the size of the database prevent me from simply caching the memory of matching lines and making changes to both db and memory.
I am thinking of solving a problem at the database level by creating a staging table in the pointers of the Oracle database to match records and requesting only those records to synchronize the user interface with the data. Any ideas?
source share