public class FiasDAO extends CommonDAO
con, dateFormat_DDMMYYYY, dateFormat_DDMMYYYY_HHMM, log, SQL_AND, SQL_DELETE, SQL_DESC, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_LEFT_JOIN, SQL_LIMIT, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UPDATE, SQL_WHERE
Constructor and Description |
---|
FiasDAO(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
addHouseLinks(java.lang.String fiasStreetId,
java.lang.Integer crmCityId) |
void |
addStreetLink(java.lang.Integer crmStreetId,
java.lang.String fiasStreetId) |
void |
copyPostalCode(java.util.List<java.lang.Integer> fiasHouseIds) |
void |
copyStreetTitle(java.lang.String streetId) |
void |
delHouseLink(java.lang.String fiasHouseId) |
void |
delStreetLink(java.lang.String fiasStreetId) |
java.lang.String |
getFiasStreetPostalCode(java.lang.String fiasStreetId) |
static FiasHouse |
getHouseFromRs(java.sql.ResultSet rs) |
java.util.List<java.lang.Integer> |
getLinkHouseIdList(java.lang.String fiasStreetId) |
java.util.List<CrmHouse> |
getNotLinkHouseList(SearchResult<CrmHouse> searchResult,
java.lang.String fiasStreetId,
java.lang.String indexTerm,
java.lang.Integer streetSide) |
static FiasStreet |
getStreetFromRs(java.sql.ResultSet rs) |
void |
manualSetPostalCode(java.util.Set<java.lang.Integer> crmHouseIds,
java.lang.String postalCode) |
java.util.List<java.lang.String> |
recommendedPostalCodeList(java.lang.String fiasStreetId) |
void |
searchAddressStreetByTerm(SearchResult<AddressItem> searchResult,
int cityId,
java.lang.String titleTerm) |
void |
searchFiasHouseByTerm(SearchResult<FiasHouse> searchResult,
java.lang.String streetId,
java.lang.String indexTerm,
java.lang.Integer cityId,
java.lang.Integer streetSide) |
void |
searchFiasStreetByTerm(SearchResult<FiasStreet> searchResult,
java.lang.String titleTerm,
java.lang.Integer cityId,
boolean hasLink) |
void |
searchSimilarStreet(SearchResult<FiasStreet> searchResult,
java.lang.String title,
java.lang.Integer cityId) |
addLikeSql, convertDateToSqlDate, convertDateToTimestamp, deleteById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, updateColumn, updateIds, updateIds
public void searchFiasStreetByTerm(SearchResult<FiasStreet> searchResult, java.lang.String titleTerm, java.lang.Integer cityId, boolean hasLink) throws java.sql.SQLException
java.sql.SQLException
public void searchSimilarStreet(SearchResult<FiasStreet> searchResult, java.lang.String title, java.lang.Integer cityId) throws java.sql.SQLException
java.sql.SQLException
public void addStreetLink(java.lang.Integer crmStreetId, java.lang.String fiasStreetId) throws java.sql.SQLException
java.sql.SQLException
public void addHouseLinks(java.lang.String fiasStreetId, java.lang.Integer crmCityId) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.Integer> getLinkHouseIdList(java.lang.String fiasStreetId) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<CrmHouse> getNotLinkHouseList(SearchResult<CrmHouse> searchResult, java.lang.String fiasStreetId, java.lang.String indexTerm, java.lang.Integer streetSide) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getFiasStreetPostalCode(java.lang.String fiasStreetId) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> recommendedPostalCodeList(java.lang.String fiasStreetId) throws java.sql.SQLException
java.sql.SQLException
public static FiasStreet getStreetFromRs(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public void searchAddressStreetByTerm(SearchResult<AddressItem> searchResult, int cityId, java.lang.String titleTerm) throws java.sql.SQLException
java.sql.SQLException
public void searchFiasHouseByTerm(SearchResult<FiasHouse> searchResult, java.lang.String streetId, java.lang.String indexTerm, java.lang.Integer cityId, java.lang.Integer streetSide) throws java.sql.SQLException
java.sql.SQLException
public static FiasHouse getHouseFromRs(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public void copyPostalCode(java.util.List<java.lang.Integer> fiasHouseIds) throws java.sql.SQLException
java.sql.SQLException
public void copyStreetTitle(java.lang.String streetId) throws java.sql.SQLException
java.sql.SQLException
public void manualSetPostalCode(java.util.Set<java.lang.Integer> crmHouseIds, java.lang.String postalCode) throws java.sql.SQLException
java.sql.SQLException
public void delStreetLink(java.lang.String fiasStreetId) throws java.sql.SQLException
java.sql.SQLException
public void delHouseLink(java.lang.String fiasHouseId) throws java.sql.SQLException
java.sql.SQLException