Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 157
Registered: ‎03-03-2009
My Device: Not Specified
Accepted Solution

store a whole class into persistent store?

I need to store a set of many parameters in persistent store. I am wondering if it is possible to create a class that contains all the parameters and put an instance of the class into the store, instead of putting each parameter into the store separately. So the questions are:


1. Is it possible?

2. If yes, is there performance concerns with storing a class instance, or any other concers?




Regular Contributor
Posts: 64
Registered: ‎01-27-2011
My Device: Not Specified

Re: store a whole class into persistent store?

1. yes its possible, you need to make sure your class extend the persistable interface

2. yes there are performance concerns and limitations to the number of object handles that you could use on some OS's...refer to these articles for a more detailed explanation: