public abstract class ReportUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
con |
protected LoginManager |
loginManager |
protected int |
mid |
protected Preferences |
moduleSetup |
protected int |
unit |
protected int |
unit_scale |
Constructor and Description |
---|
ReportUtils(java.sql.Connection con,
int mid,
Preferences moduleSetup) |
Modifier and Type | Method and Description |
---|---|
abstract void |
addLoginsAmounts(Period period,
int cid,
org.w3c.dom.Element data,
java.lang.String module,
java.lang.String filter) |
abstract void |
addLoginsAmounts(Period period,
int cid,
java.util.Map<java.lang.String,java.lang.Object> dataMap,
java.lang.String module,
java.lang.String filter) |
void |
addSessions(org.w3c.dom.Element sessions,
java.util.List<java.lang.Integer> lids,
Period period,
boolean break_on_pages,
Page page,
java.lang.String columns,
java.lang.String filter) |
void |
addSessions(java.sql.ResultSet rs,
org.w3c.dom.Element data) |
abstract int |
addSums(org.w3c.dom.Element data,
java.util.List<java.lang.Integer> lids,
Period period,
java.lang.String filter) |
LoginManager |
getLoginManager() |
static ReportUtils |
getReportUtils(java.lang.String module,
java.sql.Connection con,
int mid,
ModuleSetup moduleSetup) |
java.util.List<java.lang.Object> |
getSessionsColSumTimeTinTout(int lid,
Period period,
java.lang.String filter) |
java.util.List<java.lang.Object> |
getSessionsColSumTimeTinTout(java.util.List<java.lang.Integer> lids,
Period period,
java.lang.String filter) |
protected java.lang.String |
getSessionTableName(int year,
int month) |
java.sql.PreparedStatement |
selectSomethingFromSessions(int lid,
Period period,
java.lang.String whatSelect,
java.lang.String filter,
java.lang.String group,
java.lang.String order,
java.lang.String limits)
Получение информации из сессий.
|
java.sql.PreparedStatement |
selectSomethingFromSessions(java.util.List<java.lang.Integer> lids,
Period period,
java.lang.String whatSelect,
java.lang.String filter,
java.lang.String group,
java.lang.String order,
java.lang.String limits)
Получение информации из сессий.
|
java.sql.ResultSet |
selectSomthFromSessions(int lid,
Period period,
java.lang.String whatSelect,
java.lang.String filter,
java.lang.String group,
java.lang.String order,
java.lang.String limits)
Deprecated.
|
java.sql.ResultSet |
selectSomthFromSessions(java.util.List<java.lang.Integer> lids,
Period period,
java.lang.String whatSelect,
java.lang.String filter,
java.lang.String group,
java.lang.String order,
java.lang.String limits)
Deprecated.
|
void |
setUnit(int unit) |
protected java.sql.Connection con
protected int mid
protected Preferences moduleSetup
protected LoginManager loginManager
protected int unit
protected int unit_scale
public ReportUtils(java.sql.Connection con, int mid, Preferences moduleSetup)
public static ReportUtils getReportUtils(java.lang.String module, java.sql.Connection con, int mid, ModuleSetup moduleSetup)
public void setUnit(int unit)
public LoginManager getLoginManager()
public java.sql.PreparedStatement selectSomethingFromSessions(int lid, Period period, java.lang.String whatSelect, java.lang.String filter, java.lang.String group, java.lang.String order, java.lang.String limits)
lid
- period
- периодwhatSelect
- какие параметры необходимо получить через запятуюfilter
- group
- order
- limits
- @Deprecated public java.sql.ResultSet selectSomthFromSessions(int lid, Period period, java.lang.String whatSelect, java.lang.String filter, java.lang.String group, java.lang.String order, java.lang.String limits)
selectSomethingFromSessions(int, Period, String, String, String, String, String)
lid
- period
- whatSelect
- filter
- group
- order
- limits
- public java.sql.PreparedStatement selectSomethingFromSessions(java.util.List<java.lang.Integer> lids, Period period, java.lang.String whatSelect, java.lang.String filter, java.lang.String group, java.lang.String order, java.lang.String limits)
lid
- period
- периодwhatSelect
- какие параметры необходимо получить через запятуюfilter
- group
- order
- limits
- @Deprecated public java.sql.ResultSet selectSomthFromSessions(java.util.List<java.lang.Integer> lids, Period period, java.lang.String whatSelect, java.lang.String filter, java.lang.String group, java.lang.String order, java.lang.String limits)
selectSomethingFromSessions(List, Period, String, String, String, String, String)
lids
- period
- whatSelect
- filter
- group
- order
- limits
- protected java.lang.String getSessionTableName(int year, int month)
public java.util.List<java.lang.Object> getSessionsColSumTimeTinTout(int lid, Period period, java.lang.String filter) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.Object> getSessionsColSumTimeTinTout(java.util.List<java.lang.Integer> lids, Period period, java.lang.String filter) throws java.sql.SQLException
java.sql.SQLException
public void addSessions(org.w3c.dom.Element sessions, java.util.List<java.lang.Integer> lids, Period period, boolean break_on_pages, Page page, java.lang.String columns, java.lang.String filter)
public abstract void addLoginsAmounts(Period period, int cid, org.w3c.dom.Element data, java.lang.String module, java.lang.String filter) throws java.sql.SQLException
java.sql.SQLException
public abstract int addSums(org.w3c.dom.Element data, java.util.List<java.lang.Integer> lids, Period period, java.lang.String filter) throws java.sql.SQLException
java.sql.SQLException
public void addSessions(java.sql.ResultSet rs, org.w3c.dom.Element data)
public abstract void addLoginsAmounts(Period period, int cid, java.util.Map<java.lang.String,java.lang.Object> dataMap, java.lang.String module, java.lang.String filter) throws java.sql.SQLException
java.sql.SQLException