Keel transaction support
"Hagerty, Timothy CIV NAVSAFECEN, 52D" <[email protected]>
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <A87876CC4C70F349B0ED74EF9F4CA77604401920@NAEANRFKEX01VA.nadsusea.nads.navy.mil> |
All,
I am doing a set of inserts into our database and I was wondering how keel handles transaction support. I am using the following to reference my connection:
PersistentFactory pf = (PersistentFactory) request.getService(PersistentFactory.ROLE,
request.getDomain());
Then I use the following per each table I will be inserting into:
DefaultPersistent userPersistent = (DefaultPersistent) pf.create(
"xconfName.tableName");
If any of the inserts fail will keel handle the transaction and roll everything back?
Thanks,
Tim