Class BaseLoadManager
java.lang.Object
ru.bitel.bgbilling.plugins.fias.server.bean.BaseLoadManager
- Direct Known Subclasses:
AddressLoadManager,HouseLoadManager
public class BaseLoadManager
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringADDRESS_CITYprotected static java.lang.StringADDRESS_HOUSEprotected static java.lang.StringADDRESS_STREETprotected java.sql.Connectionconprotected static java.lang.StringFIAS_CITY_MAPprotected static java.lang.StringFIAS_HOUSE_MAPprotected static java.lang.StringFIAS_HOUSE_TEMPprotected static java.lang.StringFIAS_STREET_MAPprotected static java.lang.StringFIAS_STREET_TEMPprotected org.apache.logging.log4j.Loggerloggerprotected booleanPROFILE -
Constructor Summary
Constructors Constructor Description BaseLoadManager(java.sql.Connection con) -
Method Summary
Modifier and Type Method Description voidclearFiasTable()protected voidexceptionLog(java.lang.Exception ex)protected java.sql.ResultSetexecuteQuery(java.sql.PreparedStatement ps)protected java.sql.ResultSetexecuteQuery(java.sql.Statement st, java.lang.String query)protected <T extends AddressObj>
TloadAddressObjFromRs(T obj, java.sql.ResultSet rs)protected CityloadCityFromRs(java.sql.ResultSet rs)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
FIAS_CITY_MAP
protected static java.lang.String FIAS_CITY_MAP -
FIAS_STREET_MAP
protected static java.lang.String FIAS_STREET_MAP -
ADDRESS_STREET
protected static java.lang.String ADDRESS_STREET -
FIAS_STREET_TEMP
protected static java.lang.String FIAS_STREET_TEMP -
ADDRESS_CITY
protected static java.lang.String ADDRESS_CITY -
FIAS_HOUSE_TEMP
protected static java.lang.String FIAS_HOUSE_TEMP -
FIAS_HOUSE_MAP
protected static java.lang.String FIAS_HOUSE_MAP -
ADDRESS_HOUSE
protected static java.lang.String ADDRESS_HOUSE -
PROFILE
protected boolean PROFILE -
logger
protected final org.apache.logging.log4j.Logger logger -
con
protected final java.sql.Connection con
-
-
Constructor Details
-
BaseLoadManager
public BaseLoadManager(java.sql.Connection con)
-
-
Method Details
-
exceptionLog
protected void exceptionLog(java.lang.Exception ex) throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
executeQuery
protected java.sql.ResultSet executeQuery(java.sql.PreparedStatement ps) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
executeQuery
protected java.sql.ResultSet executeQuery(java.sql.Statement st, java.lang.String query) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
loadAddressObjFromRs
protected <T extends AddressObj> T loadAddressObjFromRs(T obj, java.sql.ResultSet rs) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
loadCityFromRs
protected City loadCityFromRs(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException- Throws:
java.sql.SQLExceptionru.bitel.bgbilling.common.BGException
-
clearFiasTable
public void clearFiasTable()
-