|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.AbstractFeatureSource
org.geotools.data.AbstractFeatureStore
org.geotools.data.AbstractFeatureLocking
public abstract class AbstractFeatureLocking
A Starting point for your own FeatureLocking implementations.
This class extends AbstractFeatureSource and depends on getDataStore().
The implementation of the following functions depends on getDataStore().getLockingManger() not beingnull
:
FeatureStores that have provided their own locking to will need to override the above methods, or provide a custom LockingManger.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.geotools.data.FeatureLocking |
---|
FeatureLocking.Response |
Field Summary |
---|
Fields inherited from class org.geotools.data.AbstractFeatureStore |
---|
transaction |
Fields inherited from class org.geotools.data.AbstractFeatureSource |
---|
hints, queryCapabilities |
Constructor Summary | |
---|---|
AbstractFeatureLocking()
|
|
AbstractFeatureLocking(java.util.Set hints)
This constructors allows to set the supported hints |
Method Summary | |
---|---|
int |
lockFeatures()
Lock all Features |
int |
lockFeatures(org.opengis.filter.Filter filter)
Lock features matching filter . |
int |
lockFeatures(Query query)
Lock features matching Query. |
void |
setFeatureLock(FeatureLock lock)
Provide a FeatureLock for locking opperations to opperate against. |
void |
unLockFeatures()
Unlock all Features. |
void |
unLockFeatures(org.opengis.filter.Filter filter)
Unlock Features specified by filter . |
void |
unLockFeatures(Query query)
Unlock features specified by the query . |
Methods inherited from class org.geotools.data.AbstractFeatureStore |
---|
addFeatures, addFeatures, getTransaction, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction |
Methods inherited from class org.geotools.data.AbstractFeatureSource |
---|
getBounds, getBounds, getCount, getDataStore, getFeatures, getFeatures, getFeatures, getInfo, getName, getQueryCapabilities, getSupportedHints, namedQuery |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.data.FeatureStore |
---|
addFeatures, getTransaction, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction |
Methods inherited from interface org.geotools.data.FeatureSource |
---|
addFeatureListener, getBounds, getBounds, getCount, getDataStore, getFeatures, getFeatures, getFeatures, getInfo, getName, getQueryCapabilities, getSchema, getSupportedHints, removeFeatureListener |
Constructor Detail |
---|
public AbstractFeatureLocking()
public AbstractFeatureLocking(java.util.Set hints)
hints
- Method Detail |
---|
public void setFeatureLock(FeatureLock lock)
Initial Transactional duration locks can be restored with setFeatureLock( FetaureLock.TRANSACTION )
setFeatureLock
in interface FeatureLocking<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
lock
- FeatureLock (or FeatureLock.TRANSACTION );
java.lang.NullPointerException
- If lock was null
FeatureLocking.setFeatureLock(org.geotools.data.FeatureLock)
public int lockFeatures() throws java.io.IOException
lockFeatures
in interface FeatureLocking<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
FeatureLocking.lockFeatures()
public int lockFeatures(org.opengis.filter.Filter filter) throws java.io.IOException
filter
.
lockFeatures
in interface FeatureLocking<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
filter
-
java.io.IOException
public int lockFeatures(Query query) throws java.io.IOException
FeatureStores that have provided their own locking to will need to override this method.
lockFeatures
in interface FeatureLocking<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
query
-
java.io.IOException
- If we could not determine which feature to lock
based on Query
java.lang.UnsupportedOperationException
- When DataStore does not provide a
LockingManager
DataSourceException
- If feature to be locked does not existFeatureLocking.lockFeatures(org.geotools.data.Query)
public void unLockFeatures() throws java.io.IOException
unLockFeatures
in interface FeatureLocking<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
java.io.IOException
FeatureLocking.unLockFeatures()
public void unLockFeatures(org.opengis.filter.Filter filter) throws java.io.IOException
filter
.
unLockFeatures
in interface FeatureLocking<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
filter
-
java.io.IOException
public void unLockFeatures(Query query) throws java.io.IOException
query
.
FeatureStores that have provided their own locking to will need to override this method.
unLockFeatures
in interface FeatureLocking<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
query
-
java.io.IOException
java.lang.UnsupportedOperationException
- If lockingManager is not provided
by DataStore subclass
DataSourceException
- Filter describes an unlocked Feature, or
authorization not heldFeatureLocking.unLockFeatures(org.geotools.data.Query)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |