Questions tagged [object-persistence]
147 questions
3
votes
2 answers
How to keep an object “persistent” in a C# dll?
I have written a dll in C#, offering a class for use. The dll is called by a C program that I have written. (It’s a plugin to some program. I have to write the plugin’s code in C, but I want to use the functionality of .NET, therefore the dll).
In…

Teetrinker
- 850
- 1
- 15
- 30
3
votes
3 answers
Runtime-changeable ORM / OPF Object Persistence Framework for Delphi
One of the projects I'm working on involves a module that needs to allow end users to create what essentially equates to, their own "object classes," storing data structures / record types that they can design and modify at runtime. The users will…

Jamo
- 3,238
- 6
- 40
- 66
3
votes
1 answer
How to delete instance of persistent object when last client has finished
I'm trying to implement an object persistence model in C++. The idea is that there is a Database object that acts as a factory for various PersistentObjects, each of which being associated with a row in a database table. The Database has a method…

Cartmo
- 73
- 6
3
votes
3 answers
How to save big "database-like" class in python
I'm doing a project with reasonalby big DataBase. It's not a probper DB file, but a class with format as follows:
DataBase.Nodes.Data=[[] for i in range(1,1000)] f.e. this DataBase is all together something like few thousands rows. Fisrt question -…

Rafal
- 129
- 1
- 3
- 7
3
votes
2 answers
How should I persist complex objects as strings in javascript
I would like to persist a complex object tree as a string, that can work in a browser or in nodejs. The most obvious thing to do is to use JSON.stringify and JSON.parse - however I just get the values of the strings and numbers and so on, but what…

nwaltham
- 2,067
- 1
- 22
- 40
3
votes
1 answer
How do I create a G-Wan global variable properly?
--- config.h
extern char userurl[3];
char userurl[3];
--- index.c
include "config.h"
int main(int argc, char *argv[]) {
char *req_g="",*req_p="";
get_arg("g=", &req_g, argc,argv);
get_arg("p=", &req_p, argc,argv);
…

stashfree
- 655
- 6
- 22
3
votes
5 answers
.net object persistence
Can you please suggest a free, open source or low cost .net object persistence framework? I am not looking for ORM tools like NHibernate or Entity Framework. The closest commercial product that describes my need is fastobject.net framework. Thanks.

Ajit Singh
- 1,016
- 13
- 26
3
votes
1 answer
Grails: GORM and BitSets?
I don't see anything in the official documentation about unsupported persistence data types, so I'm working under the assumption that types available in the Groovy language should be handled. However, for the following domain class:
class…

Visionary Software Solutions
- 3,825
- 2
- 29
- 35
3
votes
1 answer
Clientside Caching C#
My wpf client is loading a lot of standing data at startup from the server. So, I want to implement a caching strategy at client side.
I know about the new System.Runtime.Caching namespace in the .NET framework 4. Unfortunately, there is only a…

bitsmuggler
- 1,689
- 2
- 17
- 30
3
votes
3 answers
Persistence framework for JavaScript / Google v8
Is there any kind of persistence framework for JavaScript and/or the Google v8 engine?
I want to store (serialize) a whole graph of objects (including, e.g., functions) and re-load it later. JSON is not sufficient, since it does not permit functions…

JohnB
- 13,315
- 4
- 38
- 65
2
votes
1 answer
For persistent data in Terracotta, how to evolve classes?
We are considering Terracotta for our next project. I am intrigued by its potential to provide data persistence without the need for a separate DBMS. (See also On using Terracotta as a persistence solution)
One of the major pains of software…

Joseph Tanenbaum
- 2,211
- 15
- 30
2
votes
4 answers
Saving any kind of object in relational database
It may be a little fancy but is there any pattern or something to store any kind of Object in Relational database (not nosql) in optimal way?
for example in none optimal way:
class Person{
string FirstName {get;set;}
string LastName…

Jalal
- 6,594
- 9
- 63
- 100
2
votes
2 answers
Why would you "store instances of the class in the database as entities"?
I'm trying to understand a line from the Google Datastore API which says:
JDO uses annotations on Java classes
to describe how instances of the class
are stored in the datastore as
entities, and how entities are
recreated as instances when…

Bijou
- 223
- 1
- 10
2
votes
1 answer
How to persist an object in Rails
I'm implementing a kind of ruby online terminal (just for practice). I am using AJAX from a simple js web application to call a method that evals the input of the "terminal". To avoid problems with the environment and let the user creates his own…
user822159
2
votes
1 answer
Is there a preferred method of database management/object persistence on the iPhone?
I've seen several approaches, and each seem to have significant plusses and minuses. I'm learning iPhone development, I'm building a relatively simple app, which, at it's core, is really not much more than CRUD operations on 3 or four related…

mmc
- 17,354
- 2
- 34
- 52