|
|
|---|
Connection c = DriverManager.getConnection( url, user, pass);
c.setAutoCommit( false)
// Do some things which need to be done together
c.commit(); // commit them
// Do some more things which need to be done together
c.commit(); // commit them
c.close();
|
|
|