03-03-2010 04:43 AM
i am using the persistence database to store the information by doing the following :
static PersistentObject store; static long LoginTableName = 0x13356927822342382L; Vector vect = new Vector(); store = PersistentStore.getPersistentObject(LoginTableName
); vect.addElement(loginInfo); store.setContents(vect);
And to retirive the data from persistence database i am doing the following :
store = PersistentStore.getPersistentObject(LoginTableName
Now my problem is i want know how do i delete the data in persistence data base that is how delete the table "LoginTableName". And after deleting the table is the memory free ed then if memory is free ed then i also want to know the total memory after deleting the table.
03-03-2010 04:47 AM
setContents(null) and commit.
03-03-2010 05:10 AM
thank u for reply,
well will the table get deleted is i set it to null
Now after setting it to null i want to check the memory is the memory is free ed up how to check it in the program kindly help
03-04-2010 02:00 AM - edited 03-04-2010 02:01 AM
What, the long value you set? It's just a long, and should be static data. Don't worry about it.
If you're talking about the Vector, though, set the Vector to null as well and let the garbage collector take care of it.
03-04-2010 04:11 AM
what about checking of memory i want to check the memory after making it null will the memory be allocated that will the free memory be available.... i want to check before making the table null/deleting and again i want to check after making the table null....i want to see the memory incresing.....
03-04-2010 04:42 AM