When I retrive a list of the objects. This objects are in the cache or not. My problem: I retrive a list of objects to view in a datagrid, but i add a new object,I do not want to recover again the list of objects. I want add datarow in cursor.ResultSet.ResultSet. It is this advisable or i recover again of the database.
Saludos
Vctor(Madrid - Spain)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you save the new object it will be added to the cache.
If you use a retrieve criteria to get objects it will be a hit on the database, as other objects may have been created by other users.
The cache is only used when instantiating a single object.
What you suggest (to add a row to the resultset) is possible and is quite OK as long as you don't have a multiuser environment. If you do, then you may miss new records created by other users. What I'm trying to say, is that this sort of decision comes down to the specific application you are writing and how you expect it to be used.
I hope that helps
- Richard.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I retrive a list of the objects. This objects are in the cache or not. My problem: I retrive a list of objects to view in a datagrid, but i add a new object,I do not want to recover again the list of objects. I want add datarow in cursor.ResultSet.ResultSet. It is this advisable or i recover again of the database.
Saludos
Vctor(Madrid - Spain)
When you save the new object it will be added to the cache.
If you use a retrieve criteria to get objects it will be a hit on the database, as other objects may have been created by other users.
The cache is only used when instantiating a single object.
What you suggest (to add a row to the resultset) is possible and is quite OK as long as you don't have a multiuser environment. If you do, then you may miss new records created by other users. What I'm trying to say, is that this sort of decision comes down to the specific application you are writing and how you expect it to be used.
I hope that helps
- Richard.
Thank you
Resolvi the problem, using a dataset(copy of the result) to connect with the form.
Saludos
Victor (Madrid - Spain)