public class CommonContractDAO 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 |
---|
CommonContractDAO(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
changeCustomerLink(int commonContractId,
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 |
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) |
void |
updateCommonContract(CommonContract contract) |
addLikeSql, convertDateToSqlDate, convertDateToTimestamp, deleteById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, updateColumn, updateIds, updateIds
public java.lang.String getContractNumber(int commonContractId, int serviceCode) throws BGException
BGException
public CommonContract getContractById(int id) throws BGException
BGException
public CommonContract getContractByAreaAndNumber(int areaId, int number) throws BGException
BGException
public CommonContract getContract(CommonContract result, java.sql.PreparedStatement ps) throws BGException
BGException
public java.util.List<CommonContract> getContractList(int customerId) throws BGException
BGException
public CommonContract getContractCommon(int customerId, java.lang.String contractNumber) throws BGException
BGException
public CommonContract createCommonContract(int customerId, ParameterAddressValue address) throws BGException
BGException
public void changeCustomerLink(int commonContractId, int customerId) throws BGMessageException
BGMessageException
public void updateCommonContract(CommonContract contract) throws BGException
BGException
public CommonContract createCommonContractWithTitle(int customerId, java.lang.String title, ParameterAddressValue address) throws BGException
BGException
public void deleteCommonContract(int id) throws BGException
BGException