|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTransactionStateDiff
public class TransactionStateDiff
A Transaction.State that keeps a difference table for use with AbstractDataStore.
modules/library/main (gt-main.jar)
Field Summary | |
---|---|
static SimpleFeature |
NULL
A NullObject used to represent the absence of a SimpleFeature. |
Constructor Summary | |
---|---|
TransactionStateDiff(AbstractDataStore dataStore)
|
Method Summary | |
---|---|
void |
addAuthorization(String AuthID)
Call back used for Transaction.setAuthorization() |
void |
commit()
Will apply differences to store. |
Diff |
diff(String typeName)
|
FeatureReader<SimpleFeatureType,SimpleFeature> |
reader(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<SimpleFeatureType,SimpleFeature> |
writer(String typeName,
Filter filter)
Convience Method for a Transaction based FeatureWriter Constructs a DiffFeatureWriter that works against this Transaction. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SimpleFeature NULL
This class is used by TransactionStateDiff as a placeholder to represent features that have been removed. The concept is generally useful and may wish to be taken out as a separate class (used for example to represent deleted rows in a shapefile).
Constructor Detail |
---|
public TransactionStateDiff(AbstractDataStore dataStore)
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.State
public Diff diff(String typeName) throws IOException
IOException
public void addAuthorization(String AuthID) throws IOException
Transaction.State
addAuthorization
in interface Transaction.State
IOException
Transaction.State.addAuthorization(java.lang.String)
public void commit() throws IOException
commit
in interface Transaction.State
IOException
Transaction.State.commit()
public void rollback() throws IOException
Transaction.State
rollback
in interface Transaction.State
IOException
Transaction.State.rollback()
public FeatureReader<SimpleFeatureType,SimpleFeature> reader(String typeName) throws IOException
Constructs a DiffFeatureReader that works against this Transaction.
typeName
- TypeName to aquire a Reader on
IOException
- If typeName is not Manged by this Tansaction Statepublic FeatureWriter<SimpleFeatureType,SimpleFeature> writer(String typeName, Filter filter) throws IOException
Constructs a DiffFeatureWriter that works against this Transaction.
typeName
- Type Name to record differences againstfilter
-
IOException
- If a FeatureRader could not be constucted to record
differences against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |