public final class JdbcTransaction extends Object implements Transaction
| Constructor and Description |
|---|
JdbcTransaction()
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits this transaction.
|
void |
dispose()
Disposes this transaction.
|
Connection |
getConnection()
Gets the underlying connection of this transaction.
|
boolean |
isActive()
Determines whether this transaction is active.
|
boolean |
isProgrammatic()
Determines whether this transaction is programmatic.
|
void |
rollback()
Rolls back this transaction.
|
void |
setProgrammatic(boolean isProgrammatic)
Sets this transaction is programmatic with the specified flag.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdpublic JdbcTransaction()
throws SQLException
SQLException - SQLExceptionpublic void commit()
Transaction
Throws:
IllegalStateException - if the transaction has already been committed, rolled back
commit in interface Transactionpublic void rollback()
Transaction
Throws:
IllegalStateException - if the transaction has already been committed, rolled back
rollback in interface Transactionpublic boolean isActive()
TransactionisActive in interface Transactiontrue if this transaction is active, returns false otherwisepublic boolean isProgrammatic()
true if this transaction is programmatic, returns false otherwisepublic void setProgrammatic(boolean isProgrammatic)
isProgrammatic - the specified flagpublic void dispose()
public Connection getConnection()
ConnectionCopyright © 2009–2019 B3log. All rights reserved.