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  




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