BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-24-2009, 12:49 PM   #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 12:51 PM.
Offline  
Old 04-24-2009, 01: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, 09: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





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