Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRAPI Persistence Ideas #1

Open
ProjectMoon opened this issue Jan 23, 2010 · 1 comment
Open

NRAPI Persistence Ideas #1

ProjectMoon opened this issue Jan 23, 2010 · 1 comment

Comments

@ProjectMoon
Copy link
Owner

Might need to approach it from a more generic perspective in order for scalable updates. Something like this to update an object:

Transaction tx = Persistence.beginTransaction("doc.xml", obj.getID());
tx.update(obj);
tx.save();
tx.close();

Or perhaps it could look like this to update a whole document that has a bunch of objects:
Transaction tx = Persistence.beginTransaction("doc.xml");
tx.update(obj1);
tx.update(obj2);
tx.update(obj3);
tx.delete(obj4);
tx.save();
tx.close();

Needs to be very fleshed out, but we shall see how it goes!

@ProjectMoon
Copy link
Owner Author

Overall still a good idea (at least transaction support), but this still needs to be fleshed out a lot. The example above will not work anymore, to be sure..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant