|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJDBCTransactionState
public class JDBCTransactionState
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.
Constructor Summary | |
---|---|
JDBCTransactionState(Connection connection)
|
|
JDBCTransactionState(DataSource pool)
|
Method Summary | |
---|---|
void |
addAuthorization(String AuthID)
Not used by JDBCTransactionState Postgis will need to override this method to use strong transaction support. |
void |
commit()
Commit the maintained state. |
Connection |
getConnection()
Retrieve connection for JDBC operation. |
void |
rollback()
Rollback state of Transacstion. |
void |
setTransaction(Transaction transaction)
Closes internal connection returns it to the ConnectionPool. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCTransactionState(Connection connection) throws IOException
IOException
public JDBCTransactionState(DataSource pool) throws IOException
IOException
Method Detail |
---|
public Connection getConnection()
This connection may be used to issue JDBC operations against this transaction.
Please do not use:
public void setTransaction(Transaction transaction)
setTransaction
in interface Transaction.State
transaction
- Transaction.State.setTransaction(org.geotools.data.Transaction)
public void addAuthorization(String AuthID) throws IOException
Postgis will need to override this method to use strong transaction support.
addAuthorization
in interface Transaction.State
AuthID
-
IOException
Transaction.State.addAuthorization(java.lang.String)
public void commit() throws IOException
JDBCTransactionState offers native support for this operation
commit
in interface Transaction.State
IOException
Transaction.State.commit()
public void rollback() throws IOException
JDBCTransactionState offers native support for this operation
rollback
in interface Transaction.State
IOException
Transaction.State.rollback()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |