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

VTG APPLE COMPUTER MEAD ZIPPERED ORGANIZER CASE
$19.99
VTG APPLE COMPUTER MEAD ZIPPERED ORGANIZER CASE  pictureVintage EDM 926 ELECTROHOME monitor Apple II
$199.0
Vintage  EDM 926 ELECTROHOME monitor Apple II   picture Vintage OEM Apple Design Powered Speakers M2497 USED WORKING
$39.99
 Vintage OEM Apple Design Powered Speakers M2497 USED WORKING pictureVintage Letterpress Print Type Ornament "An Apple A Day Bugs The A.M.A." Adcut
$9.5
Vintage Letterpress Print Type Ornament Vintage Letterpress Print Type Ornament Apple for Teacher Adcut
$9.5
Vintage Letterpress Print Type Ornament Apple for Teacher Adcut picture






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