|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.jdbc.JDBCFeatureSource
org.geotools.data.jdbc.JDBCFeatureStore
org.geotools.data.jdbc.JDBCFeatureLocking
A Starting point for your own FeatureLocking implementations.
This class extends JDBCFeatureSource and depends on getDataStore().
The implementation of the following functions depends on getDataStore().getLockingManger() not beingnull:
JDBCFeatureLocking that have provided their own locking to will need to override the above methods, or provide a custom LockingManger.
| Nested Class Summary |
| Nested classes inherited from class org.geotools.data.FeatureLocking |
FeatureLocking.Response |
| Field Summary |
| Fields inherited from class org.geotools.data.jdbc.JDBCFeatureStore |
transaction |
| Constructor Summary | |
JDBCFeatureLocking(JDBC1DataStore jdbcDataStore,
FeatureType featureType)
|
|
| Method Summary | |
int |
lockFeatures()
Lock all Features |
int |
lockFeatures(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(Filter filter)
Unlock Features specified by filter. |
void |
unLockFeatures(Query query)
Unlock features specified by the query.
|
| Methods inherited from class org.geotools.data.jdbc.JDBCFeatureStore |
addFeatures, assertFids, assertFilter, fids, getInProcessLockingManager, getTransaction, modifyFeatures, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction |
| Methods inherited from class org.geotools.data.jdbc.JDBCFeatureSource |
addFeatureListener, close, close, close, count, getBounds, getBounds, getConnection, getCount, getDataStore, getFeatures, getFeatures, getFeatures, getJDBCDataStore, getSchema, removeFeatureListener |
| 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, getSchema, removeFeatureListener |
| Constructor Detail |
public JDBCFeatureLocking(JDBC1DataStore jdbcDataStore,
FeatureType featureType)
| Method Detail |
public void setFeatureLock(FeatureLock lock)
Initial Transactional duration locks can be restored with setFeatureLock( FetaureLock.TRANSACTION )
setFeatureLock in interface FeatureLockinglock - FeatureLock (or FeatureLock.TRANSACTION );
java.lang.NullPointerException - DOCUMENT ME!FeatureLocking.setFeatureLock(org.geotools.data.FeatureLock)
public int lockFeatures()
throws java.io.IOException
lockFeatures in interface FeatureLockingjava.io.IOExceptionFeatureLocking.lockFeatures()
public int lockFeatures(Filter filter)
throws java.io.IOException
filter.
lockFeatures in interface FeatureLockingfilter -
java.io.IOExceptionFeatureLocking.lockFeatures(org.geotools.filter.Filter)
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 FeatureLockingquery -
java.io.IOException - DOCUMENT ME!
java.lang.UnsupportedOperationException - DOCUMENT ME!
DataSourceException - If we have any lock conflictsFeatureLocking.lockFeatures(org.geotools.data.Query)
public void unLockFeatures()
throws java.io.IOException
unLockFeatures in interface FeatureLockingjava.io.IOExceptionFeatureLocking.unLockFeatures()
public void unLockFeatures(Filter filter)
throws java.io.IOException
filter.
unLockFeatures in interface FeatureLockingfilter -
java.io.IOExceptionFeatureLocking.unLockFeatures(org.geotools.filter.Filter)
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 FeatureLockingquery -
java.io.IOException
java.lang.UnsupportedOperationException - DOCUMENT ME!
DataSourceException - DOCUMENT ME!FeatureLocking.unLockFeatures(org.geotools.data.Query)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||