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, updateIds
protected CommonContractConfig config
protected final java.lang.String SELECT_QUERY_START
public java.lang.String getContractNumber(int commonContractId, int serviceCode) throws BGException
BGException
public java.lang.String getContractNumber(int commonContractId, java.lang.String serviceCode) throws BGException
BGException
public java.lang.String getContractNumber(int commonContractId, java.lang.String serviceCode, boolean isServiceCodeNeeded) throws BGException
BGException
public CommonContract getContractById(int id) throws BGException
BGException
public CommonContract getContractByCustomerId(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 areaId, int number, int customerId) 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 int getNextCommonContractNumber(int cityId, java.sql.Connection con) 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