public abstract class AbstractPoiPersistenceManager extends Object implements PoiPersistenceManager
PoiPersistenceManager interface. This implementation
provides functionality for accessing the SQLite database.| Modifier and Type | Field and Description |
|---|---|
protected PoiCategoryManager |
categoryManager |
protected PointOfInterest |
poi |
protected List<PointOfInterest> |
ret |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPoiPersistenceManager() |
| Modifier and Type | Method and Description |
|---|---|
Collection<PointOfInterest> |
findNearPosition(LatLong point,
int distance,
PoiCategoryFilter filter,
String pattern,
int limit)
Fetch
PointOfInterest from underlying storage near a given position. |
PoiCategoryManager |
getCategoryManager() |
protected static String |
getSQLSelectString(PoiCategoryFilter filter,
String pattern)
Gets the SQL query that looks up POI entries.
|
void |
setCategoryManager(PoiCategoryManager categoryManager)
Sets this manager's
PoiCategoryManager for retrieving and editing POI categories. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, findInRect, findPointByID, getPoiFileInfo, insertPointOfInterest, insertPointsOfInterest, isValidDataBase, removePointOfInterestprotected PoiCategoryManager categoryManager
protected final List<PointOfInterest> ret
protected PointOfInterest poi
public Collection<PointOfInterest> findNearPosition(LatLong point, int distance, PoiCategoryFilter filter, String pattern, int limit)
PointOfInterest from underlying storage near a given position.
Only the POIs that are allowed by the PoiCategoryFilter object and matching the data
pattern will be returned.findNearPosition in interface PoiPersistenceManagerpoint - LatLong center of the search.distance - in metersfilter - POI category filter object that helps determining whether a POI should be added to
the set or not (may be null).pattern - the pattern to search in points of interest data (may be null).limit - max number of PointOfInterest to be returned.Collection of PointOfInterest matching a given
PoiCategoryFilter and data pattern near the given position.public PoiCategoryManager getCategoryManager()
getCategoryManager in interface PoiPersistenceManagerprotected static String getSQLSelectString(PoiCategoryFilter filter, String pattern)
filter - The filter object for determining all wanted categories (may be null).pattern - the pattern to search in points of interest data (may be null).public void setCategoryManager(PoiCategoryManager categoryManager)
PoiCategoryManager for retrieving and editing POI categories.setCategoryManager in interface PoiPersistenceManagercategoryManager - The category manager to be set.Copyright © 2016 mapsforge.org