logo       

Execute SQL directly within a DBTransaction: msg#00033

java.enhydra.general

Subject: Execute SQL directly within a DBTransaction

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: axelberle@xxxxxxxx
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise