Originally posted by Vijay Chouhan:
Hi,
I was thinking of implementing a file based persistent store in Java. I can write the contents of the Objects to a file on the disk. I can dump 100 objects (e.g., for 100 employees) to a file. However how do I read one of the object (for a particular employee) back?
For example if I want to change the data for an object, how can I retrieve the object and replace it in the file.
I hope my question makes sense. In terms of databse terms, Create is fine, but how do I perform Read/Update/Delete?
Couple of options that comes to my mind are:
- create a different file for each object
- retrieve the data for all objects, deserialize them and subsequently persist them again after performing the relevant operations
But both of them are not efficient and have drawbacks.
I hope my question makes sense. Will be thankful for any suggestions/pointers.
Originally posted by Frank Silbermann:
The Pippi Longstocking books were kinda subversive, in the sense that they made adults seem silly and celebrated an eccentric rebellious child who did as she pleased with no adult supervision.
Originally posted by Darya Akbari:
No, however in ancient Persia Darya were the drivers of chariots who were part of Darius' army.
Originally posted by Darya Akbari:
Check my profile, I'm the male in that trio![]()
[ October 05, 2007: Message edited by: Darya Akbari ]
Originally posted by Chunnard Singh:
But Ulf,
I just realized that the post was somewhat old and had alot of posts like 26 or so. Why delete it so late. There were a good numbers of posts from bartenders as well. I don't feel so bad for myself, But for others who I feel I had provided a forum to say stuff and you took that all away in one swoop. Why Ulf, Why not?
[ September 24, 2007: Message edited by: Chunnard Singh ]
Originally posted by Ulf Dittmer:
No, I didn't. I might have seen the first one or two starring Roger Moore (although I don't remember), but nothing after that. All of them since might have been great movies for all I know, but for me, if it doesn't have Sean Connery, it ain't James Bond.
[ September 03, 2007: Message edited by: Ulf Dittmer ]
Originally posted by Ulf Dittmer:
For me, There Can Only Be One Bond, and that's Sean Connery
Originally posted by John Smith:
Apparently, the IQ levels for the populations of various countries have been measured or estimated: http://www.fourmilab.ch/documents/IQ/download/cfacts.zip
Out of the 185 countries, the top 3 are Hong Kong, South Korea, and Japan.
Originally posted by Paul Clapham:
Nothing wrong with you at all. I read the first two and it didn't take me long to notice that the story of Harry Potter was also the story of Luke Skywalker and Frodo Baggins, in a different setting.