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

1PC USED Mitsubishi A700 Motherboard CPU Board A70CA BC186A750G59 Fully Tested
$415.0
1PC USED Mitsubishi A700 Motherboard CPU Board A70CA BC186A750G59 Fully Tested picture1PC used Advantech IPC motherboard PCA-6190 Rev.A2 #WM06
$376.99
1PC used Advantech IPC motherboard PCA-6190 Rev.A2 #WM06 pictureAdvantech PCA-6113P4R, Industrial mother board, SN:1301.
$112.19
Advantech PCA-6113P4R, Industrial mother board, SN:1301. picture165441 Board a small speaker on the motherboard buzzer alarm computer chassis Bu
$0.99
165441 Board a small speaker on the motherboard buzzer alarm computer chassis Bu picture50p Rubycon 6.3V 1000uF MBZ PC Motherboard Capacitors 8X12 (B103)
$8.0
50p Rubycon 6.3V 1000uF MBZ PC Motherboard Capacitors 8X12 (B103)  picture






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