public class SubscriptionDao extends ru.bitel.common.dao.AbstractIdDao<Subscription>
Constructor and Description |
---|
SubscriptionDao(java.sql.Connection con,
int mid,
int userId) |
Modifier and Type | Method and Description |
---|---|
protected Subscription |
getFromRS(java.sql.ResultSet rs) |
java.util.List<Subscription> |
list(int contractId,
java.util.Date time) |
java.util.List<Subscription> |
list(int contractId,
java.util.Date date,
boolean history,
boolean needNonActive) |
void |
update(Subscription subscription,
boolean checkDeactivated) |
protected void |
updateImpl(Subscription subscription) |
protected void |
updateImpl(Subscription subscription,
boolean checkDeactivated) |
delete, get, getAndDelete, getAndUpdate
public SubscriptionDao(java.sql.Connection con, int mid, int userId)
protected Subscription getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
getFromRS
in class ru.bitel.common.dao.AbstractDao<Subscription>
java.sql.SQLException
public void update(Subscription subscription, boolean checkDeactivated) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(Subscription subscription) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<Subscription>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
protected void updateImpl(Subscription subscription, boolean checkDeactivated) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public java.util.List<Subscription> list(int contractId, java.util.Date time) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<Subscription> list(int contractId, java.util.Date date, boolean history, boolean needNonActive) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException