| |
|
| java.lang.Object org.geotools.data.jdbc.JDBCTransactionState
All known Subclasses: org.geotools.data.postgis.VersionedJdbcTransactionState, org.geotools.data.hsql.HsqlTransactionStateDiff,
JDBCTransactionState | public class JDBCTransactionState implements State(Code) | | Holds a JDBC Connectino for JDBCDataStore.
An alternative would be to hold the connection pool in the Transaction
State and only construct a connection when setTransaction is called.
author: Jody Garnett, Refractions Research |
Method Summary | |
public void | addAuthorization(String AuthID) Not used by JDBCTransactionState
Postgis will need to override this method to use strong transaction
support. | public void | commit() Commit the maintained state. | public Connection | getConnection() Retrieve connection for JDBC operation. | public void | rollback() Rollback state of Transacstion. | public void | setTransaction(Transaction transaction) Closes internal connection returns it to the ConnectionPool. |
addAuthorization | public void addAuthorization(String AuthID) throws IOException(Code) | | Not used by JDBCTransactionState
Postgis will need to override this method to use strong transaction
support.
See Also: org.geotools.data.Transaction.State.addAuthorization(java.lang.String) Parameters: AuthID - throws: IOException - |
commit | public void commit() throws IOException(Code) | | Commit the maintained state.
JDBCTransactionState offers native support for this operation
See Also: org.geotools.data.Transaction.State.commit throws: IOException - |
getConnection | public Connection getConnection()(Code) | | Retrieve connection for JDBC operation.
This connection may be used to issue JDBC operations against
this transaction.
Please do not use:
- setAutoCommit()
- commit()
- rollback()
|
rollback | public void rollback() throws IOException(Code) | | Rollback state of Transacstion.
JDBCTransactionState offers native support for this operation
See Also: org.geotools.data.Transaction.State.rollback throws: IOException - |
setTransaction | public void setTransaction(Transaction transaction)(Code) | | Closes internal connection returns it to the ConnectionPool.
See Also: org.geotools.data.Transaction.State.setTransaction(org.geotools.data.Transaction) Parameters: transaction - |
|
|
|