Persistent Store - is this good or bad idea?

Currently, I have setup an application with a vector of objects that I store, works great!  For my next request, I want to save more information and thought of different ways to do this.  This first one saves a whole bunch of a single type of object...

I want to create 3 vectors over other types of objects I created... I thought I could store each vector with id different, maybe I could make a vector of vectors, or maybe make another object that has inside and just vectors that store... examples below:

the idea of vectors vector

Vector vectorOfAObjects;

Vector vectorOfBObjects;

Vector vectorOfCObjects;

Vector vectorOfDObjects;

Vector storeMyVectors;

storeMyVectors.insertElementAt (vectorOfAObjects, 0);

storeMyVectors.insertElementAt (vectorOfBObjects, 0);

storeMyVectors.insertElementAt (vectorOfCObjects, 0);

storeMyVectors.insertElementAt (vectorOfDObjects, 0);

and then to get my stuff back, I would use storeMyVectors.elementAt (0) to return vectorOfAobjects...

I thought I could do as an object that contained the four vectors as fields... like

class relatedVectors implements {persistable

Vector vectorOfAObjects;

Vector vectorOfBObjects;

Vector vectorOfCObjects;

Vector vectorOfDObjects;

relatedVectors (vector a, vector b, vector c, vector d) {}

vectorOfAObjects = a;

vectorOfBObjects = b;

vectorOfCObjects = c;

vectorOfDObjects = d;

}

}

Finally, could I simply store different types of objects in the same vector, keeping the tack of indexing point?  For some reason any I have in my head a vector must be of the same type of object, but I don't think it's true...  In this case, I could do a vector and the index 1, 5, 9, etc... Once object type and 2, 6, 10 other etc...

What idea is the best?

Thank you!

Vector objects are not the same.  Mix them as you like.

Re have one or several store ID persisting, I actually don't think it's important.  I have found that if you update some of the vector, then commit, it does not take too long - I think that only the modified part commits again.  Replacement of the entire vehicle with a completely new would have more load.

The design basically your data store around the needs of your application, rather than worrying about the consequences this will have on the device.

BUT, a big concern.

Remember that the objects that you save in the persistent store must remain the same to be accessible, if persist you an object with 2 integer values, then change this class so that there are three integer values, then your persistent object becomes illegible.  So try to future proof your persistent objects or design a path for them.

Tags: BlackBerry Developers

Similar Questions

  • A combination of SAP, MCSE (MSSQL), Oracle certifications. Good or bad idea? Why?

    I am a SANDBOX and work on my OCP and MCSE certifications. Will be a combination of SAP, OCP, and MCSE (MSSQL) will be a good idea. It will help me to compete in the International labour market. I need the views of the Professional on this topic.

    Thank you.


    Kind regards
    Faizan Karim

    I see jobs quite often seek the Oracle and MSSQL experience combined.  People with knowledge of the two often deal with migration from one to the other.  Other companies have databases Oracle and MSSQL in place (and commercial reasons to keep) and want to professionals who can manage both.

    Mind you, they want people who know databases, rather than people who have a couple of pieces of paper indicating that they passed a test for the two databases.  Getting certified is a way to start building a base of knowledge, but the test is not the finish line.

  • ranking in firefox 4, this was a bad idea, my suport usually sistem there is 10.4.11

    I was running on 3.6, but I tried to upgrade because when I want to open a mail from yahoo. He won't, and he says it's a bad request. S0, I tried to upgrade to a newer version of firefox and he won run in my system, because my computer version 10.4.11

    For older Macs are not supported in Firefox 4.0 & 5.0, try TenFourFox for the PowerPC running Mac 10.4.11 and 10.5.8.

    http://www.floodgap.com/software/tenfourfox/

    Or stick with Firefox 3.6.19.

    http://www.Mozilla.com/en-us/Firefox/all-older.html

  • Sharing storage LUN through consolidation - is this bad idea?

    Hello

    Our current installation:
    • vSphere 5.0
    • 3 groups, 12 welcomes everyone. (divided into 3 groups because of different generations of CPU)
    • Each cluster has about 20 NetApp FC LUNS assigned. (VMFS created 5.0 from scratch data warehouses)
    I'm thinking now access all LUN 60 for 36 guests in the cluster 3 in order to facilitate the process of moving virtual machines between clusters.
    Is this a bad idea?
    And if so, why?
    / Henrik

    Hello

    The only thing I can think off (maybe not the only one out there...) is the depth of the queue. This article which gives a good overview.

    http://blogs.VMware.com/vSphere/2012/07/troubleshooting-storage-performance-in-vSphere-part-5-storage-queues.html

    He talks of vsphere queues, if possible, look at your depth of storage queues to try to understand if they are sufficient and do some follow up later to see if they need any change.

    I'm not very familiar with the procedure, but I hope that does you in the right place.

    Best regards and best of luck with these changes!

    elgreco81

  • iCal - * terminating app due to an untrapped exception 'NSInternalInconsistencyException', reason: 'this NSPersistentStoreCoordinator has no persistent store (unknown).  He is unable to perform a backup operation

    About a month after moving to OS X 10.11.3 calendar application does not load. I thought that ~/Library/Containers/com.apple.iCal deletion would empty it. I no longer get the error earlier, even if it also started with the ApplicationSpecificInformation:

    * End app because of the untrapped exception 'NSInternalInconsistencyException', reason: 'this NSPersistentStoreCoordinator has no persistent store.  He is unable to perform a backup operation

    Don't know what to do next to timing of recovery. Can someone give me some pointers?

    Thank you

    Process: Calendar [980]

    Path: /Applications/Calendar.app/Contents/MacOS/Calendar

    ID: com.apple.iCal

    Version: 8.0 (2092.2)

    Generation information: iCal-2092002000000000 ~ 70

    Code type: X 86-64 (Native)

    Parent process:? [1]

    Manager: Calendar [980]

    User ID: 501

    Date/time: 2016-02-13 21:05:17.964-0700

    OS version: Mac OS X 10.11.3 (15 d 21)

    Report Version: 11

    Anonymous UUID: EFEF6C45-F9F8-9E0B-6C80-8622F8520537

    Time since started awake: 410 seconds

    Integrity of system protection: enabled

    Crashed thread: 0 dispatch queue: com.apple.main - wire

    Exception type: EXC_CRASH (SIGABRT)

    Exception codes: 0 x 0000000000000000, 0 x 0000000000000000

    Note the exception: EXC_CORPSE_NOTIFY

    Request for clarification:

    Reason for termination due to an untrapped exception 'NSInternalInconsistencyException' app,: ' this NSPersistentStoreCoordinator has no persistent store (unknown).  He is unable to perform a backup operation. »

    ending with an exception uncaught of print type

    Abort() called

    Specific application Backtrace 1:

    0 CoreFoundation 0x00007fff84644ae2 __exceptionPreprocess + 178

    1 libobjc. A.dylib 0x00007fff8a95bf7e objc_exception_throw + 48

    CoreData 0x00007fff8c524fd3 2-[NSPersistentStoreCoordinator _coordinator_you_never_successfully_opened_the_database_so_saving_back_to_it_is _kinda_hard:] + 51

    3 CoreData 0x00007fff8c5251ed-[NSPersistentStoreCoordinator _introspectLastErrorAndThrow] + 77

    4 CoreData 0x00007fff8c5253b1 __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:] _block_invoke + 321

    5 CoreData 0x00007fff8c530b63 gutsOfBlockToNSPersistentStoreCoordinatorPerform + 179

    6 libdispatch.dylib 0x00007fff86f4b33f _dispatch_client_callout + 8

    7 libdispatch.dylib 0x00007fff86f4c926 _dispatch_barrier_sync_f_invoke + 74

    8 CoreData 0x00007fff8c51f662 _perform + 194

    9 CoreData 0x00007fff8c4635c5-[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 533

    10 CoreData 0x00007fff8c4635f4-[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 580

    11 CoreData 0x00007fff8c48e6da-[NSManagedObjectContext save:] + 890

    12 CalendarPersistence 0x00007fff9090ba47-[CalManagedObjectContext save:] + 71

    13 CalendarPersistence 0x00007fff90ab9221 + [CalPersistence createBirthdayCalendar:error:] + 251

    Calendar calendar 14 0x00000001021a5f66 + 278374

    15 calendar 0x00000001021a5852 + 276562

    Calendar calendar 16 0x00000001021a56f3 + 276211

    Calendar calendar 17 0x00000001021a54ef + 275695

    18 libdispatch.dylib 0x00007fff86f56871 _dispatch_call_block_and_release + 12

    19 libdispatch.dylib 0x00007fff86f4b33f _dispatch_client_callout + 8

    20 libdispatch.dylib 0x00007fff86f5ec1d _dispatch_main_queue_callback_4CF + 1685

    21 0x00007fff8458acd9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 CoreFoundation

    22 CoreFoundation 0x00007fff84545d3d __CFRunLoopRun + 1949

    23 CoreFoundation 0x00007fff84545338 CFRunLoopRunSpecific + 296

    24 HIToolbox 0x00007fff85f26935 RunCurrentEventLoopInMode + 235

    25 HIToolbox 0x00007fff85f2676f ReceiveNextEventCommon + 432

    26 HIToolbox 0x00007fff85f265af _BlockUntilNextEventMatchingListInModeWithFilter + 71

    27 AppKit 0x00007fff892a60ee _DPSNextEvent + 1067

    28 AppKit 0x00007fff89672943-[NSApplication _nextEventMatchingEventMask:untilDate:inMode: dequeue:] + 454

    AppKit 29 0x00007fff8929bfc8-[NSApplication run] + 682

    30 AppKit 0x00007fff8921e520 NSApplicationMain + 1176

    Calendar calendar 31 0 x 0000000102164027 + 8231

    32 libdyld.dylib 0x00007fff81d985ad start + 1

    Thread 0 crashed: Dispatch queue: com.apple.main - wire

    0 libsystem_kernel.dylib 0x00007fff8c43f002 __pthread_kill + 10

    1 libsystem_pthread.dylib 0x00007fff8fea85c5 pthread_kill + 90

    2 libsystem_c.dylib 0x00007fff952726e7 demolition + 129

    3 libc ++ abi.dylib 0x00007fff833d6f81 abort_message + 257

    4 libc ++ abi.dylib 0x00007fff833fca47 default_terminate_handler() + 267

    libobjc 5. A.dylib 0x00007fff8a95e6ae _objc_terminate() + 103

    6 libc ++ abi.dylib 0x00007fff833fa19e std::__terminate (void (*) ()) + 8

    7 libc ++ abi.dylib 0x00007fff833fa213 std::terminate() + 51

    8 libdispatch.dylib 0x00007fff86f4b353 _dispatch_client_callout + 28

    libdispatch.dylib 9 _dispatch_main_queue_callback_4CF + 1685 0x00007fff86f5ec1d

    10 com.apple.CoreFoundation 0x00007fff8458acd9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9

    11 com.apple.CoreFoundation 0x00007fff84545d3d __CFRunLoopRun + 1949

    12 com.apple.CoreFoundation 0x00007fff84545338 CFRunLoopRunSpecific + 296

    13 com.apple.HIToolbox 0x00007fff85f26935 RunCurrentEventLoopInMode + 235

    14 com.apple.HIToolbox 0x00007fff85f2676f ReceiveNextEventCommon + 432

    15 com.apple.HIToolbox 0x00007fff85f265af _BlockUntilNextEventMatchingListInModeWithFilter + 71

    16 com.apple.AppKit 0x00007fff892a60ee _DPSNextEvent + 1067

    17 com.apple.AppKit 0x00007fff89672943-[NSApplication _nextEventMatchingEventMask:untilDate:inMode: dequeue:] + 454

    18 com.apple.AppKit 0x00007fff8929bfc8-[NSApplication run] + 682

    19 com.apple.AppKit 0x00007fff8921e520 NSApplicationMain + 1176

    20 com.apple.iCal 0 x 0000000102164027 0 x 102162000 + 8231

    21 libdyld.dylib 0x00007fff81d985ad start + 1

    Thread 1:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Thread 2: Dispatch queue: com.apple.libdispatch - Manager

    0 libsystem_kernel.dylib 0x00007fff8c43fff6 kevent_qos + 10

    1 libdispatch.dylib 0x00007fff86f51099 _dispatch_mgr_invoke + 216

    2 libdispatch.dylib 0x00007fff86f50d01 _dispatch_mgr_thread + 52

    3 wire:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Thread 4:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Wire 5:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Line 6:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Line 7:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Thread 8:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Wire 9:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Thread 10:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Wire 11:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    12 wire:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Line 13: com.apple.NSEventThread

    0 libsystem_kernel.dylib 0x00007fff8c439386 mach_msg_trap + 10

    1 libsystem_kernel.dylib 0x00007fff8c4387c7 mach_msg + 55

    2 com.apple.CoreFoundation 0x00007fff84546624 __CFRunLoopServiceMachPort + 212

    3 com.apple.CoreFoundation 0x00007fff84545aec __CFRunLoopRun + 1356

    4 com.apple.CoreFoundation 0x00007fff84545338 CFRunLoopRunSpecific + 296

    5 com.apple.AppKit 0x00007fff89365065 _NSEventThread + 149

    6 libsystem_pthread.dylib 0x00007fff8fea6c13 _pthread_body + 131

    7 libsystem_pthread.dylib 0x00007fff8fea6b90 _pthread_start + 168

    8 libsystem_pthread.dylib 0x00007fff8fea4375 thread_start + 13

    Thread 14:

    0 libsystem_kernel.dylib 0x00007fff8c43f6de __workq_kernreturn + 10

    1 libsystem_pthread.dylib 0x00007fff8fea6729 _pthread_wqthread + 1283

    2 libsystem_pthread.dylib 0x00007fff8fea4365 start_wqthread + 13

    Thread 15: com.apple.appkit - heartbeat

    0 libsystem_kernel.dylib 0x00007fff8c43f206 __semwait_signal + 10

    1 libsystem_c.dylib 0x00007fff95293d17 nanosleep + 199

    usleep libsystem_c.dylib 2 0x00007fff95293c0a + 54

    3 com.apple.AppKit 0x00007fff894ff6f4-[NSUIHeartBeat _heartBeatThread:] + 2181

    4 com.apple.Foundation 0x00007fff92cbdc6f __NSThread__start__ + 1351

    5 libsystem_pthread.dylib 0x00007fff8fea6c13 _pthread_body + 131

    6 libsystem_pthread.dylib 0x00007fff8fea6b90 _pthread_start + 168

    7 libsystem_pthread.dylib 0x00007fff8fea4375 thread_start + 13

    Thread 0 crashed with X 86 State of Thread (64-bit):

    Rax: 0 x 0000000000000000 rbx: 0000000000000006 rcx 0 x: 0x00007fff5da9be28 rdx: 0 x 0000000000000000

    RDI: 0x000000000000160b rsi: 0 x 0000000000000006 PBR: RER 0x00007fff5da9be50: 0x00007fff5da9be28

    R8: 0 x 0000000000000003 r9: 0x00007fff833fda7c r10: 0 x 0000000008000000 r11: 0 x 0000000000000206

    R12: 0x00007fff5da9bfb0 r13: 0x0000000103001b40 r14: 0x00007fff746a1000 r15: 0x00007fff5da9be90

    RIP: 0x00007fff8c43f002 rfl: 0 x 0000000000000206 cr2: 0x00007fff7554a008

    Please, back up all data. If you have iCloud calendars, archive them by following the instructions on this page under the heading "download a calendar of iCloud.com." all you need is a web browser, not the calendar application. Do the same with the other calendars of network you have, if possible.

    Before taking each of these steps, quit (leave by force if necessary) application. After taking stage, recovery and test. When the problem is solved (or when you have completed step 3 without resolving), stop and close the library folder.

    Step 1

    Hold down the option key and select

    Go ▹ library

    in the Finder menu bar. In the folder that opens, move these items (some may not exist) to the trash, leaving the open library folder:

    Calendars/calendar Cache

    Calendars/calendar Cache-shm

    Calendars/calendar Cache-wal

    Step 2

    Move these files to the library folder on the desktop (even once, some cannot exist):

    Containers/com.apple.CalendarAgent (and all others with a start of name in 'com.apple.Calendar')

    Containers/com.apple.iCal (and all others with a name in 'com.apple.iCal' beginning)

    Preferences/com.apple.CalendarAgent.plist

    Preferences/com.apple.iCal.plist

    If the problem is resolved, you may be able to put some of the items you have moved in this stage, recovery and testing after each of them. Finally, you can find the one that caused the problem; Delete it. Re-create your settings if necessary.

    If the problem is not yet solved, put back to each of the points you have moved in this step, crushing the that may have been created in its place. Do not put the files that you moved in step 1.

    Step 3

    Move this folder on the desktop:

    Calendars

    Note: you do not move the application to calendars; you move a folder named "calendars". If there is no change, put the folder back where he was.

    If the problem is resolved after you move the calendars folder, the event database is corrupted. You have these choices:

    Restore the snapshot folder Time Machine or another backup prior to corruption.

    Use a third party application like "Calendar cleaner" (not tested by me) to try to repair the database.

    For the calendar network accounts, such as iCloud, all you need to do is re-enter the preferences. For subscribed calendars, simply re - subscribe.

  • Someone has created a website for my business before I joined 5 weeks ago. We do not have a lot of information about how they did it! I know it's good Muse - any ideas on how to get into the back-office to do this editing?

    Someone has created a website for my business before I joined 5 weeks ago. We do not have a lot of information about how they did it! I know it's good Muse - any ideas on how to get into the back-office to do this editing?

    You would need to Muse and the original file of Muse. There is no 'back-office' on Muse like WordPress or Joomla sites! If that's what you're looking for.

  • It would be a bad idea?

    That's the problem. We are short run out of storage space in the current location. We need more space in order to properly test a PoC/pilot view using the parameters of non-persistent related clones. We have the space to another location (not far from there, decent pipe between places I think). Storage in these two places is via EMC SAN (here CX4, CX3 to another location). I was thinking of doing a virtual machine the other centre of place data and presentation space as a LUN (for the location here, via the WAN/LAN) for us to use. I know this isn't by far best practices. But we have almost nothing for the space to be used here for the draft opinion right now. Once we can get some people changed over the configuration of clones not related, we should be able to recover enough space to move more to the current SAN...

    Just look to see if it is a bad idea to huge tentacle, or if it's 'ok' in this case. I have concerns about the OPS are / real s of storage made this way. I should be able to get ~ 6 pins on an alternative (SAS drives) location SAN configured upward in a table for use.

    Hello.

    It would be a bad idea?

    It sounds like the makings of a bad idea.    Is the idea of presenting such as iSCSI or NFS storage via a virtual machine?  You can as well try it and see how it goes - it will be the only way to really know, but I have my doubts.  Also consider the risk of performing tests and perceptions of the user if the storage is slow.

    A few other ideas/questions:

    Could test you view in another location?

    Could you unload some virtual machines from one place to the other and free up space?

    Could you afford to mobilize a provisioning to free up space?

    Could take advantage of any local storage?

    It is really bad to be out of space.

    Good luck!

  • is it a bad idea to change the tables

    Dear All;

    Is it a bad idea to modify a table and add a primary key for this table. The primary key will be based on the use of a sequence that indirectly using an insert trigger that generates the next seq for all insertions make this table.

    Hello

    No, it's a good idea.

    It could have been a bad idea to create the primary key, with or without the wrong primary key table, but it is not a bad idea to fix this error.

  • Is the indicator parallel use / * + PARALLEL * / good or bad?

    Hello

    I am facing problem in the use of / * + PARALLEL * / hint in SQL Query took his time to run.

    Parallel Hint degrades performance?

    The FCT_TABLE Table is to have clause PARALLEL (DEGREE by DEFAULT DEFAULT INSTANCES).

    We use the suspicion parallel as SELECT / * + PARALLEL (FCT_TABLE 2)

    Any help will be necessary for me.

    Thanks and greetings

    Re: Using parallel Hint / * + PARALLEL * / good or bad?

    Bad news. (in production systems)

    Why? You, when you code this SQL statement with this point in development, have absolutely no idea of what the production will be like in a month. No idea what data will be. What another charging process will run. Or what will be the version of Oracle and hardware will look like.

    Yet, by coding this suspicion in the production of SQL, you claim you know. And not only that, you claim that you are in a position higher than the CBO to make an informed decision on whether to run SQL in parallel. You declare that production DBA knows his work and how to improve performance, and you have decided for them that the SQL should be run in parallel.

    Be very careful with advice in the code that lands in the production. Generally these efforts will simply cause more problems to solve problems.

    So why the parallel indicator then exist if it is so "+ bad +"?

    Very rarely (if ever) there are absolutes in software engineering. And there are exceptions where this indication can be extremely useful. But it's like a hammer in a Toolbox. You use it on the odd nail. You don't use every day to drive screws because the screwdriver is "+ hard +" to use.

  • Google Chrome good or bad for battery performance?

    I was wondering if Google Chrome's download on a MacBook Pro or if I should just stick with Safari?  I hear that Chrome is good and bad for performance and life of the battery on the MBP machines.  That you have experienced using this browser?  Thank you.

    Try as well as FireFox, and then decide that you prefer. FWIW, I prefer FireFox.

    Did not like the answers in your other thread on the same does Google Chrome tend to use more energy on MacBook Pro?

  • Upgrade to 3.6.15. Now my Add ons (1 password, Download Helper, Multi line Bookmark Toolbar) disappeared. Everyone knows about this problem? Any ideas on how to solve this problem? Thank you.

    Upgrade to 3.6.15. Now my Add ons (1 password, Download Helper, Multi line Bookmark Toolbar) disappeared. Everyone knows about this problem? Any ideas on how to solve this problem? Thank you.

    There may be a problem with one of the files which stores details of the installed extensions. Try to delete these files as described in the section "Corrupt extension files" of this link - https://support.mozilla.com/kb/Unable+to+install+add-ons

    Although this article is not specifically about your problem, the method indicated in the corrupted files extension section can help. When you restart Firefox after you delete these files, the list of installed extensions is rebuilt and cela hopefully solve your problem.

  • can we save the bitmap to persistent store?

    City previous forums:

    Smiley

    Messages: 29
    From: Canada
    Join date: May 2008

    can we save the bitmap to persistent store?
    Posted the: July 14, 2008 12:41
    Response
    I am trying to save a bitmap in Bank persistence and get an error msg saying Bitmap is not persistent.

    is it possible to save a bitmap?

    Thank you

    Yes it is possible.  You can use the Bitmap.getARGB method to get an array of bytes of the Bitmap image.  Then store its contents in a ByteVector.

    I am aware of the problem and would use a solution like that set up by MiuTunes.  Basically, generating thumbnails on the front and store them on the SD card.

    As neil says, there is a small performance lag, compared, but I find personally unacceptable in this application.  Don't know what you develop, and perhaps there are moments where in memory is better.  I'm also assuming (wrongly?) that you were going to leave them in the persistent store after your application ends.  Anyway, Neil knows more about what I do.

  • 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?

  • increase the size of an array stored in the persistent store

    Hello

    I have a question.  I use the persistent store to store the data.

    When there is a new medium, I need to add it in this table.

    The problem is the size of the table is fixed, how do I re - set the size of the array? and save the persistent store return?

    Thank you

    Yes, vector will be better because you can't copy items.

    If you use the simple table of data types would be more effective, I think, you can take a look at Arrays.fill, then.

    No referenced objects are captured by garbage collection.

  • issue of chain vacuum persistent store

    Hello

    I have an application that uses data from a persistent store location. These data are stored in an array of strings. Unfortunately, I made the mistake of allowing a user to save a blank. When this happens, I get an error al load time "empty string eception exception" as always, the application waits for an entry to be present.

    Is it possible to revisit loadtime if one of the persistent object fields is empty and default highlight? I tried the following code, but it does not work:

    protected void GetLocation(){
    
            synchronized(perStore) {
    
                String[] currentinfo = (String[])perStore.getContents();
                if(currentinfo == null) {
                return;
                }
                if(currentinfo[0] == ""){
                        currentinfo[0] = "0";
                    }   
    
                else{
                    edtLong.setText(currentinfo[0]);
                    edtLat.setText(currentinfo[1]);
                    edtTZ.setText(currentinfo[2]);
                    rbgLong.setSelectedIndex(Integer.parseInt(currentinfo[3]));
                    rbgLat.setSelectedIndex(Integer.parseInt(currentinfo[4]));
                    rbgTZ.setSelectedIndex(Integer.parseInt(currentinfo[5]));
                    rbgHemisphere.setSelectedIndex(Integer.parseInt(currentinfo[6]));
                }
                }
    
        }
    

    Any help appreciated.

    "it does not work: '-in what it does not work?

    Here's a suggested code:

    Object o = perStore.getContents ();

    If (o == null) {}

    ...

    } else

    If (!) o instanceof (String [])))) {}

    .....

    } else {}

    String [] currentinfo = o (String []);

    If (currentinfo.length! = 7) {}

    ...

    } else {}

    for (int = 0; i< currentinfo.length;="" i++="" )="">

    FIR (currentInfo [i] == null) {}

    CurrentInfo [i] = "";

    }

    }

    }

    }

Maybe you are looking for