|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.gis.extension.google.CacheElementGoogleTiles
public class CacheElementGoogleTiles
| Field Summary | |
|---|---|
protected static java.lang.String |
BASE_FOLDER
|
(package private) java.awt.image.BufferedImage |
buffImage
|
protected java.util.Map<java.lang.String,java.lang.Object> |
cachedData
|
protected java.sql.Connection |
conn
|
static java.lang.String |
DATABASE_NAME
|
static java.lang.String |
DATABASE_TYPE
|
protected java.io.File |
directory
|
static java.lang.String |
DIRECTORY_KEY
|
protected java.lang.String |
directoryPath
|
protected static java.lang.String |
FILE_LOCATION
|
protected java.lang.String |
FOLDER
|
protected static java.lang.String |
GEOMETRY
|
protected boolean |
hsqlDB
|
protected int |
insertsCounter
|
protected static java.lang.String[] |
keys
|
protected boolean |
localDiskCacheEnabled
|
protected int |
maxCacheSize
|
protected static java.lang.String |
RASTER
|
protected com.vividsolutions.jts.io.WKTReader |
reader
|
protected java.lang.Object |
sourceId
|
protected java.lang.StringBuilder |
sqlBuilder
|
protected java.sql.Statement |
st
|
protected static java.lang.String |
THE_STRING
|
protected boolean |
useByteArrays
|
protected com.vividsolutions.jts.io.WKTWriter |
writer
|
| Fields inherited from interface com.ontimize.util.gis.client.defaultimplementations.cache.ICacheElement |
|---|
BYTE_ARRAYS, CACHE_ON_DISK, DEBUG_MESSAGES, FOLDER_NAME, IMAGE_FORMAT, MAX_CACHE_SIZE, MAX_EXPIRATION_PERIOD |
| Constructor Summary | |
|---|---|
CacheElementGoogleTiles()
|
|
| Method Summary | |
|---|---|
protected boolean |
checkRecordExistence(java.lang.String recordKey)
|
void |
clearCache()
|
void |
deleteData(java.lang.Object deletedKeys)
Delete the data identified by deletedKeys from the cache |
protected void |
deleteDatabase()
|
void |
deleteDataFromFilters(java.lang.Object appliedFilters)
Delete the data related to the given filters |
protected void |
deleteFirstRecords(int totalRecordsToDelete)
|
com.vividsolutions.jts.geom.Geometry |
getIntersectedArea(com.vividsolutions.jts.geom.Envelope interestBoundingBox)
Gets the area resulting from the intersection of the total cache data area and the interest area. |
protected int |
getScaleIndex(java.lang.Object appliedFilters)
|
protected void |
insertCacheRecord(java.util.Hashtable recordValues)
|
java.lang.Object |
insertData(java.lang.Object insertedValues,
java.lang.Object appliedFilters)
Insert new data to the actual cache element |
boolean |
isAreaInCache(java.lang.Object appliedFilters)
Check if the interest area has all its data stored in cache |
protected void |
loadRecordIntoCache(java.lang.String recordKey)
|
java.lang.Object |
queryData(java.lang.Object appliedFilters)
Request data that fits with the applied filters |
void |
setConfigurationParameters(java.lang.Object parameters)
Set the initial configuration parameters. |
void |
setDataKeys(java.lang.String[] keys)
Set the name of the actual data key columns |
void |
setId(java.lang.Object cacheId)
|
void |
updateData(java.lang.Object updatedKeys,
java.lang.Object newValues)
Update the data identified by updatedKeys with the values newValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String THE_STRING
protected static final java.lang.String GEOMETRY
protected static final java.lang.String FILE_LOCATION
protected static final java.lang.String BASE_FOLDER
public static java.lang.String DATABASE_TYPE
protected static final java.lang.String RASTER
protected static final java.lang.String[] keys
public static final java.lang.String DIRECTORY_KEY
public static java.lang.String DATABASE_NAME
protected java.lang.String FOLDER
protected boolean hsqlDB
protected boolean useByteArrays
protected int insertsCounter
protected boolean localDiskCacheEnabled
protected int maxCacheSize
protected java.sql.Connection conn
protected java.sql.Statement st
java.awt.image.BufferedImage buffImage
protected java.io.File directory
protected final java.lang.StringBuilder sqlBuilder
protected final com.vividsolutions.jts.io.WKTWriter writer
protected final com.vividsolutions.jts.io.WKTReader reader
protected java.lang.String directoryPath
protected java.lang.Object sourceId
protected java.util.Map<java.lang.String,java.lang.Object> cachedData
| Constructor Detail |
|---|
public CacheElementGoogleTiles()
| Method Detail |
|---|
public void deleteData(java.lang.Object deletedKeys)
throws java.lang.Exception
ICacheElementdeletedKeys from the cache
deleteData in interface ICacheElementdeletedKeys - Indentifiers of the data to delete
java.lang.Exception
public java.lang.Object insertData(java.lang.Object insertedValues,
java.lang.Object appliedFilters)
throws java.lang.Exception
ICacheElement
insertData in interface ICacheElementinsertedValues - Values to save in cacheappliedFilters - Filters applied in the request of the data to insert
java.lang.Exception
public java.lang.Object queryData(java.lang.Object appliedFilters)
throws java.lang.Exception
ICacheElement
queryData in interface ICacheElementappliedFilters - Filters applied on request
java.lang.Exception
protected int getScaleIndex(java.lang.Object appliedFilters)
throws java.lang.Exception
java.lang.Exception
public void updateData(java.lang.Object updatedKeys,
java.lang.Object newValues)
throws java.lang.Exception
ICacheElementupdatedKeys with the values newValues
updateData in interface ICacheElementupdatedKeys - Indentifiers of the data to updatenewValues - Updated values for the given identifiers
java.lang.Exceptionpublic com.vividsolutions.jts.geom.Geometry getIntersectedArea(com.vividsolutions.jts.geom.Envelope interestBoundingBox)
ICacheElement
getIntersectedArea in interface ICacheElementinterestBoundingBox - Interest area bounding box
public boolean isAreaInCache(java.lang.Object appliedFilters)
ICacheElement
isAreaInCache in interface ICacheElementappliedFilters - Request filters
public void setId(java.lang.Object cacheId)
setId in interface ICacheElementpublic void setDataKeys(java.lang.String[] keys)
ICacheElement
setDataKeys in interface ICacheElementkeys - String array of the key columns identifiers
public void deleteDataFromFilters(java.lang.Object appliedFilters)
throws java.lang.Exception
ICacheElement
deleteDataFromFilters in interface ICacheElementappliedFilters - Filters applied on deletion
java.lang.Exceptionprotected void insertCacheRecord(java.util.Hashtable recordValues)
protected boolean checkRecordExistence(java.lang.String recordKey)
protected void loadRecordIntoCache(java.lang.String recordKey)
public void setConfigurationParameters(java.lang.Object parameters)
ICacheElement
setConfigurationParameters in interface ICacheElementparameters - Cache class configuration parametersprotected void deleteFirstRecords(int totalRecordsToDelete)
public void clearCache()
clearCache in interface ICacheElementprotected void deleteDatabase()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||