Questions tagged [object-persistence]
147 questions
42
votes
5 answers
Do I ever need to explicitly flush GORM save calls in grails?
I have a strange situation which appears to indicate a GORM cacheing problem
//begin with all book.status's as UNREAD
Book.list().each { book.status = Status.READ ; book.save() }
println (Book.findAllByStatus (Status.READ)) //will print an empty…

Akusete
- 10,704
- 7
- 57
- 73
26
votes
6 answers
*large* python dictionary with persistence storage for quick look-ups
I have a 400 million lines of unique key-value info that I would like to be available for quick look ups in a script. I am wondering what would be a slick way of doing this. I did consider the following but not sure if there is a way to disk map the…

Abhi
- 6,075
- 10
- 41
- 55
21
votes
2 answers
persistent vs immutable data structure
Is there any difference in a persistent and immutable data structure? Wikipedia refers to immutable data structure when discussing persistence but I have a feeling there might be a subtle difference between the two.

Bober02
- 15,034
- 31
- 92
- 178
15
votes
9 answers
With Python, can I keep a persistent dictionary and modify it?
So, I want to store a dictionary in a persistent file. Is there a way to use regular dictionary methods to add, print, or delete entries from the dictionary in that file?
It seems that I would be able to use cPickle to store the dictionary and load…
snk
11
votes
5 answers
.NET Object persistence options
I have a question that I just don't feel like I've found a satisfactory answer for, either that or I've not been looking in the right place.
Our system was originally built using .NET 1.1 (however the projects all now support 3.5) and all entities…

MrEdmundo
- 5,105
- 13
- 46
- 58
9
votes
6 answers
What does a EClassNotFound raised at runtime really mean when the class in question is there at compile and link time, and there explicitly in code?
I have a runtime error happening in the rtl Streaming in of a form, causing an exception EClassNotFound to be raised, while doing TReader.ReadRootComponent. The particular error message is "Class not found TActionList".
What is odd is:
My main…

Warren P
- 65,725
- 40
- 181
- 316
9
votes
2 answers
MVC3 multi step form - How to persist model object
I have a multi step form which uses one model object and I need to persist it between the steps. The object gets saved to the database only after the final step. I have seen people suggest using HTML.Serialize but how secure is this option?
Also my…

mahichR
- 355
- 3
- 14
8
votes
3 answers
Python: how to share an object instance across multiple invocations of a script
I'm use a library which provides a python interface to an external program. This allows me to create:
foo = Foo()
The code above starts a new instance of the Foo program that I can control from within python.
I have a python scripts which needs to…

wk1989
- 611
- 1
- 8
- 19
8
votes
6 answers
What's the easiest way to persist java objects?
Right now I have java program whose classes are currently POJOs and stored in volatile memory. These need to be persisted. As I understand it two popular choices are JDO and the Java Persistence API. For someone who know little about SQL, Torque,…

James
- 5,273
- 10
- 51
- 76
7
votes
2 answers
What's the difference between an ORM and a Persistence framework?
I'm reading up on OOP design patterns and framework design and find myself a bit unshure about the difference between the terms ORM and Persistence framework. Is an ORM a type of PF? What are the different features you can expect of the two?

Alex
- 14,104
- 11
- 54
- 77
7
votes
5 answers
Are there any frameworks/libraries for Delphi that come close to the functionality offered by Bold/Eco?
Not sure what happened to Bold/Eco during the Borland/Codegear/Embarcadero transition but I sure miss it in the newer versions of Delphi. Anyone know of a framework that comes close?
If not, maybe you could suggest a combination of libraries and…

Kenneth Cochran
- 11,954
- 3
- 52
- 117
6
votes
2 answers
How should I do post persist/update actions in doctrine 2.1, that involves re-saving to the db?
Using doctrine 2.1 (and zend framework 1.11, not that it matters for this matter), how can I do post persist and post update actions, that involves re-saving to the db?
For example, creating a unique token based on the just generated primary key'…

Doron
- 3,176
- 7
- 35
- 60
6
votes
3 answers
Is it possible to create stateful web service in C#?
I have now something like this:
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public string Method1()
{
SomeObj so = SomeClass.GetSomeObj(); //this executes very long time, 50s and more
return…

Primoz
- 4,079
- 17
- 56
- 67
6
votes
3 answers
Javascript: persist window object reference?
My javascript code open some windows trough:
var win = window.open();
I store the win refernce in an array with all the other opened windows.
Everything works fine, until the opener is refreshed.
So what i'd like to achive is to get back all the…

bonfo
- 2,110
- 3
- 17
- 14
6
votes
4 answers
Is my idea for an object persistence library useful?
First, I apologize if this is not an appropriate venue to ask this question, but I wasn't really sure where else to get input from.
I have created an early version of a .NET object persistence library. Its features are:
A very simple interface for…

Ben Eirich
- 63
- 4