Doubt about the persistent object

Hi friends,

I've stored data object persistent after that some time, my Simulator has taken a lot of time to load the application so I run clear.bat do fast Simulator. But after I run clear.bat. The values of what I stored in the persistent object had disappeared. Someone at - he said, therefore, it is the persistent object data are parties to cause of the performer, the clear.bat or any other reason. pls clarify my doubt friends...

Kind regards

s.Kumaran.

It is b'caz of clean.bat. Clean.bat will remove all applications and unnecessary files, etc...

Tags: BlackBerry Developers

Similar Questions

  • Question about the persistent object

    Hello

    When I used to store data using persistent object, data also will be deleted after uninstalling the app.

    Is there any data keep possibility even if the app is uninstalled?

    Can anyone give me a suggestion on this?

    Thank you.

    Objects are deleted when no request refers to them.

    So, if you have implemented a custom persistable object, whis would explain the removal.

    Use "Vanilla" persistable objects in the store, such as Hashtable.

  • Doubt on the view objects Tunning

    Hello!. I have the following doubts about tunning display objects:

    If I have the following configuration on a VO:

    All lines

    In batches of: 11

    According to the needs

    Access mode: scroll

    Size range: 10

    Total cases on the Table: more than 100

    That will happen, is that during the initial rendering, view cache fetch with 11 rows of the table and the table UI displays 10. In the subsequent events of scrolling, will make more requests again but not when the user scroll back. My question is this: why, when initial rendering if I put a breakpoint in this executeQueryForCollection, execution reachs overrided method here but in subsequent scroll events (before), it does not run? I understand thast it is the case that the required lines are not yet in the cache. I would like to know a way to test this mode of access and what method is executed at each round trip of the DB. Thankx!

    I don't think ADF needs to run the query again - just it to retrieve the next Recordset.

    So if the cursor is already did open, no need to issue another request.

    You can use the HTTP monitor to monitor network traffic

    Monitoring of the ADF Pages back and forth with the HTTP parser

    And you can use the logging features of the ADF to see running queries.

    Objects in view declarative (your) for better performance of the ADF

  • [ADF, JDev12.1.3] Manages the pageFlowScope same bean validation of the different fragments of BTF. Doubts about the 'object' and 'uiComponents' validator parms

    Hallo,

    I have a 'registration' process bounded with 4 fragments workflow.

    There is in each fragment components entry created by dragging different fields of the same instance of VO.

    The user cannot access the next step if the current step is not correctly filled.

    In the fragment of 1st, the user chooses its type (customer, supplier,...) and in the following steps, the fields are has shown/Asterisk based on her user'type selected (I save the String bean var type managed pageFlowScope dedicated to the btf).

    Because of this in the original Version, by the way the key, there is no other area marked as mandatory.

    To manage the visibility of fields I set the property of rendering the fields (or their container) using EL expressions that read the type in the managed bean stream.

    To manage the fields points, I thought only 2 solutions:

    1)

    For each field to create a validator that checks if the fied was flled and function in the formato (e.g. for emails) right in the successful flowScope bean. So I'll have so many validator functions as areas to manage.


    2)

    Create a unique global validator to which the property of the validator for all fields will point in the managed bean flowScope.

    For example

    public void myGlobalBtfValidator(FacesContext facesContext, UIComponent uiComponent, Object object) {
      if (uIComponet.getId() == "InputTextEmail") {  // Component is in Fragment_1
        // Check if the filed is filled and its format
      }
      if (uiComponet.getId() == "InputTextMobileNumber") {  // Component is in Fragment_2
        // Check if the filed is filled and its format
      }
      if (uiComponet.getId() == "InputTextAddress) {  // Component is in Fragment_3
        // Check if the filed is filled
      }
    // ...
    }
    

    ID' would like to know if the 2nd solution might work and that is the approach recommended among them.

    Then, I would like to know if I can use ther uiComponent parm to the validator without any problem. I ask this question because in many threads, I saw only the parm object used. What are the different function/purpose of these 2 settings?

    Thank you

    Federico

    If you do not want to re-use these validators elsewhere in your application, then method unique validator will be enough.

    Of course, if the implementation of this method only validator will require a huge amount of code, it is probably better to split this option to separate validator methods (to simplify the maintenance).

    BTW, ID of component has to be short, so instead of using the id of the component, set f: attribute on each component of the user interface and to use uIComponet.getAttributes () .get ("attrib_name")

    Dario

  • The BlackBerry object Handles and the persistent object Handles?

    Can someone please what are the object Handles and handles of object persistent in Blackberry? and how are they different?

    Object handles are pointers to a Java object.  Each object that you create in your application using one of them.  Similarly, each object stored in the persistent store contains a handful.

    If you have a complex object you want to store in the persistent store, as a vector that contains a number of complex classes, you can store the vector in a group of objects that you want to save the object handles.  Grouped objects use a single Treaty when it is stored in the persistent store.  The disadvantage is to ungroup the object for editing.

    You will need to balance saving handles object against the drop in performance of separate objects.  Object groups are ideal for the complex elements that are frequently changed.

  • change the value of an object in the content of the persistent object

    Hello

    I'm triyin to make a customizable menu, saving the preferences of the user as a custom class in a hash table which is the content of my persistent object.

    the custom class "Favoritos" is like this:

    public class Favoritos implements Persistable {
          private Boolean[] misFavoritos = new Boolean[10];
    
          public Favoritos() {
            super();
        }
    
        public Boolean[] getMisFavoritos() {
            return misFavoritos;
        }
    
        public void setMisFavoritos(Boolean[] misFavoritos) {
            this.misFavoritos = misFavoritos;
        }
    }
    

    and the hash table custom:

    public class CustomHashtable extends Hashtable implements Persistable {
    
    }
    

    in my menu configuration screen, I show the options selected as Favorites, which are defined as true in Boolean Favoritos object table in the hashtable. I retrieve the values or set them all as false if they have not been registered before, like this:

    PersistentObject persistentObject = PersistentStore.getPersistentObject(KEY);
    if(persistentObject.getContents() != null){
        CustomHashtable persistentHashtable = (CustomHashtable) persistentObject.getContents();
        if(persistentHashtable.containsKey("misFavoritos")){
        misFavoritos = ((Favoritos) persistentHashtable.get("misFavoritos"));
        }
        else{
        misFavoritos = new Favoritos();
        Boolean[] f = {new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false),
                  new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false)};
        misFavoritos.setMisFavoritos(f);
        persistentHashtable.put("misFavoritos", misFavoritos);
        persistentObject.commit();
        }
    }
    

    So I give to the user the possibility to define as true certain values and Boolean table, I try to change them this way:

    misFavoritos.getMisFavoritos()[i] = new Boolean(true);
    persistentHashtable.put("misFavoritos", misFavoritos);
    persistentObject.commit();
    

    Changes are persisted as I navigate the application, I want to say, if I close the configuration screen and open another configuration screen, changes of this show, but I I close application it loosse changes made a show all the elements of the array as false. What I do wrong?

    RuntimeStore is the other location people will such things, but it is cleared to restart the device, not the app.

    If you want to have something that you have to restart the application, then keep your storage apps and turn it off when leaving.

  • I have a doubt about the file .folio and publications

    Hello, I m new here.

    I want to start working with DPS, but I have a doubt about which version to buy.

    At the moment I have one customer just wants to publish a magazine, but my intention is to have more customers and publish more magazines.

    If I buy the unique edition of DPS, I read that I can publish a single file .folio. What it means? Each folio file represents a publication?

    Please, I need help to understand this before you purchase the software.

    Thank you very much

    Paul

    Here's a quick blog I wrote to compare the simple edition and

    multifolio apps:

    http://boblevine.us/Digital-Publishing-Suite-101-single-Edition-vs-multi-Folio-apps/

    Bob

  • Some doubts about the topology, interfaces and security modules

    Hello

    Below, some questions about the ODI:


    1. to use an LKM ODI always ask to use two different DATASERVERS (one for the SOURCE) and another to the TARGET?

    2. what would be the best way to create a new IKM with GROUP BY clauses?

    3. What is the required minimum PROFILE for developers users could import projects created in other ODI environments?

    4. If a particular WORK_REP is lost, it is possible that retrieve projects from version control information stored in the MASTER_REP?

    1.) Yes. LKM always loads data from one root to another.
    More than once I saw that even if there is a single physical server, several servers are configured in the topology Manager. This would lead to the use of a LKM because ODI consider 2 different servers.
    If the physical server is set only once, LKM won't be necessary.

    2.) IKM automatically adds a GROUP BY clause if it detects an aggregation function in the Interface implementation.

    3.) try to use the profile of the creator of NG.

    4.) this is not an easy task. But all the versioned objects are compressed and stored in a BLOB field in the master repository.
    You will need to know the names and versions you need to recover.
    SNP_VERSION and SNP_DATA have this information. Retrieves the field BLOB SNP_DATA and unpack using a zip utility. This will give you the XML property of the object that was transferred.
    Now, you can import this xml file and retrieve the object.

    You will need to loop through all the records in order of I_DATA, then extract to .xml file, and then import them to build the work rep.

  • Doubt about the Index

    Hi all

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production."
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    I have a question about the index. Is - this required that the index will be useful if we have a "WHERE" clause I tried to find myself there but do not.
    In this example I haven't used where clause used but group. But it gives a comprehensive analysis. Is it possible to get the scan interval or something else using Group by?
    SELECT tag_id FROM taggen.tag_master GROUP by tag_id 
    
    Explain Plan:
    Plan hash value: 1688408656
     
    ---------------------------------------------------------------------------------------
    | Id  | Operation             | Name          | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT      |               |  4045 | 20225 |     6  (17)| 00:00:01 |
    |   1 |  HASH GROUP BY        |               |  4045 | 20225 |     6  (17)| 00:00:01 |
    |   2 |   INDEX FAST FULL SCAN| TAG_MASTER_PK |  4045 | 20225 |     5   (0)| 00:00:01 |
    ---------------------------------------------------------------------------------------

    Hello

    SamFisher wrote:
    Since I was on what they do full scan. Is it possible to restrict of fullscan without using where clause?
    I guess having limit clause but not quite know.

    Why?
    If this query is producing good results, then you need a full analysis.
    If fool you somehow the optimizer by doing a scan of interval, it will be slower.

  • Doubts about the line of the error

    Hello

    I have the following schema:

    A publication, "P_REA", which has 15 points of publication.
    And 15 steps associated with this publication.

    Another publication, "P_REA_2010", which has 17 publishing points.
    And 17 sequences associated with this publication.

    Each publication element, P_REA, points to the same table as P_REA_2010.
    Example:

    X: part of publication in P_REA
    Y: element of publication in P_REA_2010
    T: table

    X and puts at the same table "T".

    A customer who had associated with P_REA, is associated with P_REA_2010 without uninstalling with WebToGo.

    By synchronizing this client appears in the queue of the error without any warning and duplicates of publishing points.
    Example:

    X (part of publication in) P_REA 0
    Y (part of publication in) P_REA_2010 0


    Is someone can tell me this error?

    Thank you very much.

    What is the error which is fiven in the queue of the error and how. Table c$ EQ is the error queue header and the first point of failure for a transaction will be the details of the problem in the message.

    When you configure the second request, is
    (a) designed as a replacement for the old man, that is to say: the user will be transferred from P_REA to P_REA_2010
    (b) are completely separate to know: each application uses the same objects, but has elements of different publication their SEO
    (c) two separate requests/publications, but using the same elements of effective publication
    (d) to make two sets of sequences have different names, and you have the starting points, so they could not overlap

    Oracle has normally say that you can't have the same objects in several applications, but it tends to work well if they are published separately (but be careful with the changes that the effect on their triggers and tables of the CEQ/CVR/CLG will happen on a change for each application).

    If you share the publication to fast refresh items you could get some issues such as the data of the COP/MOP$ tables set up in the MGP deal and used as the key for download can be inconsistent that two applications will try and set it and download it.

    If you switch users from one application to another, then remove a user of an application does not automatically deletes the customer odb file, and several application odb files can be there at the same time

  • doubt about the collection of object type

    Hi all

    I'm a newbie!

    I tried an array of type object index, as follows.

    declare

    type ty_tab is table of the directory index ty_test;

    v_tab ty_tab;

    Start
    v_tab (1): = ty_test ('ashok', 1000);
    v_tab (2): = ty_test ('rashmi', 2000);
    v_tab (3): = ty_test ('baby', 3000);

    for me in v_tab.first... loop of v_tab. Last

    dbms_output.put_line (v_tab (i));

    end loop;

    end;

    /

    While running the script above, I got the following error message.
    ORA-06550: line 14, column 8:
    PLS-00306: wrong number or types of arguments in the call to "PUT_LINE '.
    ORA-06550: line 14, column 8:
    PL/SQL: Statement ignored

    Can anyone suggest me where I'm wrong.


    Thanx

    DBMS_OUTPUT. Put_line argument is a scalar value. It does not composite types. You should pass the individual attributes. Assuming that ty_test is:

    SQL> create or replace
      2    type ty_test
      3      as object(
      4                name varchar2(10),
      5                val  number
      6               )
      7  /
    
    Type created.
    
    SQL> 
    

    Use:

    declare
        type ty_tab is table of ty_test index by binary_integer;
        v_tab ty_tab;
    begin
        v_tab(1):=ty_test('ashok',1000);
        v_tab(2):=ty_test('rashmi',2000);
        v_tab(3):=ty_test('baby',3000);
        for i in v_tab.first .. v_tab.last loop
          dbms_output.put_line(rpad(v_tab(i).name,11) || v_tab(i).val);
        end loop;
    end;
    /
    ashok      1000
    rashmi     2000
    baby       3000
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

  • Some doubts about the navigation in unifying

    Hi all

    I had a few questions about unifying navigation.

    Is it possible to move the admin mode user mode access level?

    I mean, if a particular feature as Manager of the shell I can only access from admin mode is it possible to provide access even in user mode?

    If so, how?

    My 2nd question of doubt is, currently, we can access company BPs level "Journal of society" or "Resource Manager" under shell 'Company Workspace'.

    Is it possible to move the "journal of the society" or "Resource Manager" in the folder? If yes how?

    I tried in "navigation user mode" to move the company BPs level at shell of the House, but I can't do it.

    To answer your questions:

    (1) User-Mode browser can have the user feature included. You cannot change the view mode Admin or move functions admin for user mode.

    (2) you cannot move these on the Home tab.

  • Doubts about the speed

    Hello gentlemen;

    I have a few questions, I would like to ask more experienced people here. I have a program running on a computer that has a processor i7 processor. In this computer that I have programmed in LabVIEW, meanwhile in another lab, we have another PC, a little older, a dual core 2.3 Ghz, in this pc, we perform a testing platform for a couple of modems, let us not get into the details.

    My problem is that I discovered recently that my program, I programmed in the computer, i7, much slower work in the other machine, the dual core, so the timings are all wrong and the program does not run correctly. For example, there is a table with 166 values, which, in the i7 machine are filled quickly, leaving almost without delay, however, the double machine heart, it takes a few milliseconds to fill about 20 values in the table, and because of the timing, it can fill more values and so the waveform that I use is all wrong. This, of course, live of the whole program and I can't use it as a test I need to integrate.

    I have create a .exe program in labview and try it in the different PC that's how I got to this question.

    Now, I want to know if there is actually a big problem due to the characteristics of the computer, the program is slow in one machine. I know that, to ensure the eficiently program, I need to use States, sub - vi, idea of producer-consumer machines and other things. However, I discovered this is not a problem of the speed generated by the program, because, if that were the case, the table would eventually fill it completely, however in slow computer, it is not filled more with 20 values.

    Else, helps to hide unnecessary variables in the front panel?, because the time beeing I have keep track of lots of variables in the program, so when I create the .exe I still see them runing to keep this follow-up. In the final version, that I won't need them so I'll delete some and hide front panel some. It helps that require less condition?

    I would like to read your comments on this topic, if you have any ideas in machines to States, sub - vi, etc., if there is a way to force the computer to use more resources in the Labview program, etc.
    I'm not add any VI because, in the current state, I know you will say, state machines, sub.vi and so on, and I think that the main problem is between the difference in computers, and I'm still working in the things of the State/sub-VI/etc

    Thank you once again, we just let this hollow.

    Kind regards

    IRAN.

    Get started with, using suitable as a machine for States stream you can ensure that your large table would be always filled completely before moving on, regardless of how long it takes. Believe it or not add that a delay to your curls will do more all the program run faster and smoother, because while loops are eager and can consume 100% of CPU time just a loop waiting for a button press, at the same time all other processes are fighting for time CPU.

  • Size of the memory or the size of the persistent object

    Hi guys,.

    Anyone know the size of the object or the enduring memory... How we can store the data in this and if insert us more data it affects speed racing application?...

    Thank you

    PAPI M

    Since the same link you mentioned, here is the response from Mark Sohm:

    This value is very obsolete.  The maximum value of 64 k is back at the time 4.0.x.  I have the document updated.  The maximum current is the mega multi byte order.

    Rab

  • problem when getting the value of the persistent object

    Hello

    I am trying to store the State of registration of the user in my App I have used persistent store. But I don't get the bak of the store database. I wrote the code below:

    package com.saiservices.util;
    
    import java.util.Enumeration;
    
    import com.saiservices.ui.Logger;
    
    import net.rim.device.api.system.PersistentObject;
    import net.rim.device.api.system.PersistentStore;
    import net.rim.device.api.util.Persistable;
    
    public class SaiPersistentStore implements Persistable{
    
        private SaiHashTable mElements = null;
        static SaiPersistentStore instance;
        private static final long KEY = xxxxxxxxxxxx;
        private PersistentObject persistentObject = null;
    
        /**
         * Gets the single instance of DataBase.
         *
         * @return single instance of DataBase
         */
        public static SaiPersistentStore getInstance() {
            try {
                if (instance == null) {
                    instance = new SaiPersistentStore();
                }
            } catch (Exception e) {
                instance = null;
            }
            return instance;
        }
    
        private SaiPersistentStore()
        {
             Logger.out("PersistentStoreInfo", "inside constructor  ");
            persistentObject = PersistentStore.getPersistentObject(KEY);
             synchronized (persistentObject)
               {
                   if (persistentObject.getContents() == null)
                   {
                       persistentObject.setContents(new SaiHashTable());
                       persistentObject.commit();
                   }
               }
    
             mElements = (SaiHashTable)persistentObject.getContents();
             if (mElements == null){
                 Logger.out("PersistentStoreInfo", "************"+(mElements == null));
                 mElements = new SaiHashTable();
             }
        }
    
        public String getElement(String key)
        {
            Logger.out("PersistentStoreInfo", "getElement :"+key);
            Logger.out("PersistentStoreInfo", "getElement value   :"+mElements.get(key));
    
            return (String) mElements.get(key);
        }
    
        public void setElement(String key, String value)
        {
            Logger.out("PersistentStoreInfo", "setElement11111 :"+key + "   "+value);
            mElements.put(key, value);
            persistentObject.setContents(mElements);
            Logger.out("PersistentStoreInfo", "setElement22222 :"+key+"   "+value);
            persistentObject.commit();
        }
    
        public Enumeration getAllKeys()
        {
            return mElements.keys();
        }
    
    }
    

    And here's the code for hash table:

    package com.saiservices.util;
    
    import java.util.Hashtable;
    
    import net.rim.device.api.util.Persistable;
    
    public class SaiHashTable extends Hashtable implements Persistable{
    
        public SaiHashTable(){
            super();
        }
        public SaiHashTable(int initialCepacity){
            super(initialCepacity);
        }
    
    }
    

    Now, I'll put the element as follows:

    SaiPersistentStore.getInstance (.setElement("Registration","on"));

    But when I try to get the item in a way theis, gettting null value:

    SaiPersistentStore.getInstance () .getElement ("Register")

    Where I am doing wrong here?

    The fixed. Key hash table was different. Change it and it works...

Maybe you are looking for