public class ContractAutopaymentManager
extends ru.bitel.common.dao.AbstarctDaoConstant
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
ContractAutopaymentManager(java.sql.Connection con,
int moduleId) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanForContract(int contractId) |
void |
close() |
protected ContractAutopayment |
getFromResultSet(java.sql.ResultSet resultSet) |
static boolean |
isContractAutopaymentEnabled(java.sql.Connection con,
int moduleId,
int contractId) |
boolean |
isEnabled(int contractId) |
boolean |
isEnabled(int contractId,
java.util.Date onDate) |
void |
searchContractAutopayment(SearchResult<ContractAutopayment> searchResult,
int contractId) |
boolean |
setEnabled(int contractId,
boolean enabled,
int userId) |
public ContractAutopaymentManager(java.sql.Connection con,
int moduleId)
public boolean isEnabled(int contractId)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean isEnabled(int contractId,
java.util.Date onDate)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean setEnabled(int contractId,
boolean enabled,
int userId)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void searchContractAutopayment(SearchResult<ContractAutopayment> searchResult, int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void cleanForContract(int contractId)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionprotected ContractAutopayment getFromResultSet(java.sql.ResultSet resultSet) throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
throws ru.bitel.bgbilling.common.BGException
close in interface java.lang.AutoCloseableru.bitel.bgbilling.common.BGExceptionpublic static boolean isContractAutopaymentEnabled(java.sql.Connection con,
int moduleId,
int contractId)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException