db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Torque and transaction support
Date Sun, 22 Jun 2003 19:02:24 GMT
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()?

minfrin@sharp.fm		"There's a moon
					over Bourbon Street

View raw message