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

WESTINGHOUSE 2050A12G05 COIL 110/120V (MISSING ACCESSORIES) *NEW IN BOX*
$1164.0
WESTINGHOUSE 2050A12G05 COIL 110/120V (MISSING ACCESSORIES) *NEW IN BOX* pictureSiemens 3TF46 Motor Starter 80 Amp 24 VDC Coil 40 HP @ 460 VAC (TB)
$49.99
Siemens 3TF46 Motor Starter 80 Amp 24 VDC Coil 40 HP @ 460 VAC (TB) pictureChris.W Coil Desktop Gel Ink Pen / Counter Pens with Adhesive-Backed Base for...
$17.0
Chris.W Coil Desktop Gel Ink Pen / Counter Pens with Adhesive-Backed Base for... pictureDIN Rail Mount 2 SPDT Power Relay Interface Module, OMRON 10A Relay, 5V Coil.
$17.99
DIN Rail Mount 2 SPDT Power Relay Interface Module, OMRON 10A Relay, 5V Coil. pictureTianshui GSC1(CJX4-d)-4008 Contactor 120V 60Hz Coil GSC1-4008 4 Pole New in Box
$100.0
Tianshui GSC1(CJX4-d)-4008 Contactor 120V 60Hz Coil GSC1-4008 4 Pole New in Box picture






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