/*执行事务过程*/
public DbTran execute(Action <DbTran> handler)
{
_handler = handler;
try {
connection = _context.getConnection();
begin(false);
_handler(this);
commit(false);
}
catch (Exception ex) {
if (queue == null)
{
rollback(false);
}
else
{
queue.rollback(false);
}
throw ex;
}
finally {
close(false);
}
return(this);
}