public class CommonContractDAO extends CommonDAO
CommonDAO.ObjectExtractor<T>, CommonDAO.RecordUpdater<T extends Id>| Modifier and Type | Field and Description |
|---|---|
protected CommonContractConfig |
config |
protected java.lang.String |
SELECT_QUERY_START |
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 and Description |
|---|
CommonContractDAO(java.sql.Connection con) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeCustomerLink(int commonContractId,
int customerId) |
CommonContract |
createCommonContract(int areaId,
int number,
int customerId) |
CommonContract |
createCommonContract(int customerId,
ParameterAddressValue address) |
CommonContract |
createCommonContractWithTitle(int customerId,
java.lang.String title,
ParameterAddressValue address) |
void |
deleteCommonContract(int id) |
CommonContract |
getContract(CommonContract result,
java.sql.PreparedStatement ps) |
CommonContract |
getContractByAreaAndNumber(int areaId,
int number) |
CommonContract |
getContractByCustomerId(int id) |
CommonContract |
getContractById(int id) |
CommonContract |
getContractCommon(int customerId,
java.lang.String contractNumber) |
java.util.List<CommonContract> |
getContractList(int customerId) |
java.lang.String |
getContractNumber(int commonContractId,
int serviceCode) |
java.lang.String |
getContractNumber(int commonContractId,
java.lang.String serviceCode) |
java.lang.String |
getContractNumber(int commonContractId,
java.lang.String serviceCode,
boolean isServiceCodeNeeded) |
int |
getNextCommonContractNumber(int cityId,
java.sql.Connection con) |
void |
updateCommonContract(CommonContract contract) |
deleteById, execute, execute, execute, executeInsert, executeUpdate, getById, getFoundRows, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getLikePatternEnd, getLikePatternStart, getLikePatternSub, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, update, updateColumn, updateIds, updateIdsprotected CommonContractConfig config
protected final java.lang.String SELECT_QUERY_START
public java.lang.String getContractNumber(int commonContractId,
int serviceCode)
throws BGException
BGExceptionpublic java.lang.String getContractNumber(int commonContractId,
java.lang.String serviceCode)
throws BGException
BGExceptionpublic java.lang.String getContractNumber(int commonContractId,
java.lang.String serviceCode,
boolean isServiceCodeNeeded)
throws BGException
BGExceptionpublic CommonContract getContractById(int id) throws BGException
BGExceptionpublic CommonContract getContractByCustomerId(int id) throws BGException
BGExceptionpublic CommonContract getContractByAreaAndNumber(int areaId, int number) throws BGException
BGExceptionpublic CommonContract getContract(CommonContract result, java.sql.PreparedStatement ps) throws BGException
BGExceptionpublic java.util.List<CommonContract> getContractList(int customerId) throws BGException
BGExceptionpublic CommonContract getContractCommon(int customerId, java.lang.String contractNumber) throws BGException
BGExceptionpublic CommonContract createCommonContract(int areaId, int number, int customerId) throws BGException
BGExceptionpublic CommonContract createCommonContract(int customerId, ParameterAddressValue address) throws BGException
BGExceptionpublic void changeCustomerLink(int commonContractId,
int customerId)
throws BGMessageException
BGMessageExceptionpublic void updateCommonContract(CommonContract contract) throws BGException
BGExceptionpublic int getNextCommonContractNumber(int cityId,
java.sql.Connection con)
throws BGException
BGExceptionpublic CommonContract createCommonContractWithTitle(int customerId, java.lang.String title, ParameterAddressValue address) throws BGException
BGExceptionpublic void deleteCommonContract(int id)
throws BGException
BGException