|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.acmsl.queryj.dao.DataSourceTransactionToken
JDBC-related Transaction Token using DataSource class.
| Constructor Summary | |
DataSourceTransactionToken(javax.sql.DataSource dataSource)
Creates a DataSourceTransactionToken using given connection. |
|
| Method Summary | |
void |
beginTransaction()
Gets notified whenever the transaction starts. |
void |
endTransaction()
Takes into account that the transaction is over. |
boolean |
equals(java.lang.Object object)
Checks if this object is logically equal to given one. |
javax.sql.DataSource |
getDataSource()
Retrieves the data source. |
boolean |
isNotYetReleased()
Checks if the transaction has been released. |
boolean |
isRollbackPending()
Checks the need for a rollback of the whole transaction. |
boolean |
isTransactionAlive()
Checks if the transaction is alive. |
void |
release()
Releases the transaction. |
protected void |
setDataSource(javax.sql.DataSource dataSource)
Specifies the data source. |
protected void |
setNotYetReleased(boolean releaseState)
Specifies if the transaction has been released. |
void |
setRollbackPending(boolean flag)
Sets the need for a rollback of the whole transaction. |
protected void |
setTransactionAlive(boolean alive)
Checks if the transaction is alive. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataSourceTransactionToken(javax.sql.DataSource dataSource)
dataSource - the data source to use inside the whole transaction.| Method Detail |
protected void setDataSource(javax.sql.DataSource dataSource)
dataSource - the connection to use inside the whole transaction.public javax.sql.DataSource getDataSource()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the object to compare to.
public boolean isTransactionAlive()
isTransactionAlive in interface TransactionTokentrue if so.protected void setTransactionAlive(boolean alive)
true if so.public boolean isNotYetReleased()
false if so.protected void setNotYetReleased(boolean releaseState)
releaseState - the release state.public void beginTransaction()
beginTransaction in interface TransactionTokenpublic void endTransaction()
endTransaction in interface TransactionTokenpublic void release()
release in interface TransactionTokenpublic void setRollbackPending(boolean flag)
setRollbackPending in interface TransactionTokenflag - to indicate to rollback the transaction.public boolean isRollbackPending()
isRollbackPending in interface TransactionToken
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||