Package bitel.billing.server.admin.bean
Class AddressManager
java.lang.Object
bitel.billing.server.admin.bean.AddressManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAddressHouse
(AddressHouse house) void
addAddressStreet
(AddressItem street) void
void
addCountry
(Country country) void
deleteAddressParam
(int contractId, int parameterId) void
deleteAddressParams
(String tableId, int recordId) void
deleteExctraAddressParams
(String tableId, String recordId, String key) getAddress
(int contractId, int parameterId) Возвращает значение параметра типа "Адрес" для данного договораgetAddressHouseByHouseAndFrac
(String houseFrac, int streetId, String postIndex, boolean addIfNotExist) getAddressItem
(int itemId, String table) getAddressParam
(String tableId, int recordId, String key) Получение параметра адресного элементаgetAddressParams
(String tableId, int recordId) Получение параметров адресного элемента, в виде ключ - значениеgetAddressStreetByTitle
(String street, int cityId, boolean addIfNotExist) getCity
(int cityId) getCityByTitle
(String cityTitle, int countryId, boolean addIfNotExist) getCountry
(int countryId) getCountryByTitle
(String countryTitle, boolean addIfNotExist) getHouse
(int houseId) int
getHouseId
(String country, String city, String street, String houseFrac, String postIndex, boolean addIfNotExist) void
searchAreaList
(SearchResult<AddressItem> searchResult, int cityId, String areaMask, boolean loadCountryInfo, boolean loadCityInfo) void
searchCityList
(SearchResult<City> searchResult, int countryId, String cityMask, boolean loadCountryInfo) void
searchCountryList
(SearchResult<Country> searchResult, String countryMask) void
searchHouseList
(SearchResult<AddressHouse> searchResult, int areaId, int quarterId, int streetId, String houseFrac, boolean loadInfo, boolean loadCityInfo, boolean loadCountryInfo) void
searchQuarterList
(SearchResult<AddressItem> searchResult, int cityId, String areaMask, boolean loadCountryInfo, boolean loadCityInfo) void
searchStreetList
(SearchResult<AddressItem> searchResult, int cityId, String areaMask, boolean loadCountryInfo, boolean loadCityInfo) void
updateAddress
(int contractId, int parameterId, AddressStruct addressStruct) Обновляет значение параметра типа адресvoid
updateAddressParams
(String tableId, int recordId, String key, String value) void
updateHouse
(AddressHouse house)
-
Field Details
-
TABLE_ADDRESS_COUNTRY
- See Also:
-
TABLE_ADDRESS_CITY
- See Also:
-
TABLE_ADDRESS_AREA
- See Also:
-
TABLE_ADDRESS_QUARTER
- See Also:
-
TABLE_ADDRESS_STREET
- See Also:
-
TABLE_ADDRESS_HOUSE
- See Also:
-
TABLE_ADDRESS_CONFIG
- See Also:
-
-
Constructor Details
-
AddressManager
-
-
Method Details
-
getCountry
-
getCity
-
getAddressItem
-
getHouse
-
getAddressParams
Получение параметров адресного элемента, в виде ключ - значение- Parameters:
tableId
- - например "address_house", "address_street"recordId
- - id записи в tableId- Returns:
-
getAddressParam
Получение параметра адресного элемента- Parameters:
tableId
- - например "address_house", "address_street"recordId
- - id записи в tableIdkey
- - ключ записи- Returns:
-
updateAddressParams
-
deleteAddressParams
-
deleteExctraAddressParams
-
searchCountryList
-
searchCityList
public void searchCityList(SearchResult<City> searchResult, int countryId, String cityMask, boolean loadCountryInfo) -
searchAreaList
public void searchAreaList(SearchResult<AddressItem> searchResult, int cityId, String areaMask, boolean loadCountryInfo, boolean loadCityInfo) -
searchQuarterList
public void searchQuarterList(SearchResult<AddressItem> searchResult, int cityId, String areaMask, boolean loadCountryInfo, boolean loadCityInfo) -
searchStreetList
public void searchStreetList(SearchResult<AddressItem> searchResult, int cityId, String areaMask, boolean loadCountryInfo, boolean loadCityInfo) -
searchHouseList
public void searchHouseList(SearchResult<AddressHouse> searchResult, int areaId, int quarterId, int streetId, String houseFrac, boolean loadInfo, boolean loadCityInfo, boolean loadCountryInfo) -
getAddress
Возвращает значение параметра типа "Адрес" для данного договора- Parameters:
contractId
- код договораparameterId
- код параметра- Returns:
-
updateAddress
Обновляет значение параметра типа адрес- Parameters:
contractId
- код договораparameterId
- код параметраaddressStruct
- значение адреса
-
deleteAddressParam
- Throws:
SQLException
-
addCountry
-
addCity
-
addAddressStreet
-
addAddressHouse
- Throws:
ru.bitel.bgbilling.common.BGException
-
updateHouse
-
getCountryByTitle
-
getCityByTitle
-
getAddressStreetByTitle
-
getAddressHouseByHouseAndFrac
public AddressHouse getAddressHouseByHouseAndFrac(String houseFrac, int streetId, String postIndex, boolean addIfNotExist) -
getHouseId
-