public class DiffTransactionState extends Object implements Transaction.State
Diff
of any modifications.Modifier and Type | Field and Description |
---|---|
protected Diff |
diff |
protected ContentState |
state
ContentState for this transaction used to hold information for FeatureReader implementations
|
protected Transaction |
transaction
The transaction (ie session) associated with this state
|
Modifier | Constructor and Description |
---|---|
|
DiffTransactionState(ContentState state)
Transaction state responsible for holding an in memory
Diff . |
protected |
DiffTransactionState(ContentState state,
Diff diff)
Transaction state responsible for holding an in memory
Diff . |
Modifier and Type | Method and Description |
---|---|
void |
addAuthorization(String AuthID)
Call back used for Transaction.setAuthorization()
|
void |
commit()
Call back used for Transaction.commit()
|
FeatureWriter<SimpleFeatureType,SimpleFeature> |
diffWriter(ContentFeatureStore contentFeatureStore,
FeatureReader<SimpleFeatureType,SimpleFeature> reader)
Provides a wrapper on the provided reader which gives a diff writer.
|
Diff |
getDiff()
Access the in memory Diff.
|
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. |
protected Diff diff
protected Transaction transaction
protected ContentState state
public DiffTransactionState(ContentState state)
Diff
.state
- ContentState for the transactionprotected DiffTransactionState(ContentState state, Diff diff)
Diff
.state
- ContentState for the transactionpublic Diff getDiff()
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.State
public void commit() throws IOException
Transaction.State
commit
in interface Transaction.State
IOException
public void rollback() throws IOException
Transaction.State
rollback
in interface Transaction.State
IOException
public void addAuthorization(String AuthID) throws IOException
Transaction.State
addAuthorization
in interface Transaction.State
IOException
public FeatureWriter<SimpleFeatureType,SimpleFeature> diffWriter(ContentFeatureStore contentFeatureStore, FeatureReader<SimpleFeatureType,SimpleFeature> reader)
contentFeatureStore
- ContentFeatureStorereader
- FeatureReader requiring diff supportCopyright © 1996–2019 Geotools. All rights reserved.