Package net.rim.device.api.system

Examples of net.rim.device.api.system.PersistentObject.commit()


        contents.setValue("log_LEVEL", logLevel) ;
       
        synchronized (pobj) {
            pobj.setContents(contents);
            pobj.commit();
        }

        return 0;
    }
View Full Code Here


    public void saveSettings() {
        Utilities.log("XXXX " + Thread.currentThread().getName() + " Saving settings");
        synchronized(PersistentStore.getSynchObject()) {
            PersistentObject po = PersistentStore.getPersistentObject(SETTINGS_ID);
            po.setContents(_settings);
            po.commit();
            Utilities.log("XXXX " + Thread.currentThread().getName() + " Saved settings:" + _settings.toString());
        }
    }

    public int getSecure_element() {
View Full Code Here

                    PersistentStore.getPersistentObject(OptionsDemoData.ID);

            synchronized (persist) {
                if (persist.getContents() == null) {
                    persist.setContents(new OptionsDemoData());
                    persist.commit();
                }
            }

            return (OptionsDemoData) persist.getContents();
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.