public class CityRepository extends Object implements com.reve.db.repo.Repository
| Modifier and Type | Field and Description |
|---|---|
HashMap<String,ArrayList<CityDTO>> |
cityByCityCode |
HashMap<String,CityDTO> |
cityByCityID |
HashMap<String,ArrayList<CityDTO>> |
cityByCityName |
HashMap<String,CityDTO> |
cityByCountryAndCityCode |
HashMap<String,ArrayList<CityDTO>> |
cityByCountryAndStateID |
HashMap<String,CityDTO> |
cityByCountryAndStateIDAndCityCode |
HashMap<String,CityDTO> |
cityByCountryAndStateIDAndCityCodeAndCityName |
static CityRepository |
CityRepository |
static org.slf4j.Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
void |
addToRepository(CityDTO csDTO) |
CityDTO |
getCityByCityCode(int countryID,
int stateID,
int cityCode) |
CityDTO |
getCityByCityCodeAndName(int countryID,
int stateID,
int cityCode,
String cityName) |
ArrayList<Long> |
getCityByNameLike(String cityName) |
ArrayList<CityDTO> |
getCityDTO(int countryID,
int stateID) |
ArrayList<CityDTO> |
getCityDTOByCityCode(String cityCode) |
CityDTO |
getCityDTOByCityID(long cityID) |
ArrayList<CityDTO> |
getCityDTOByCityName(String cityName) |
CityDTO |
getCityWithState(int countryID,
int cityCode) |
static CityRepository |
getInstance() |
String |
getTableName() |
void |
insertToCity(CityDTO cityDTO) |
void |
reload(boolean loadAll) |
public HashMap<String,CityDTO> cityByCountryAndStateIDAndCityCode
public HashMap<String,CityDTO> cityByCountryAndStateIDAndCityCodeAndCityName
public static CityRepository CityRepository
public static org.slf4j.Logger logger
public static CityRepository getInstance()
public CityDTO getCityDTOByCityID(long cityID)
public CityDTO getCityByCityCode(int countryID, int stateID, int cityCode)
public CityDTO getCityByCityCodeAndName(int countryID, int stateID, int cityCode, String cityName)
public CityDTO getCityWithState(int countryID, int cityCode)
public void reload(boolean loadAll)
reload in interface com.reve.db.repo.Repositorypublic void addToRepository(CityDTO csDTO)
public String getTableName()
getTableName in interface com.reve.db.repo.Repositorypublic void insertToCity(CityDTO cityDTO)
Copyright © 2026. All rights reserved.