public abstract class AbstractInetSessionDao<B>
extends ru.bitel.common.dao.AbstractDao<B>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
accountTableName |
protected java.lang.String |
detailTableName |
static java.lang.String |
TABLE_INET_SESSION_ACCOUNT |
static java.lang.String |
TABLE_INET_SESSION_DETAIL |
static java.lang.String |
TABLE_INET_SESSION_LOG |
static java.lang.String |
TABLE_INET_SESSION_LOG_ACCOUNT |
static java.lang.String |
TABLE_INET_SESSION_LOG_DETAIL |
static java.lang.String |
TABLE_INET_SESSION_LOG_ROUTE |
Constructor and Description |
---|
AbstractInetSessionDao(java.sql.Connection con,
int mid) |
AbstractInetSessionDao(java.sql.Connection con,
int mid,
java.util.Date date) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
addWherePart(java.util.Collection<java.lang.Integer> servIds,
Period period,
java.lang.String sql) |
protected java.lang.String |
getFromAndWherePart() |
protected java.sql.PreparedStatement |
getPs(int cid,
java.util.Collection<java.lang.Integer> servIds,
Period period,
Page page,
java.lang.String sql) |
java.util.Map<java.lang.Integer,java.lang.Long> |
getSessionTrafficsReport(int cid,
java.util.Collection<java.lang.Integer> servIds,
Period period,
java.util.Collection<java.lang.Integer> trafficTypeIds) |
java.util.List<java.lang.Double> |
getSumReportInfo(int cid,
java.util.Collection<java.lang.Integer> servIds,
Period period) |
void |
loadAccount(java.util.List<InetSessionLog> sessions,
java.util.Collection<java.lang.Integer> serviceIds) |
void |
loadTraffics(java.util.List<InetSessionLog> sessions,
java.util.Collection<java.lang.Integer> trafficTypeIds) |
protected void |
setParams(int cid,
Period period,
Page page,
java.sql.PreparedStatement ps) |
close, delete, deleteImpl, eq, get, getById, getFromRS, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam, update, updateImpl
public static final java.lang.String TABLE_INET_SESSION_LOG
public static final java.lang.String TABLE_INET_SESSION_LOG_DETAIL
public static final java.lang.String TABLE_INET_SESSION_LOG_ROUTE
public static final java.lang.String TABLE_INET_SESSION_LOG_ACCOUNT
public static final java.lang.String TABLE_INET_SESSION_DETAIL
public static final java.lang.String TABLE_INET_SESSION_ACCOUNT
protected final java.lang.String detailTableName
protected final java.lang.String accountTableName
public AbstractInetSessionDao(java.sql.Connection con, int mid, java.util.Date date)
public AbstractInetSessionDao(java.sql.Connection con, int mid)
public java.util.Map<java.lang.Integer,java.lang.Long> getSessionTrafficsReport(int cid, java.util.Collection<java.lang.Integer> servIds, Period period, java.util.Collection<java.lang.Integer> trafficTypeIds) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected java.lang.String addWherePart(java.util.Collection<java.lang.Integer> servIds, Period period, java.lang.String sql)
protected void setParams(int cid, Period period, Page page, java.sql.PreparedStatement ps) throws java.sql.SQLException
java.sql.SQLException
public void loadAccount(java.util.List<InetSessionLog> sessions, java.util.Collection<java.lang.Integer> serviceIds) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void loadTraffics(java.util.List<InetSessionLog> sessions, java.util.Collection<java.lang.Integer> trafficTypeIds) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<java.lang.Double> getSumReportInfo(int cid, java.util.Collection<java.lang.Integer> servIds, Period period) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected java.lang.String getFromAndWherePart()