-
Notifications
You must be signed in to change notification settings - Fork 28
provide method to test if an entity instance is stored #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Small tip: You can use |
@zdenek-jonas Thanks! I think this solves this issue, but we should keep in mind that in case of lazy storage (which is the default), the object ID is not always returned immediately. However, that's okay as I can switch to eager storage for test cases. Is there a way to get a UTC timestamp in milliseconds indicating when the data was last saved (or updated) by |
There is a time stamp but no simple way to get that. We write a time stamp to the storage transaction log file at every store. The time stamp is produced by a
|
It would be good if it could be done in a simpler way, for example with a method in
What do you think? |
Many thanks for your proposal. Adding an object specific time stamp would be a bigger feature that requires a detailed requirement analysis, I doubt that we will implement that in the near future. I’m not sure if it helps but there is a logger available that can log every object store. |
Is your feature request related to a problem? Please describe.
I want to write test cases to check if an entity instance is stored. However, it seems that there is no method in eclipse-store to check if an entity instance is stored. Such method can be also useful for other cases.
Describe the solution you'd like
Please provide a method something like
long StorageManager#isStored(Object o)
, which returnsThe text was updated successfully, but these errors were encountered: