|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.gis.client.defaultimplementations.DefaultGisCacheManager
public class DefaultGisCacheManager
Cache manager default implementation
| Field Summary | |
|---|---|
protected IGisClientManager |
clientManager
|
protected java.util.Hashtable<java.lang.Object,ICacheElement> |
dataLayers
|
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
initParams
|
| Constructor Summary | |
|---|---|
DefaultGisCacheManager()
|
|
| Method Summary | |
|---|---|
void |
clearDataCache()
Clears the cache |
void |
deleteData(java.lang.Object layerId,
java.lang.Object deletedKeys,
java.lang.Object appliedFilters)
Delete the data identified by deletedKeys from the data provider
dataProviderId |
com.vividsolutions.jts.geom.Geometry |
getIntersectedArea(java.lang.Object layerId,
com.vividsolutions.jts.geom.Envelope interestBoundingBox)
Gets the area resulting from the intersection of a bounding box with the cached area |
protected java.util.Hashtable<java.lang.String,java.lang.Object> |
getKeyFromValues(java.lang.Object layerId,
java.lang.Object appliedFilters)
Gets the internal cache manager identifier for the given layer identifier and applied filters |
void |
initCache(java.util.Hashtable<java.lang.String,java.lang.Object> parameters)
Init the gis cache manager with the given parameters |
java.lang.Object |
insertData(java.lang.Object layerId,
java.lang.Object insertedValues,
java.lang.Object appliedFilters)
Insert the given data insertedValues into the data
provider indentified by dataProviderId |
boolean |
isDataInCache(java.lang.Object layerId,
java.lang.Object appliedFilters)
Check if the data according to the given filters is stored in cache |
java.lang.Object |
queryData(java.lang.Object layerId,
java.lang.Object appliedFilters)
Request the data related to the filters appliedFilters
for the data provider dataProviderId |
void |
setGisClientManager(IGisClientManager clientManager)
Set the gis client manager |
void |
updateData(java.lang.Object layerId,
java.lang.Object updatedKeys,
java.lang.Object newValues)
Update the data identified by updatedKeys with the values
newValues for the data provider dataProviderId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable<java.lang.Object,ICacheElement> dataLayers
protected IGisClientManager clientManager
protected java.util.Hashtable<java.lang.String,java.lang.Object> initParams
| Constructor Detail |
|---|
public DefaultGisCacheManager()
| Method Detail |
|---|
public void clearDataCache()
IGisCacheManager
clearDataCache in interface IGisCacheManager
public void deleteData(java.lang.Object layerId,
java.lang.Object deletedKeys,
java.lang.Object appliedFilters)
throws java.lang.Exception
IGisCacheManagerdeletedKeys from the data provider
dataProviderId
deleteData in interface IGisCacheManagerlayerId - Layer identifierdeletedKeys - Identifiers of the values to deleteappliedFilters - Previous query applied filters
java.lang.Exception
public java.lang.Object insertData(java.lang.Object layerId,
java.lang.Object insertedValues,
java.lang.Object appliedFilters)
throws java.lang.Exception
IGisCacheManagerinsertedValues into the data
provider indentified by dataProviderId
insertData in interface IGisCacheManagerlayerId - Layer identifierinsertedValues - New values to insertappliedFilters - Previous query applied filters
java.lang.Exception
public java.lang.Object queryData(java.lang.Object layerId,
java.lang.Object appliedFilters)
throws java.lang.Exception
IGisCacheManagerappliedFilters
for the data provider dataProviderId
queryData in interface IGisCacheManagerlayerId - Layer identifierappliedFilters - Previous query applied filters
java.lang.Exception
public void updateData(java.lang.Object layerId,
java.lang.Object updatedKeys,
java.lang.Object newValues)
throws java.lang.Exception
IGisCacheManagerupdatedKeys with the values
newValues for the data provider dataProviderId
updateData in interface IGisCacheManagerlayerId - Layer identifierupdatedKeys - Identifiers of the values to updatenewValues - Values to update
java.lang.Exceptionpublic void initCache(java.util.Hashtable<java.lang.String,java.lang.Object> parameters)
IGisCacheManager
initCache in interface IGisCacheManagerparameters - Gis cache manager configuration parameters
public boolean isDataInCache(java.lang.Object layerId,
java.lang.Object appliedFilters)
IGisCacheManager
isDataInCache in interface IGisCacheManagerlayerId - Layer identifierappliedFilters - Applied filters on data request
public com.vividsolutions.jts.geom.Geometry getIntersectedArea(java.lang.Object layerId,
com.vividsolutions.jts.geom.Envelope interestBoundingBox)
IGisCacheManager
getIntersectedArea in interface IGisCacheManagerlayerId - Layer identifierinterestBoundingBox - Area of interest
protected java.util.Hashtable<java.lang.String,java.lang.Object> getKeyFromValues(java.lang.Object layerId,
java.lang.Object appliedFilters)
layerId - Layer identifierappliedFilters - Current request applied filters
public void setGisClientManager(IGisClientManager clientManager)
IGisCacheManager
setGisClientManager in interface IGisCacheManagerclientManager - Gis Client Manager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||