BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 04-24-2009, 11:49 AM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Model: 8110
PIN: N/A
Carrier: MobiFOne
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default can you help me, about Persistable

Please Login to Remove!

hi all,
i'm sorry because i say english verry low.

----
i'm programing app with JDE.
I want store my data with PersistentObject but i dont understand about KEY value in PersistentObject.

if i have a Application using PersistentObject - how do i get KEY for method getPersistentObject(long KEY)???

PHP Code:
public static final long KEY 0xbd2350c0dfda2a51L;
PersistentObject record PersistentStore.getPersistentObject(KEY); 

Last edited by duyndv : 04-24-2009 at 11:51 AM.
Offline  
Old 04-24-2009, 12:44 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

You create the key from a string.

For example:

com.foobar.MyProject.data

Highlight your string in the JDE editor, right-click, and select "create long from string".

You then use this key when you create the persistent store, and when you access the persistent object.
Offline  
Old 04-24-2009, 08:35 PM   #3 (permalink)
New Member
 
Join Date: Apr 2009
Model: 8110
PIN: N/A
Carrier: MobiFOne
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dougsg38p. Thanks you verry muck.
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

Original OEM APPLE Airport Extreme Base Station Power Supply AC Adapter A1202
$8.99
Original OEM APPLE Airport Extreme Base Station Power Supply AC Adapter A1202 picture(C21) Genuine OEM Apple AC Cord
$25.0
(C21) Genuine OEM Apple AC Cord pictureOriginal OEM APPLE Airport Extreme Base Station Power Supply AC Adapter A1202
$14.6
Original OEM APPLE Airport Extreme Base Station Power Supply AC Adapter A1202 pictureOEM Battery Screw Screws Set for Apple MacBook Air 13" A1466 A1465 A1369 A1370
$2.29
OEM Battery Screw Screws Set for Apple MacBook Air 13OEM Battery Screw Screws Set for Apple MacBook Air 13" A1466 A1465 A1369 A1370
$2.29
OEM Battery Screw Screws Set for Apple MacBook Air 13






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