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.BGException
public boolean isEnabled(int contractId, java.util.Date onDate) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean setEnabled(int contractId, boolean enabled, int userId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void searchContractAutopayment(SearchResult<ContractAutopayment> searchResult, int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void cleanForContract(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected ContractAutopayment getFromResultSet(java.sql.ResultSet resultSet) throws java.sql.SQLException
java.sql.SQLException
public void close() throws ru.bitel.bgbilling.common.BGException
close
in interface java.lang.AutoCloseable
ru.bitel.bgbilling.common.BGException
public static boolean isContractAutopaymentEnabled(java.sql.Connection con, int moduleId, int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException