Package ru.bgcrm.plugin.bgbilling.dao
Class CommonContractDAO
java.lang.Object
ru.bgcrm.dao.CommonDAO
ru.bgcrm.plugin.bgbilling.dao.CommonContractDAO
- Direct Known Subclasses:
CommonContractDAOWrapper
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bgcrm.dao.CommonDAO
CommonDAO.ObjectExtractor<T>, CommonDAO.RecordUpdater<T extends Id> -
Field Summary
FieldsFields inherited from class ru.bgcrm.dao.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_INSERT_IGNORE, SQL_LEFT_JOIN, SQL_LEFT_OUTER_JOIN, SQL_LIMIT, SQL_ON_DUP_KEY_UPDATE, SQL_OR, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UPDATE, SQL_WHERE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeCustomerLink(int commonContractId, int customerId) createCommonContract(int areaId, int number, int customerId) createCommonContract(int customerId, ParameterAddressValue address) createCommonContractWithTitle(int customerId, String title, ParameterAddressValue address) voiddeleteCommonContract(int id) getContract(CommonContract result, PreparedStatement ps) getContractByAreaAndNumber(int areaId, int number) getContractByCustomerId(int id) getContractById(int id) getContractCommon(int customerId, String contractNumber) getContractList(int customerId) getContractNumber(int commonContractId, int serviceCode) getContractNumber(int commonContractId, String serviceCode) getContractNumber(int commonContractId, String serviceCode, boolean isServiceCodeNeeded) intgetNextCommonContractNumber(int cityId, Connection con) voidupdateCommonContract(CommonContract contract) Methods inherited from class ru.bgcrm.dao.CommonDAO
buildPlaceholders, deleteById, execute, execute, execute, executeBatch, executeInsert, executeUpdate, getById, getFoundRows, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getLikePatternEnd, getLikePatternStart, getLikePatternSub, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, update, updateColumn, updateIds, updateIds
-
Field Details
-
config
-
SELECT_QUERY_START
- See Also:
-
-
Constructor Details
-
CommonContractDAO
-
-
Method Details
-
getContractNumber
- Throws:
BGException
-
getContractNumber
- Throws:
BGException
-
getContractNumber
public String getContractNumber(int commonContractId, String serviceCode, boolean isServiceCodeNeeded) throws BGException - Throws:
BGException
-
getContractById
- Throws:
BGException
-
getContractByCustomerId
- Throws:
BGException
-
getContractByAreaAndNumber
- Throws:
BGException
-
getContract
- Throws:
BGException
-
getContractList
- Throws:
BGException
-
getContractCommon
- Throws:
BGException
-
createCommonContract
public CommonContract createCommonContract(int areaId, int number, int customerId) throws BGException - Throws:
BGException
-
createCommonContract
public CommonContract createCommonContract(int customerId, ParameterAddressValue address) throws BGException - Throws:
BGException
-
changeCustomerLink
- Throws:
BGMessageException
-
updateCommonContract
- Throws:
BGException
-
getNextCommonContractNumber
- Throws:
BGException
-
createCommonContractWithTitle
public CommonContract createCommonContractWithTitle(int customerId, String title, ParameterAddressValue address) throws BGException - Throws:
BGException
-
deleteCommonContract
- Throws:
BGException
-