public class AgentAVDManager extends ru.bitel.common.dao.AbstractIdDao<AgentAVD>
Constructor and Description |
---|
AgentAVDManager(java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
void |
changeStatus(AgentAVDStatus newStatus,
java.lang.Integer userId) |
int |
getActualAgentCount(int cid) |
protected int |
getAgentCount(int cid) |
java.util.List<AgentAVD> |
getAgentListAll() |
java.util.List<AgentAVD> |
getAgentListById(int cid) |
protected AgentAVD |
getFromRS(java.sql.ResultSet rs) |
java.util.List<AgentAVDStatus> |
getStatusList(int agentId) |
java.util.List<AgentAVDStatus> |
getStatusList(int agentId,
java.util.Date date)
Список статусов с датой окончания пустой либо большей или равной
параметру date
|
java.util.List<AgentAVDStatus> |
getStatusList(int agentId,
java.util.Date date1,
java.util.Date date2,
int status)
Список статусов текущем месяце даты date
|
java.util.List<AgentAVDStatus> |
getStatusListForDate(java.util.Date date) |
java.util.List<AgentAVDStatusLog> |
getStatusListLog(int agentId) |
static boolean |
isStatusPeriodValid(AgentAVDStatus status) |
protected void |
updateImpl(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
protected void updateImpl(AgentAVD agent) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<AgentAVD>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public java.util.List<AgentAVD> getAgentListById(int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<AgentAVD> getAgentListAll() 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 java.util.List<AgentAVDStatus> getStatusList(int agentId) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<AgentAVDStatusLog> getStatusListLog(int agentId) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<AgentAVDStatus> getStatusList(int agentId, java.util.Date date) throws java.sql.SQLException
agentId
- id агентаdate
- датаjava.sql.SQLException
public java.util.List<AgentAVDStatus> getStatusList(int agentId, java.util.Date date1, java.util.Date date2, int status) throws java.sql.SQLException
agentId
- id агентаdate
- датаjava.sql.SQLException
public java.util.List<AgentAVDStatus> getStatusListForDate(java.util.Date date) throws java.sql.SQLException
java.sql.SQLException
public void changeStatus(AgentAVDStatus newStatus, java.lang.Integer userId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public static boolean isStatusPeriodValid(AgentAVDStatus status)