Execute SQL directly within a DBTransaction
Axel Wilhelm Berle <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.general |
|---|---|
| Message-ID | <[email protected]> |
Hi! I am wondering how to execute direct sql code and update some other enhydra database objects in the same transaction. I know how execute a sql statemente directly, via databaseManager.allocateConnection(). I need to know how to combine the two approaches in the same transactional context. Example: DBTransaction dbTrans = databaseManager.createTransaction(); DBConnection enhydraConn = databaseManager.allocateConnection(); 1. execute some direct sql commands (ex. some complex delete statements) 2. execute some DO commands like dbTrans.insert 3. commit Thanks for any help! Axel ===== Axel Wilhelm Berle e-mail: [email protected] Tel: (office) +55 16 618.0090 (mobile) +55 16 9964.6343 __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de