|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGisFeatureDao
Interface of data access object for GisFeature
Method Summary | |
---|---|
int |
deleteAllExceptAdmsAndCountries()
Delete all gisFeatures and subclass except Adms and countries (gisFeature with null featureCode will be deleted too). this method is usefull when gisFeature 'belongs' to some adms and we want to delete the gisfeature first and then the adms and countries. |
java.util.List<GisFeatureDistance> |
getNearestAndDistanceFrom(com.vividsolutions.jts.geom.Point point,
double distance,
boolean includeDistanceField,
java.lang.Class<? extends GisFeature> requiredClass)
|
java.util.List<GisFeatureDistance> |
getNearestAndDistanceFrom(com.vividsolutions.jts.geom.Point point,
double distance,
int firstResult,
int maxResults,
boolean includeDistanceField,
java.lang.Class<? extends GisFeature> requiredClass)
tips to search the nearestplace use firstresult=1 and maxResults=1 |
java.util.List<GisFeatureDistance> |
getNearestAndDistanceFromGisFeature(GisFeature gisFeature,
double distance,
boolean includeDistanceField,
java.lang.Class<? extends GisFeature> requiredClass)
|
java.util.List<GisFeatureDistance> |
getNearestAndDistanceFromGisFeature(GisFeature gisFeature,
double distance,
int firstResult,
int maxResults,
boolean includeDistanceField,
java.lang.Class<? extends GisFeature> requiredClass)
tips to search the nearestplace use firstresult=1 and maxResults=1 |
java.util.List<GisFeature> |
listAllFeaturesFromText(java.lang.String name,
boolean includeAlternateNames)
Do a full text search for the given name. |
Methods inherited from interface com.gisgraphy.domain.repository.IGisDao |
---|
createGISTIndexForLocationColumn, getByFeatureId, getDirties, getEager, getNearestAndDistanceFrom, getNearestAndDistanceFrom, getNearestAndDistanceFromGisFeature, getNearestAndDistanceFromGisFeature, listByFeatureIds, listByName, listFromText |
Methods inherited from interface com.gisgraphy.domain.repository.IDao |
---|
count, deleteAll, deleteAll, exists, flushAndClear, get, getAll, getAllPaginate, getPersistenceClass, remove, save, setFlushMode |
Method Detail |
---|
java.util.List<GisFeature> listAllFeaturesFromText(java.lang.String name, boolean includeAlternateNames)
name
- the name or zipcode of the GisFeature to searchincludeAlternateNames
- wether we search in the alternatenames and names
GenericGisDao.MAX_FULLTEXT_RESULTS
;IGisDao.listFromText(String, boolean)
java.util.List<GisFeatureDistance> getNearestAndDistanceFromGisFeature(GisFeature gisFeature, double distance, int firstResult, int maxResults, boolean includeDistanceField, java.lang.Class<? extends GisFeature> requiredClass)
gisFeature
- The GisFeature from which we want to find GIS Objectdistance
- distance The radius in metersfirstResult
- the firstResult index (for pagination), numbered from 1,
if < 1 : it will not be taken into accountmaxResults
- The Maximum number of results to retrieve (for
pagination), if <= 0 : it will not be taken into acountrequiredClass
- the class of the object to be retireved
GisFeatureDistance
java.util.List<GisFeatureDistance> getNearestAndDistanceFromGisFeature(GisFeature gisFeature, double distance, boolean includeDistanceField, java.lang.Class<? extends GisFeature> requiredClass)
gisFeature
- The GisFeature from which we want to find GIS Objectdistance
- distance The radius in metersrequiredClass
- the class of the object to be retireved
GisFeatureDistance
java.util.List<GisFeatureDistance> getNearestAndDistanceFrom(com.vividsolutions.jts.geom.Point point, double distance, int firstResult, int maxResults, boolean includeDistanceField, java.lang.Class<? extends GisFeature> requiredClass)
point
- The point from which we want to find GIS Objectdistance
- distance The radius in metersfirstResult
- the firstResult index (for pagination), numbered from 1,
if < 1 : it will not be taken into accountmaxResults
- The Maximum number of results to retrieve (for
pagination), if <= 0 : it will not be taken into acountrequiredClass
- the class of the object to be retireved
GisFeatureDistance
java.util.List<GisFeatureDistance> getNearestAndDistanceFrom(com.vividsolutions.jts.geom.Point point, double distance, boolean includeDistanceField, java.lang.Class<? extends GisFeature> requiredClass)
point
- The point from which we want to find GIS Objectdistance
- distance The radius in metersrequiredClass
- the class of the object to be retireved
GisFeatureDistance
int deleteAllExceptAdmsAndCountries()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |