|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.jdbc.JDBCTransactionState
org.geotools.data.hsql.HsqlTransactionStateDiff
A Transaction.State that keeps a difference table for use with HsqlDataStore. This is a rip-off of TransactionStateDiff which can't be used here due to its dependence on AbstractDataStore. One example of a difference is needing to extend JDBCTransactionState so that the JDBC1DataStore is happy.
| Constructor Summary | |
HsqlTransactionStateDiff(HsqlDataStore dataStore,
java.sql.Connection connection)
|
|
| Method Summary | |
void |
addAuthorization(java.lang.String AuthID)
Call back used for Transaction.setAuthorization() |
void |
commit()
Will apply differences to store. |
java.util.Map |
diff(java.lang.String typeName)
|
java.sql.Connection |
getConnection()
Retrive connection for JDBC opperation. |
FeatureReader |
reader(java.lang.String typeName)
Convience Method for a Transaction based FeatureReader. |
void |
rollback()
Call back used for Transaction.rollback() |
void |
setTransaction(Transaction transaction)
Provides configuration information for Transaction.State setTransaction is called with non null transaction when
Transaction.State is putState into a Transaction. |
FeatureWriter |
writer(java.lang.String typeName,
Filter filter)
Convience Method for a Transaction based FeatureWriter Constructs a DiffFeatureWriter that works against this Transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HsqlTransactionStateDiff(HsqlDataStore dataStore,
java.sql.Connection connection)
throws java.io.IOException
| Method Detail |
public void setTransaction(Transaction transaction)
Transaction.State
setTransaction is called with non null transaction when
Transaction.State is putState into a Transaction. This
tranasction will be used to determine correct event notification.
setTransaction is called with null when removeState is
called (usually during Transaction.close() ).
setTransaction in interface Transaction.StatesetTransaction in class JDBCTransactionStatetransaction - Transaction.State.setTransaction(org.geotools.data.Transaction)
public java.util.Map diff(java.lang.String typeName)
throws java.io.IOException
java.io.IOException
public void addAuthorization(java.lang.String AuthID)
throws java.io.IOException
Transaction.State
addAuthorization in interface Transaction.StateaddAuthorization in class JDBCTransactionStateAuthID -
java.io.IOExceptionTransaction.State.addAuthorization(java.lang.String)
public void commit()
throws java.io.IOException
commit in interface Transaction.Statecommit in class JDBCTransactionStatejava.io.IOExceptionTransaction.State.commit()
public void rollback()
throws java.io.IOException
Transaction.State
rollback in interface Transaction.Staterollback in class JDBCTransactionStatejava.io.IOExceptionTransaction.State.rollback()
public FeatureReader reader(java.lang.String typeName)
throws java.io.IOException
Constructs a DiffFeatureReader that works against this Transaction.
typeName - TypeName to aquire a Reader on
java.io.IOException - If typeName is not Manged by this Tansaction State
public FeatureWriter writer(java.lang.String typeName,
Filter filter)
throws java.io.IOException
Constructs a DiffFeatureWriter that works against this Transaction.
typeName - Type Name to record differences against
java.io.IOException - If a FeatureRader could not be constucted to record
differences againstpublic java.sql.Connection getConnection()
JDBCTransactionStateThis connection may be used to issue JDBC opperations against this transaction.
Please do not use:
getConnection in class JDBCTransactionState
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||