This was a recent comment on a bug report:
EventImpl stores start and end dates as two strings (milliseconds presentation of date). Not clearly understand how information can be lost.
What is wrong with this statement?
Well nothing is “stored” until there is a persistent representation of the data that will outlast the program being stopped. Period.
Putting some value in an instance’s field does not qualify. Unless and until some storage mechanism (database, serialization to a file, etc.) puts it some place permanent – it is not “stored”.
The developer can only say the value is being stored if:
- there is an active transaction;
- the object being modified is mapped to the database tables.
- the field being modified is mapped to some column within that database
- the specific object instance being modified is actually participating in the active transaction. There could be an active transaction that this object is not part of!
- the transaction commits without errors
For the particular bug report, neither the field nor the object was persisted by the database. Therefore nothing was stored.
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.