public class AddressUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
APARTMENT_HOUSE_ID |
static int |
BUILD_TYPE_ID |
static int |
DELIVERY_DATE_PARAM_ID |
static int |
FTTB_PON_ID |
static int |
FTTH_PON_ID |
static int |
HOSTEL_HOUSE_ID |
static Logger |
log |
static int |
RADIO_TECH_ID |
static int |
STUDENT_HOSTEL_HOUSE_ID |
static int |
TECH_CONSTRUCTION_ID |
static int |
TOWN_HOUSE_ID |
Constructor and Description |
---|
AddressUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildAddressValue(ParamAddressValue val) |
static java.lang.String |
buildAddressValue(ParameterAddressValue value,
java.sql.Connection con) |
static java.lang.String |
buildAddressValue(ParameterAddressValue value,
java.sql.Connection con,
java.lang.String formatName) |
static java.lang.String |
buildAddressValueWithoutEmptyStrings(ParamAddressValue val) |
static void |
checkValidParamAddress(int idObject,
int idParam,
java.sql.Connection con) |
static java.lang.Integer |
compareFlats(java.lang.String firstFlat,
java.lang.String secondFlat)
Сравнение номеров двух квартир.
|
static boolean |
flatInRange(java.lang.String flat,
int from,
int to)
Проверяет, входит ли указанный номер квартиры в заданный диапазон квартир.
|
static java.lang.String |
fromSetup(java.lang.String key,
java.lang.String defaultValue) |
static java.lang.Integer[] |
getCityIds(int mainCityId) |
static ParameterAddressValue |
getFirstParameterAddressValue(java.sql.Connection connection,
int objectId,
int paramId) |
static java.lang.String |
getHouseFlat(java.lang.String value) |
static java.lang.String |
getHouseRoom(java.lang.String value) |
static ParameterAddressValue |
getObjectAddress(int objectId,
java.sql.Connection connection,
int addressParameterId) |
static int |
getOnecCityId(int cityId)
Получение id города в справочнике 1с по коду города адресного справочника ЕРП
|
static boolean |
isDRS(java.sql.Connection con,
int houseId) |
static boolean |
isEmptyAddress(ParameterAddressValue address)
Проверяет, является ли адрес пустым значением
|
static boolean |
isFTTH_PON(java.sql.Connection con,
int houseId) |
static boolean |
isGPON(java.sql.Connection con,
int houseId) |
static boolean |
isGPONext(java.sql.Connection con,
int houseId) |
static boolean |
isPhoton(java.sql.Connection con,
int houseId) |
static boolean |
isRadio(java.sql.Connection con,
int houseId) |
public static final int TECH_CONSTRUCTION_ID
public static final int BUILD_TYPE_ID
public static final int TOWN_HOUSE_ID
public static final int APARTMENT_HOUSE_ID
public static final int STUDENT_HOSTEL_HOUSE_ID
public static final int HOSTEL_HOUSE_ID
public static final int FTTH_PON_ID
public static final int RADIO_TECH_ID
public static final int FTTB_PON_ID
public static final int DELIVERY_DATE_PARAM_ID
public static final Logger log
public static java.lang.String buildAddressValueWithoutEmptyStrings(ParamAddressValue val)
public static java.lang.String buildAddressValue(ParamAddressValue val)
public static java.lang.String buildAddressValue(ParameterAddressValue value, java.sql.Connection con) throws BGException
BGException
public static java.lang.String buildAddressValue(ParameterAddressValue value, java.sql.Connection con, java.lang.String formatName) throws BGException
BGException
public static java.lang.String getHouseFlat(java.lang.String value)
public static java.lang.String getHouseRoom(java.lang.String value)
public static java.lang.Integer[] getCityIds(int mainCityId)
public static boolean isGPON(java.sql.Connection con, int houseId) throws BGException
BGException
public static boolean isRadio(java.sql.Connection con, int houseId) throws BGException
BGException
public static boolean isGPONext(java.sql.Connection con, int houseId) throws BGException
BGException
public static boolean isDRS(java.sql.Connection con, int houseId) throws BGException
BGException
public static boolean isPhoton(java.sql.Connection con, int houseId) throws BGException
BGException
public static boolean isFTTH_PON(java.sql.Connection con, int houseId) throws BGException
BGException
public static ParameterAddressValue getFirstParameterAddressValue(java.sql.Connection connection, int objectId, int paramId) throws BGException
BGException
public static void checkValidParamAddress(int idObject, int idParam, java.sql.Connection con) throws BGException
BGException
public static java.lang.String fromSetup(java.lang.String key, java.lang.String defaultValue)
public static int getOnecCityId(int cityId)
cityId
- коду города в адресном справочнике ЕРПpublic static ParameterAddressValue getObjectAddress(int objectId, java.sql.Connection connection, int addressParameterId)
public static boolean isEmptyAddress(ParameterAddressValue address)
address
- проверяемый адресpublic static boolean flatInRange(java.lang.String flat, int from, int to)
flat
- номер проверяемой квартирыfrom
- начало диапазона квартирto
- окончание диапазона квартирpublic static java.lang.Integer compareFlats(java.lang.String firstFlat, java.lang.String secondFlat)
firstFlat
- первая квартираsecondFlat
- вторая квартира