| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.jdbc.JDBCTransactionState
Holds a JDBC Connectino for JDBCDataStore.
An alternative woudl be to hold the connection pool in the Transaction State and only construct a connection when setTransaction is called.
| Constructor Summary | |
| JDBCTransactionState(java.sql.Connection connection) | |
| JDBCTransactionState(ConnectionPool pool) | |
| Method Summary | |
|  void | addAuthorization(java.lang.String AuthID)Not used by JDBCTransactionState Postgis will need to override this method to use strong transaction support. | 
|  void | commit()Commit the maintained state. | 
|  java.sql.Connection | getConnection()Retrive connection for JDBC opperation. | 
|  void | rollback()Rollback state of Transacstion. | 
|  void | setTransaction(Transaction transaction)Closes internal connection returns it to the ConnectionPool. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public JDBCTransactionState(java.sql.Connection connection)
                     throws java.io.IOException
public JDBCTransactionState(ConnectionPool pool)
                     throws java.io.IOException
| Method Detail | 
public java.sql.Connection getConnection()
This connection may be used to issue JDBC opperations against this transaction.
Please do not use:
public void setTransaction(Transaction transaction)
setTransaction in interface Transaction.Statetransaction - Transaction.State.setTransaction(org.geotools.data.Transaction)
public void addAuthorization(java.lang.String AuthID)
                      throws java.io.IOException
Postgis will need to override this method to use strong transaction support.
addAuthorization in interface Transaction.StateAuthID - 
java.io.IOExceptionTransaction.State.addAuthorization(java.lang.String)
public void commit()
            throws java.io.IOException
JDBCTransactionState offers native support for this opperation
commit in interface Transaction.Statejava.io.IOExceptionTransaction.State.commit()
public void rollback()
              throws java.io.IOException
JDBCTransactionState offers native support for this opperation
rollback in interface Transaction.Statejava.io.IOExceptionTransaction.State.rollback()| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||