Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
com.gisgraphy.domain.geoloc.entity.Adm

Packages that use Adm
com.gisgraphy.domain.geoloc.entity |
com.gisgraphy.domain.repository |

Uses of Adm in com.gisgraphy.domain.geoloc.entity

Methods in com.gisgraphy.domain.geoloc.entity that return Adm
`Adm` | `GisFeature.getAdm()`
`Adm` | `Adm.getParent()` Returns The parent Adm in the Adm tree structure

Methods in com.gisgraphy.domain.geoloc.entity that return types with arguments of type Adm
`java.util.List<Adm>` | `Adm.getChildren()` Return the Adms of the higher Level

Methods in com.gisgraphy.domain.geoloc.entity with parameters of type Adm
`void` | `Adm.addChild(Adm child)` Do a double set : Add (not replace !
`void` | `GisFeature.setAdm(Adm adm)`
`void` | `Adm.setParent(Adm parent)` Set the parent Adm in the tree structure

Method parameters in com.gisgraphy.domain.geoloc.entity with type arguments of type Adm
`void` | `Adm.addChildren(java.util.List<Adm> children)` Do a double set : Add (not replace !)
`void` | `Adm.setChildren(java.util.List<Adm> children)` Set the Adms of a higher level

Uses of Adm in com.gisgraphy.domain.repository

Methods in com.gisgraphy.domain.repository that return Adm
`Adm` | `AdmDao.getAdm(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code, java.lang.String adm3Code, java.lang.String adm4Code)`
`Adm` | `IAdmDao.getAdm(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code, java.lang.String adm3Code, java.lang.String adm4Code)` Retrieve the Adm of the highest level according to the AdmXcode.
`Adm` | `AdmDao.getAdm1(java.lang.String countryCode, java.lang.String adm1Code)`
`Adm` | `IAdmDao.getAdm1(java.lang.String countryCode, java.lang.String adm1Code)`
`Adm` | `AdmDao.getAdm2(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code)`
`Adm` | `IAdmDao.getAdm2(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code)`
`Adm` | `AdmDao.getAdm3(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code, java.lang.String adm3Code)`
`Adm` | `IAdmDao.getAdm3(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code, java.lang.String adm3Code)`
`Adm` | `AdmDao.getAdm4(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code, java.lang.String adm3Code, java.lang.String adm4Code)`
`Adm` | `IAdmDao.getAdm4(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code, java.lang.String adm3Code, java.lang.String adm4Code)`
`Adm` | `AdmDao.getAdmOrFirstValidParentIfNotFound(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code, java.lang.String adm3Code, java.lang.String adm4Code)`
`Adm` | `IAdmDao.getAdmOrFirstValidParentIfNotFound(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code, java.lang.String adm3Code, java.lang.String adm4Code)` Return The Adm for the specified Code in the same way of `IAdmDao.getAdm(String, String, String, String, String)` or the first valid parent if no Adm is found with the specified codes.
`Adm` | `AdmDao.save(Adm adm)` Check that codes are consistent according the level (see `isConsistentForLevel()` and save it in the datastore
`Adm` | `AdmDao.suggestMostAccurateAdm(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code, java.lang.String adm3Code, java.lang.String adm4Code, GisFeature gisfeature)`
`Adm` | `IAdmDao.suggestMostAccurateAdm(java.lang.String countryCode, java.lang.String adm1Code, java.lang.String adm2Code, java.lang.String adm3Code, java.lang.String adm4Code, GisFeature gisFeature)` This method is used when `ImporterConfig.isTryToDetectAdmIfNotFound()` is true or when error correction is needed. the algorithm will return an Adm according the specified rules: If an Adm with the specified code is found (see `IAdmDao.getAdm(String, String, String, String, String)`) : retrun it If an Adm with the highest not null level is found for the specified country (e.g : if adm1,2,3 are specified and adm4 is null and it exist an adm with level 3 for the specified adm3Code then it will be return) If no parent Adm is found (see `IAdmDao.getAdmOrFirstValidParentIfNotFound(String, String, String, String, String)` : return Adm with the highest not null level If a parent Adm is found (see `IAdmDao.getAdmOrFirstValidParentIfNotFound(String, String, String, String, String)` : If the difference beetween the Adm and The parent Adm is <=2 : we assume that it is an error with only one code and return the Adm with the highest not null level If the difference is >1 we assume that there is too much error and return the nearest parent If No Adm with the highest not null level is found for the specified country If a parent Adm is found (see `IAdmDao.getAdmOrFirstValidParentIfNotFound(String, String, String, String, String)` : return Adm with the highest not null level : return the Parent If no parent is found : return null

Methods in com.gisgraphy.domain.repository that return types with arguments of type Adm
`java.util.List<Adm>` | `AdmDao.getAdmByCountryAndCodeAndLevel(java.lang.String countryCode, java.lang.String admCode, int level)`
`java.util.List<Adm>` | `IAdmDao.getAdmByCountryAndCodeAndLevel(java.lang.String countryCode, java.lang.String admCode, int level)` Returns The Adm with the specified code and the specified level for the specified country code.
`java.util.List<Adm>` | `AdmDao.getAllbyLevel(int level)`
`java.util.List<Adm>` | `IAdmDao.getAllbyLevel(int level)`
`java.util.List<Adm>` | `AdmDao.getDirties()`
`java.util.List<Adm>` | `AdmDao.getUnused()`
`java.util.List<Adm>` | `IAdmDao.getUnused()`

Methods in com.gisgraphy.domain.repository with parameters of type Adm
`Adm` | `AdmDao.save(Adm adm)` Check that codes are consistent according the level (see `isConsistentForLevel()` and save it in the datastore

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

Copyright © 2009. All Rights Reserved.