|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.juddi.util.jdbc.Transaction
public class Transaction
Transaction txn = new Transaction(); txn.begin(conn1); txn.begin(conn2); txn.begin(conn3); txn.commit(); txn.rollback();
| Constructor Summary | |
|---|---|
Transaction()
default constructor |
|
| Method Summary | |
|---|---|
void |
begin(java.sql.Connection conn)
If the connection is known then do nothing. |
void |
commit()
commit on all connections. |
void |
rollback()
rollback on all connections. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Transaction()
| Method Detail |
|---|
public void begin(java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLException
public void commit()
throws java.sql.SQLException
java.sql.SQLException
public void rollback()
throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||