public class TvAccountDao extends ru.bitel.common.dao.AbstractIdDao<TvAccount>
Constructor and Description |
---|
TvAccountDao(java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
TvAccount |
get(java.lang.String login,
java.util.Date time) |
TvAccount |
getByDeviceAccountId(java.lang.String deviceAccountId,
java.util.Date time) |
TvAccount |
getFromRS(java.sql.ResultSet rs) |
static TvAccount |
getFromRS(java.sql.ResultSet rs,
boolean contractLoad,
boolean specAndDeviceLoad) |
int |
lastNumericLogin(int max)
Возвращает последний (наибольший) цифровой логин
|
java.util.List<TvAccount> |
list(int contractId) |
java.util.List<TvAccount> |
list(int contractId,
boolean specAndDeviceLoad) |
java.util.List<TvAccount> |
list(int deviceId,
java.lang.String login,
java.util.Date dateFrom,
java.util.Date dateTo) |
java.util.List<TvAccount> |
list(int deviceId,
java.lang.String login,
java.util.Date dateFrom,
java.util.Date dateTo,
boolean onlyRoot,
java.lang.String orderBy) |
java.util.List<TvAccount> |
listChildren(int parentId) |
java.util.List<TvAccount> |
listRuntime(int deviceId,
java.util.Set<java.lang.Integer> tvAccountSpecIds)
Получение списка сервисов для runtime.
|
java.util.List<TvAccount> |
listToCancel(java.util.Date now) |
java.util.List<TvAccount> |
listToCreate(java.util.Date now) |
void |
recycle() |
java.util.List<TvAccount> |
search(java.lang.String login,
java.lang.String deviceAccountId,
int tvAccountSpecId,
java.lang.String identifier,
java.lang.String macAddress,
boolean loginStrictCheck) |
void |
updateDeviceStateAndOptions(int tvAccountId,
java.lang.String deviceAccountId,
short state,
java.util.Set<java.lang.Integer> deviceOptions,
int accessCode) |
protected void |
updateImpl(TvAccount tvAccount) |
delete, get, getAndDelete, getAndUpdate
public static TvAccount getFromRS(java.sql.ResultSet rs, boolean contractLoad, boolean specAndDeviceLoad) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
public TvAccount getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<TvAccount>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected void updateImpl(TvAccount tvAccount) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<TvAccount>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public java.util.List<TvAccount> list(int contractId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<TvAccount> list(int contractId, boolean specAndDeviceLoad) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<TvAccount> listRuntime(int deviceId, java.util.Set<java.lang.Integer> tvAccountSpecIds) throws ru.bitel.bgbilling.common.BGException
deviceId
- servIds
- ru.bitel.bgbilling.common.BGException
public TvAccount get(java.lang.String login, java.util.Date time) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public TvAccount getByDeviceAccountId(java.lang.String deviceAccountId, java.util.Date time) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<TvAccount> listChildren(int parentId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<TvAccount> list(int deviceId, java.lang.String login, java.util.Date dateFrom, java.util.Date dateTo) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<TvAccount> list(int deviceId, java.lang.String login, java.util.Date dateFrom, java.util.Date dateTo, boolean onlyRoot, java.lang.String orderBy) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void updateDeviceStateAndOptions(int tvAccountId, java.lang.String deviceAccountId, short state, java.util.Set<java.lang.Integer> deviceOptions, int accessCode) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<TvAccount> listToCreate(java.util.Date now) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<TvAccount> listToCancel(java.util.Date now) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public int lastNumericLogin(int max) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public java.util.List<TvAccount> search(java.lang.String login, java.lang.String deviceAccountId, int tvAccountSpecId, java.lang.String identifier, java.lang.String macAddress, boolean loginStrictCheck) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void recycle() throws ru.bitel.bgbilling.common.BGException
recycle
in class ru.bitel.common.dao.AbstractDao<TvAccount>
ru.bitel.bgbilling.common.BGException