You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Graham Leggett <mi...@sharp.fm> on 2003/06/22 21:02:24 UTC

Torque and transaction support

Hi all,

Torque allows me to get a java.sql.Connection object from the pool using 
Torque.getConnection(). It also allows me to use the connection in the 
Peer objects, eg SomethingPeer.doSelect(Criteria, Connection).

Does this mean I can use Connection.setAutoCommit(false) to support 
transactions, passing the connection to each Torque object in turn and 
finally using connection.commit()?

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."