Questions tagged [data-persistence]

256 questions
1
vote
2 answers

Data persistance with BufferedReader and PrintWriter?

I have this simple application with a couple of classes which are all related. There's one, the main one, for which there is only one instance of. I need to save save and load that using a text stream. My instructor requirement is BufferedReader to…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
1
vote
2 answers

How can i read back an object stored in a session?

First of all, here comes the load part. Structure MainStruct Dim Ans1 As String Dim Ans2 As String End Structure Dim Build As New List(Of MainStruct) ... ... ... Session("MyData") = Build The question is how can i read back the…
OrElse
  • 9,709
  • 39
  • 140
  • 253
1
vote
1 answer

How can i preserve list contents on postbacks?

On the page load event of my webpage i fill the list of with the contents of the structure Structure MainStruct Dim Ans1 As String Dim Ans2 As String End Structure Dim Build As New List(Of MainStruct) The problem i that on…
OrElse
  • 9,709
  • 39
  • 140
  • 253
1
vote
1 answer

Data persistence with multiple datasources in DDD

Over the past few months, we've been implementing an application using DDD & CQRS. One thing that I still struggle with is the best way to persist data, especially to multiple datasources of different types. Up to this point, we've used a DAL…
1
vote
0 answers

iOS - securely persisting login

How do you not make a user login to the app every time they relaunch the app? I've been working on a project and I have come to the realization that I do not know what the best way is. Obviously storing their name and password is not secure. There…
stackOverFlew
  • 1,479
  • 2
  • 31
  • 58
1
vote
3 answers

UI freeze while saving images

I'm trying to save a NSDictionary containing 30 images. I'm calling the method to save the dictionary in the viewDidDisappear of my ViewController. The problem is that the UI freeze while saving. It's a small lag, less than a second, but a bit…
Boris88
  • 297
  • 2
  • 14
1
vote
1 answer

Using Couchbase Lite to save a tree datastructure in a Mac App

I am using couchbase lite in my Mac app. I have a source list that displays categories in a tree data structure. Each category is an object that has a title and a children property that's a mutable array. The model header looks something like…
imns
  • 4,996
  • 11
  • 57
  • 80
1
vote
1 answer

Is it possible to store multiple objects using object archving?

Okay, of course it is possible, that's no issue. In my code I have multiple objects that I work with, and they need to be data persistent. To do that I've used object encoding and storing them in a data file. Such as: -(NSString *)dataFilePath { …
Ethan Mick
  • 9,517
  • 14
  • 58
  • 74
1
vote
1 answer

Rails with Wicked gem. Data will not update

I am using the Wicked gem to create an object in multiple steps. Everything seemed to be working fine until I realized that the data was not saving. I noticed it was not saving whenever url: wizard_path was present in the form builder. When that is…
jordan
  • 9,570
  • 9
  • 43
  • 78
1
vote
1 answer

iPhone dev - how to store and retrieve data on sqlite server using RESTful services

I am fairly new to iOS development, but have made an iPhone app that allows users to key simple contact info (name, email, phone, title) into a view that then stores it into a sqlite data base on my MAC. I am using the FMDB library to help with…
1
vote
0 answers

Spring MVC 3 - object persistence between multiple controllers and views

I have the following scenario in my application. There are multiple controllers and views. There is no login/logout functionality and no traditional username/password stuff. The application does some logic on incoming requests directly (no…
Ram
  • 191
  • 1
  • 2
  • 12
1
vote
2 answers

iOS Core Data to-many relationship insert/fetch

In my application I have trip, which has many stops. This has been specified in the .xcdatamodeld file. I can go ahead an manipulate trips in any manner that I want and they all work okay. However, I am running into issues with adding many stops to…
1
vote
1 answer

How to save a dictionary value in a viewstate?

I have a questions and answers page when some questions gets hidden and some gets visible depending upon the predecessor answers. at the end i need all the answers. I am trying to use dictionary for this. I add answers with a key on a changed event…
user2664298
  • 175
  • 1
  • 7
  • 22
1
vote
1 answer

History saving and retrieving in iphone

I have an application in which a user can upload recorded audio or video or picks an existing from library, pictures clicked or picked. I need that user to be able to view, say the last 50 uploaded items, for which I have made a screen called…
user2268539
  • 173
  • 2
  • 3
  • 14
1
vote
2 answers

How do I keep text type data on my app using some form of data persistence

I need to feed some substantial text into my first app which will change as the date changes (i.e every day) for a whole month. This data, I currently have it all on a .doc file which each day's content on that file, properly separated. What…