Persistent policy object

Is it advisable to keep my own app to the data store objects or use a hash table?

For example, I have a PERSON object with name & I still there. In the future, the object may change. Will this be a problem retrieving in the store?

If I persisit a hashtable with the values, then I always have to set the values of the hash for the object.

All strategic advice?

I always recommend persisting a collection so that you can add to it.  Hashtable is good for this.   Make sure that you persist actually your own version 'extended' to the hash table so that it is deleted when your application is removed.

Tags: BlackBerry Developers

Similar Questions

  • Lack of Windows Group Policy Object Editor 8.1

    Missing editor Group Policy object in the MMC for windows 8.1. How do I install the Group Policy Object Editor so I can choose it as a software component plug-in windows 8.1

    Hello

    You need Windows Pro 8.1.

  • Tab 'Users' lack of Group Policy Object Editor snap-in in MMC for - how to market?

    "I posted a similar question in the forum TechNet hereand I have proposed a solution - use support KB313222 -" ","How to restore the default security settings? " ;
    But it did not help me - stil I don't see 'Users' tab when you configure the snap "Group Policy Object Editor. How could I get this tab "lit"?

    Thank you.

    Also when I posted something similar but better described-> "how to apply Group/Local strategies to limited accounts (non-admins) only?"

  • Cannot map drives using Group Policy objects in Vista

    Hi all

    We strive map drives using Group Policy on our image of Vista. (In the past, we have used kixtart, but try to avoid writing scripts).

    The installer under User Preferences/Configuration/Windows Settings/Player cards of the GPO. Because the GPO is attached to the ORGANIZATIONAL unit that contains the Vista PC, we both loop processing market.

    Extensions side customer GP are installed on the workstation.

    The results are inconsistent - at best, if we use 'Create', 'Update', or 'Replace' as the action of the drive mapping.

    Sometimes, card readers, sometimes they are not. They just recently. Nothing is mentioned in one of the newspapers.

    All the world did this with success?

    Hi OxG,

    Thank you for visiting the Microsoft answers community site. The question you have posted is linked to the Group Policy object and would be better suited to the TechNet Discussion groups. Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en/category/windowsvistaitpro

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Group Policy Object Editor does not open in my computer it says that there is no

    Group Policy Object Editor does not open in my computer it says that there is not. I tried to open it by the command run 'GPEDIT. MSC' again, it did not open. IM usung windows vista 64-bit home edition. is this some kind of virus?
    Please answer as soon as possible

    It's the Vista, installation, modernization and the Forum to activate.

    You will get the best advice for any problem of Update/Service Pack in the Windows Update Forum; the link below:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    See you soon. Mick Murphy - Microsoft partner

  • Adobe PDF Reader Plugin DC cannot disable with the ID of Group Policy object class

    Adobe PDF Reader Plugin DC cannot disable with the ID of Group Policy object class

    Our school district recently upgraded to Acrobat Reader DC - in the past, we have disabled the plugin IE via GPO for Internet Explorer - manage ad - ons with the class ID of the ad-on/plugin

    The class ID is the same on computers {CA8A9780-280D-11CF-A24D-444553540000}, and the object GPO is applied and turns off the plugin

    result with the new version - PDF opens in Internet explore - it is a problem for a lot of reason / especially we have many applications that require the full version and we have seen a lot of reports being pulled from IIS based sites that fail to print.

    It works if I disable the GPO and manually disable the plugin.

    That is the question

    Is there a way to disable the ad-on/plugin for IE centrally from an IT management perspective?

    While what you do must have worked, you can try these: create one of the following keys:

    1.

    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\15.0\Originals]

    "bBrowserIntegration" = DWORD: 00000000

    2.

    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\ {CA8A9780-280D-1 1See-A24D-444553540000}]

    (just to create the key is sufficient)

  • Problem of persistent data object

    Dear Sir.

    Hello

    I am writing a module that implements the earpiece of the phone, simply

    and I would use persistent object to store information

    But I am facing the following problems:

    When I use the persistent objects, the Simulator to show that there is no instance of the application,

    as my program doesn't include any GUI,

    would my recognized program just as a Moudle and the persistent object should point the data store with an application?

    Thank you very much

    Please see the following for more information.

    http://supportforums.BlackBerry.com/T5/Java-development/persistent-data-and-uninstalling-an-app-issu...

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/handle-stored-data-when-removing-an-AP...

    http://supportforums.BlackBerry.com/T5/Java-development/persistent-data-and-uninstalling-an-app-issu...

  • Problem with the persistent store & object

    Hello

    I store 2 types of persistentObject in PersistentStore. I find the problem when retrieving the Typeobjet2. The code is:

        private void GetPersonFromPhone() {
            synchronized(store) {
                data = (Vector) store.getContents();
            }
            System.out.println("\\\\\\\\\\\\\\\\\\  Into GetPersonFromPhone Data = " + data.size());
            PersonInfo pi = null;
            Person p = null;
            for ( int i = 0; i < data.size(); i++) {
                System.out.println("Object Got i = " + i + " - " + data.elementAt(i).getClass().getName());
                if (data.elementAt(i).getClass().getName().endsWith("PersonInfo")) {
    
                      .....
                      data.removeElementAt(i);
                }
            }
             p = null;
            pi = null;
            return;
        }
    
        private void SavePersonsToPhone() {
            PersonInfo info;
            System.out.println(" To SAVE Persons = " + personVec.size() + " To Store Data Size = " + data.size());
            for (int i=0; i < personVec.size(); i++) {
                info = new PersonInfo();
                data.addElement(info);
                p = null;
                info = null;
            }
            System.out.println("Now DATA size = " + data.size());
            synchronized(store) {
                store.setContents(data);
                store.commit();
            }
           // Dialog.inform("Success Stored");
    
            info = null;
            return;
        }
    
     Results
    

    Nobody GOT = name = Mr John Micheal, Email =, URL = store/samples/pictures/Quiver_Tree.png, Send = true
    Size PersonVector = 1
    Object obtained I = 3 - src.se.PersonInfo
    Nobody GOT = name = Peter Simon, email = [email protected], URL = store/home/user/iBeloved/photo1, Send = true
    Size PersonVector = 2
    GOT people = 2 size = 3 data store

    Add new record

    Person - McMillan Desilva, [email protected] , SentEmail = false

    To SAVE the people = 3 to the data store size = 3
    Save I have 0 - name = Mr. Micheal John = Email, URL = store/samples/pictures/Quiver_Tree.png, Send = true
    Added Mr. John Micheal, Email = true to vector to the store
    I save 1 - name = Peter Simon, email = [email protected], URL = store/home/user/iBeloved/photo1, Send = true
    Peter [email protected], Email added = true to vector to the store
    Save I have 2 - name = McMillan Desilva, Email = [email protected], URL =, Send = false
    Added McMillan detailed [email protected], email = false to Vector to the store

    The NEXT TIME that I RAN the APPLICATION

    Nobody GOT = name = Peter Simon, email = [email protected], URL = store/samples/pictures/Cascade.png, Send = true
    Size PersonVector = 1
    Object obtained I = 3 - src.se.PersonInfo
    Nobody GOT = name = Peter Simon, email = [email protected], URL = store/home/user/iBeloved/photo1, Send = true
    Size PersonVector = 2
    GOT people = 2 size = 4 data store

    To SAVE the people = 2 to the size of the data store = 4
    Save I 0 - name = Peter Simon, email = [email protected], URL = store/samples/pictures/Cascade.png, Send = true
    Peter [email protected], Email added = true to vector to the store
    I save 1 - name = Peter Simon, email = [email protected], URL = store/home/user/iBeloved/photo1, Send = true
    Peter [email protected], Email added = true to vector to the store
    DATA size now = 6

    You CAN SEE FROM THE results, how the data changes and incompatibilities. Sometimes he gives good resutls sometimes incompatibilities. Someone can say, where I'm going wrong or what makes the results of the get code.

    Thank you

    Not looked at seriously, but there seems to be a coding bug in this piece of code:

    for (int i = 0; i)< data.size();="" i++)="">
    System.out.println ("object got I I =" + i + "-" + data.elementAt (i) .getClass () .getName ());
    If (data.elementAt (i) .getClass () .getName () .endsWith ("PersonInfo")) {}
    ....
    data.removeElementAt (i);
    }
    }

    Say that the vector has 3 elements inside.  You spend the first at the beginning of the second loop, I = 1, and the for loop see data.size () 3.  Then you deal with the second and delete.  Then when you go back to the loop for I = 2, and data.size () = 2, so you never treat a third.

    Of course, logic could just as easily result in code by jumping the elements of the vector.

    Maybe that's your problem?

  • How to hide the library of podcasts in win 7 through a Group Policy object

    Hello

    I want to hide the Podcasts library in Windows 7 to all users via a GPO/GPP.

    I google my heart, but cannot find the regkeys that is unique to each library, and there is no xml file in the profiles of users of the library of Podcasts.

    Can anyone help?

    See you soon

    Max

    The library of Podcasts is not native to Windows 7: it only appears if you are installing the Zune software.  You can simply delete the library if you do not want.

  • Editing an object that I stored in the persistent store

    I store a custom object in the store persistent and would like to add a new Member.  Someone knows how can I do this?  I'd rather not delete it and store an object in its place because what happens if I need to add more members in the future.  This would encourage me to juggle all versions of my object.  Is there a kind of model for version control that I can apply to my objects stored persistently?

    I don't think it will work.  The link that you say talk us too much serialization, but the persistent object is not serialized as part of persistence.  If you want to serialize her, you should do it yourself.

    I'm guessing that you did not design your class being "expandable". And I'm guessing that you do not want your users to have to recreate these data.

    So I investigate an approach to migration.  In the code that gets the persistent store, got it get the object persistent, then check that it is indeed a picture of your old items.  If it is, convert it to an object type, store it in a collection (vector or Hashtable as suggested, for example) and keep the result, by replacing your old array of persistent storage object.  So your new application includes the old class of objects, exactly as it was, which means that you can install it on top of your existing application.  But once your request is used at the same time, the old persistent object is no longer used.

    Does make sense?

  • Persistable interface for objects in objects

    I know that the PersistentStore may contain some data types, so if you want a custom class to be stored, it must implement the Persistable interface. But what happens if this Persistable class also contains variables of class that are of class types? These classes must implement Persistable too? For example,.

    / public class CustomClass1 implements Persistable {}

    object CustomClass2 private;

    dateCreated private date;

    ...

    }

    CustomClass2 must implement Persistable as well? How about the class Date (built-in to java)? Should I expand and implement Persistable?

    Thank you.

    Yes, inner classes should implement Persistable. Extend a class will not work if the base class is not persistent himself.

  • IT detect policy "allow third party applications to use the persistent store" by program

    Our application uses the persistent store widely, and we try to find a way to fail gracefully, with a coherent, when the it policy error "allow third-party Apps to use persistent store" is disabled.

    Ideally, we would detect this setting programmatically and displays an error to the user to inform them that this is the condition that prevents us from running.  It seems that the ITPolicy class in net.rim.device.api.itpolicy would allow us to do, but I can't understand what I asked for to verify this IT strategy value - I can't find documentation on most of the system properties how to query their status and try the guess of getBoolean ("AllowThirdPartyUsePersistentStore", true) does not appear to return the correct value.

    Or, if there is a better way to detect this State, that would work too.

    Thank you.

    Hello

    The settings to use in the class plan ITPolicy to the ITPolicyTemplate2 of the BlackBerry Enterprise Server BESMgmt database table.

    for the "allow third-party Apps to use store persistent' policy, which is a 24 tag and subtag of 17. However, please pay special attention to the it policy Description:

    This rule is obsolete. || Specify if third-party applications on the BlackBerry smartphone can use the RIM store persistent application programming interface (API). || Computers handhelds with OS version 3.x and below must use policy AllowThirdPartyUsePersistentStore IT. | The 4.0 and later versions must use application control policy. || If you do not set this rule, a default value of True will be used. || This rule applies only to the BlackBerry Java-based instruments version 3.6.0 by 4.0.0.

    A complete list of policies COMPUTER located in the reference of policy here: http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=6199802&sliceId=&dialog...

    Tariq

  • Problem on persistent object.

    Hi friends,

    My Simulator take a long time to load a program I m using the jde4.5 version. If we run clear.bat then we can accelerate simulator but I store an object any on the persistent object. It is persistent any object data erase if I run clear.bat?... is there another way to save the persistent object and make our quick Simulator to load the program. M pls kindly help.

    Kind regards

    s.Kumaran.

    Yes, clean.bat also erases store persistent Simulator (it stored in the *.dmp file).

    But clean.bat takes a long time to run, because it removes all the additional files of the Simulator file system.

  • How to change Local policy setting programmatically

    I need to change the local policy setting [user rights assignment and security policy] & Service settings programmatically for Windows XP I need to customize the settings for our client workstations.   I was watching in Secedit.exe but looking for other options using the Windows API.  Thank you

    Hello

    I suggest to take a look at this following thread and check if it helps.

    http://blogs.msdn.com/b/dsadsi/archive/2009/07/23/working-with-Group-Policy-objects-programmatically-determining-registry-values-to-enable-disable-set-a-specific-policy.aspx

    Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

  • option to Editor local group policy for the administrator account on Windows 7

    I have an administrator account I want to restrict in some respects. I know that this can be done via local group policy. So, I need:

    1. Installation of new programs require an admin password.

    2. Some programs (that I choose) run without admin password.

    3. Held together under one account, without comments, accounts of users or lower privileges.

    No idea how to do it?

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description of the problem you had to restrict access to some programs using the local Group Policy Editor. The Local Group Policy Editor is a snap Microsoft Management Console (MMC) that provides a single user interface through which all the settings of local Group Policy objects can be managed.

    I suggest you to return the article mentioned below and see if it helps you to solve the problem.

    Local Group Policy Editor

    Group management strategies for it professionals

    Hope that the information provided is useful. Let us know if you have any concerns related to Windows. We will be more than happy to help you.

    Kind regards

Maybe you are looking for

  • I can't download the app instagram on my Ipad.

    I can't download the app instagram on my Ipad. I had to uninstall IG and when I go to the App Store, now, there is no application to download. What Miss me?

  • Satellite A500 - 1 GR - upgrade memory RAM but 3 GB of usable system memory

    I have upgraded my laptop to 8 GB (2 * 4 GB) ram. A 64 bit version of Windows 7 shows that I have 8 GB of memory, but there are only 3 GB of usable system memory. How do I use the 8GB. My Bios version is 2.00. In the Bios, I have not found the option

  • Computer Vista gets a black screen and can't connect to internet

    Hi there can someone help me please? He says that my connection is unknown, the dependency service group was able to start can not even connect to my network of ISP :( also I have a:(comme son redémarrage en mode sans échec chaque fois que je l'allum

  • Windows 7 or 10

    Hey, if I don't like no 10 can I go back to 7 and how is it easy to do. cordially robertiandent

  • PC freezing

    When on the internet searching for a Web site, pc crashes and a message appears at the bottom right corner "leave a message". How to thaw and stop what is happening?