I have been looking at the BasePeer methods and I would like to do an 
update like:

update tbl set blah = blah + 1 where blah > blarg;

Is this possible using criteria? I have been looking at the doUpdate() 
methods and I am thinking no, I just wanted to double check.

Also, if I want an update and an insert in a single transaction would it 
look like:

Connection connection = Transaction.begin(BlahPeer.DATABASE);
BlahPeer.doUpdate(criteria, connection);
blah.save(connection);
Transaction.commit(connection);

That is what I pieced together from looking at the methods on the classes. 
Will that work?

Will Holcomb



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to