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

220V 4400W Hot Air Laptop Motherboard Welding Machine bga replace station 380
$1337.36
220V 4400W Hot Air Laptop Motherboard Welding Machine bga replace station 380 picture20PCS NIPPON 400V 150uF Motherboard Capacitor JAPAN 18X34mm New
$9.99
20PCS NIPPON 400V 150uF Motherboard Capacitor JAPAN 18X34mm New picturePARAMETRICS 600207 VOLAGE MOTHER BOARD
$299.0
PARAMETRICS 600207 VOLAGE MOTHER BOARD picturePLCC IC Chip Extractor Puller Tool Motherboard Circuit Board Component Bios Clip
$5.99
PLCC IC Chip Extractor Puller Tool Motherboard Circuit Board Component Bios Clip pictureTriac Mother board 501-03059-00 and (4) Triac MPX 501-03218-00 boards
$150.0
Triac Mother board 501-03059-00 and (4) Triac MPX 501-03218-00 boards picture






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