|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.transaction.JdbcTransaction
public class JdbcTransaction
| Constructor Summary | |
|---|---|
JdbcTransaction()
|
|
JdbcTransaction(Connection conn)
|
|
| Method Summary | |
|---|---|
void |
begin()
Begins the transaction. |
void |
commit()
Commits the transaction. |
void |
end()
|
Connection |
getConn()
|
Connection |
getConnection()
|
boolean |
isActive()
Is the transaction still active, in other words, is it still not commited and not rolledback ? |
void |
rollback()
Rollbacks the transaction. |
void |
setConn(Connection conn)
|
void |
setConnection(Connection conn)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcTransaction()
public JdbcTransaction(Connection conn)
| Method Detail |
|---|
public void setConnection(Connection conn)
public void setConn(Connection conn)
public Connection getConn()
public Connection getConnection()
public void begin()
throws Exception
Transaction
begin in interface TransactionException
public void commit()
throws Exception
Transaction
commit in interface TransactionException
public void rollback()
throws Exception
Transaction
rollback in interface TransactionExceptionpublic boolean isActive()
Transaction
isActive in interface Transaction
public void end()
throws Exception
end in interface TransactionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||