public class AgentAVDManager extends ru.bitel.common.dao.AbstractIdDao<AgentAVD>
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, logger, mid, moduleId, orderByPattern, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_LIMIT, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_WHERE, tableName
Constructor and Description |
---|
AgentAVDManager(java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
void |
checkAgents() |
int |
getActualAgentCount(int cid) |
protected int |
getAgentCount(int cid) |
protected AgentAVD |
getFromRS(java.sql.ResultSet rs) |
java.util.List<AgentAVD> |
getListAll() |
java.util.List<AgentAVD> |
getListByDate(java.util.Date date)
Список агентов не продленных на дату
|
java.util.List<AgentAVD> |
getListById(int cid) |
java.util.List<AgentAVD> |
getListById(int cid,
java.util.Calendar date) |
java.util.List<AgentAVD> |
getListLockAgent() |
java.util.List<AgentAVD> |
getListWithNextStatus(int nextStatus) |
java.util.List<AgentAVD> |
getListWithStatus(int status,
java.util.Calendar date) |
protected void |
updateImpl(AgentAVD agent)
Этот метод каждый реализует сам со своей логикой.
|
void |
updateNotLog(AgentAVD agent) |
delete, get, getAndDelete, getAndUpdate
protected AgentAVD getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
getFromRS
in class ru.bitel.common.dao.AbstractDao<AgentAVD>
java.sql.SQLException
public void updateNotLog(AgentAVD agent) throws java.sql.SQLException
java.sql.SQLException
protected void updateImpl(AgentAVD agent) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
ru.bitel.common.dao.AbstractDao
updateImpl
in class ru.bitel.common.dao.AbstractDao<AgentAVD>
agent
- экземпляр моделиru.bitel.bgbilling.common.BGException
- ошибкиjava.sql.SQLException
- ошибкиpublic java.util.List<AgentAVD> getListById(int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<AgentAVD> getListLockAgent() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<AgentAVD> getListWithNextStatus(int nextStatus) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<AgentAVD> getListByDate(java.util.Date date) throws ru.bitel.bgbilling.common.BGException
cid
- date
- ru.bitel.bgbilling.common.BGException
public java.util.List<AgentAVD> getListAll() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected int getAgentCount(int cid) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public int getActualAgentCount(int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void checkAgents()
public java.util.List<AgentAVD> getListWithStatus(int status, java.util.Calendar date) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<AgentAVD> getListById(int cid, java.util.Calendar date) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException