|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.jdbc.JDBCTransactionState
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(java.sql.Connection connection)
Deprecated. |
|
JDBCTransactionState(javax.sql.DataSource pool)
Deprecated. |
Method Summary | |
---|---|
void |
addAuthorization(java.lang.String AuthID)
Deprecated. Not used by JDBCTransactionState |
void |
commit()
Deprecated. Commit the maintained state. |
java.sql.Connection |
getConnection()
Deprecated. Retrieve connection for JDBC operation. |
void |
rollback()
Deprecated. Rollback state of Transacstion. |
void |
setTransaction(Transaction transaction)
Deprecated. 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
java.io.IOException
public JDBCTransactionState(javax.sql.DataSource pool) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.sql.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(java.lang.String AuthID) throws java.io.IOException
Postgis will need to override this method to use strong transaction support.
addAuthorization
in interface Transaction.State
AuthID
-
java.io.IOException
Transaction.State.addAuthorization(java.lang.String)
public void commit() throws java.io.IOException
JDBCTransactionState offers native support for this operation
commit
in interface Transaction.State
java.io.IOException
Transaction.State.commit()
public void rollback() throws java.io.IOException
JDBCTransactionState offers native support for this operation
rollback
in interface Transaction.State
java.io.IOException
Transaction.State.rollback()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |