persistence

Persistence solutions for C++ (with a SQL database)?

Hi, I'm wondering what kind of persistence solutions are there for C++ with a SQL database? In addition to doing things with custom SQL (and encapsulating the data access to DAOs or something similar), are there some other (more general) solutions? Like some general libraries or frameworks (something like Hibernate & co for Java and .N...

Is there a Java equivalent to Apple's Core Data?

I have recently heard a lot of praise for Apple's Core Data architecture. Is there something similar in Java land, so that I can play around with Core Data's ideas (in order to evaluate how it stacks up against something like Hibernate) without having to get into Cocoa/Objective-C first? ...

Java ME object persistence

I know that Serialization (Serializable) is not available in the Micro Edition of Java. It's kinda straight forward to save primitives like int and java.lang.String objects with the RMS. But if I want to save (make persistant) an arbitrary object? Is that possible? ...

Best way to store data for Greasemonkey based crawler?

I want to crawl a site with Greasemonkey and wonder if there is a better way to temporarily store values than with GM_setValue. What I want to do is crawl my contacts in a social network and extract the Twitter URLs from their profile pages. My current plan is to open each profile in it's own tab, so that it looks more like a normal br...

Persisting data suited for enums

Most projects have some sort of data that are essentially static between releases and well-suited for use as an enum, like statuses, transaction types, error codes, etc. For example's sake, I'll just use a common status enum: public enum Status { ACTIVE(10, "Active"); EXPIRED(11, "Expired"); /* other statuses... */ /* c...

Persistent connection using Javascript

Is there a general way to implement part of an application with JavaScript and supplying a persistent connection to a server? I need the server to be able to push data to the client, regardless of the client being behind a firewall. Thanks in advance ...

C#: How to make a form remember its Bounds and WindowState (Taking dual monitor setups into account)

I have made a class which a form can inherit from and it handles form Location, Size and State. And it works nicely. Except for one thing: When you maximize the application on a different screen than your main one, the location and size (before you maximized) gets stored correctly, but when it is maximized (according to its previous st...

ORM or something to handle SQL tables with an order column efficiently

Hi, I got an Java application using SQL tables that contains an ordered list of entities, ordered by an order column. I would like to add/remove things in/from the middle of the list. Now, I'm wondering if some persistence framework / orm / you-name-it could provide this kind of functionality with batch update of order column. At the...

Saving MovieClips and ActionScripts - Flash Shared Objects LSOs

I know its possible to save an object (and all subclasses, arrays, strings) into a Flash LSO, locally to a user's computer. Is it possible to save a MovieClip or a Function? I tried once with MovieClips, but it just stored the reference (pointer) to the MovieClip into the LSO and therefore it was unable to retrieve the whole MovieClip ...

A backup persistence store. What are my options ?

I have a service that accepts callbacks from a provider. Motivation: I do not want to EVER lose any callbacks (unless of course my network becomes unreachable). Let's suppose the impossible happens and my mysql server becomes unreachable for some time, I want to fallback to a secondary persistence store once I've retried several times ...

Database framework developing

Hello everyone, I'm developing (another) java web framework for personal use, and in addition to that I also want to develop somekind of persistence framework. I have already developed and engine that in order to access the table, you must only extend a class and create your fields with the same type and name of those in the table. Ex:...

Does static variables in php persist across the requests?

Static variable gotcha in php I am from Java background and have switched to php for one project recently. I have found one unexpected behaviour in php. Value set to some static variable is not staying persistent across the requests. I am not sure if this is the expected bahaviour. Because in java , you can always persist ver...

Recieving Disparate Content In Java

The Problem: I need to receive different types of content from a number of different sources normalize them and then make them persistent through JDO. Naive Solution?: Create and listen on a specific port for each data type. OR Do a bunch of complicated parsing A Seemingly Ideal Solution: Have custom URL types Ie. FOO://myhost.tl...

Persistence in Ruby on Rails?

Is there a way to persist data between page loads in RoR? I guess I'm looking for something like memcached, but without the overhead of TCP/IP. For example, PHP has APC. The ideal solution would be something in memory. ...

Advise regarding static data in an application and testing

I am working on a pretty typical asp.net web site and using sql server 2005 as database. I have created a Model dll holding the applications typical business logic. The application is dependent of some static data which is stored in the db in lack of a better persistent storage, but since the application is dependent of this data in ord...

How transaction should be handled while using Unit of Work pattern in a WinForm application

How transaction should be handled while using Unit of Work pattern in a WinForm application Should new UOW session be created when form is initialized? Disposed when form is exited? call UOW.commit() in every save? Please advice Any articles on this topic?? ...

What's the difference between persistent objects and linq-to-sql?

My manager as work keeps talking about persistent objects. I'm more familiar with linq-to-sql. What is the differences between them and what is an example of persistent objects? ...

What percent of your codebase is represented by Data Access code?

An interesting question came up on twitter tonight and I tought I'd post it here. Basically, I am wondering what you are using to persist data to your database and an estimation of the percent of your codebase that is data access code. -- Edit -- Other interesting metrics (as noted in the comments) include the number of business clas...

High number of persistent connections

Hi guys, I'm setting up a project and one of the main questions is how to implement a simple message queueing system (something along the line of a messenger chat system). I would like to avoid polling, but there will most likely be a lot of concurrent connections (tens of thousands). These will be HTTP+SSL connections, started from an a...

Why are there self-duplicating curly brackets in persisted WPF RichTextBox?

Our tester threw curly brackets at our persisting WPF RichTextBoxes. On save and reopen, there are magically more curly brackets. I've condensed the issue / code down. <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title...