|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.store.TypeDiffState
public class TypeDiffState
A Transaction.State that keeps a difference table.
This implementation is backed by memory, please feel free to make a scalable implementation backed by a temporary file.
Constructor Summary | |
---|---|
TypeDiffState(ActiveTypeEntry typeEntry)
|
Method Summary | |
---|---|
void |
addAuthorization(java.lang.String AuthID)
Call back used for Transaction.setAuthorization() |
void |
commit()
Will apply differences to store. |
Diff |
diff()
|
FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
reader()
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 |
FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
writer()
Convience Method for a Transaction based FeatureWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeDiffState(ActiveTypeEntry typeEntry)
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() throws java.io.IOException
java.io.IOException
public void addAuthorization(java.lang.String AuthID) throws java.io.IOException
Transaction.State
addAuthorization
in interface Transaction.State
java.io.IOException
Transaction.State.addAuthorization(java.lang.String)
public void commit() throws java.io.IOException
commit
in interface Transaction.State
java.io.IOException
Transaction.State.commit()
public void rollback() throws java.io.IOException
Transaction.State
rollback
in interface Transaction.State
java.io.IOException
Transaction.State.rollback()
public FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader() throws java.io.IOException
Constructs a DiffFeatureReader that works against this Transaction.
java.io.IOException
- If typeName is not Manged by this Tansaction Statepublic FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> writer() throws java.io.IOException
Constructs a DiffFeatureWriter that works against this Transaction.
java.io.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 |