BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-11-2009, 07:46 PM   #1 (permalink)
New Member
 
Join Date: Jan 2009
Model: 8310
PIN: N/A
Carrier: at&t
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default persistent store question (newbie)

Please Login to Remove!

Hi,
I have an app that need to store daily payment transactions log on the phone and the log should be automatically discard after 1 day. Right now, i store all these transactions into a persistent store and display fine but I run into problem of don't know when to destroy the persistent store as I don't know the creation time to compare. Am I doing this the right way? Should I use persistent store or something else (like file store) for this purpose?

Thanks
Offline  
Old 08-11-2009, 07:52 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Why don't you store the date along with the data?
Offline  
Old 08-18-2009, 04:19 AM   #3 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Like the previous post says, store date /time of the record too.
Persistent store is just fine for ur app, file store is not needed for this requirement.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

HP DL380G6 PROLIANT RACK SERVER 2X INTEL XEON X5660 12GB RAM D526333
$250.0
HP DL380G6 PROLIANT RACK SERVER 2X INTEL XEON X5660 12GB RAM D526333 pictureHP DL380G6 PROLIANT RACK SERVER 2X INTEL XEON X5550 32GB RAM D526332
$140.0
HP DL380G6 PROLIANT RACK SERVER 2X INTEL XEON X5550 32GB RAM D526332 pictureHEWLETT PACKARD HP DL320S PROLIANT SERVER INTEL XEON 3070 1GB RAM D525268
$90.0
HEWLETT PACKARD HP DL320S PROLIANT SERVER INTEL XEON 3070 1GB RAM D525268 pictureHEWLETT PACKARD HP DL580G7 PROLIANT RACK SERVER 4X INTEL XEON E7530 D525298
$390.0
HEWLETT PACKARD HP DL580G7 PROLIANT RACK SERVER 4X INTEL XEON E7530 D525298 pictureHP DL380G6 PROLIANT RACK SERVER 2X INTEL XEON X5550 12GB RAM D525206
$100.0
HP DL380G6 PROLIANT RACK SERVER 2X INTEL XEON X5550 12GB RAM D525206 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.