|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.reporting.QueryEngine
public class QueryEngine
initalize reporting and executes reports
Constructor Summary | |
---|---|
QueryEngine()
|
Method Summary | |
---|---|
static void |
abort(java.lang.String query_id)
Aborts a query execution |
static java.lang.String |
encodeId(java.lang.String id)
|
static Pair<Query,java.util.List<java.util.List<java.lang.Object>>> |
execute(Query q,
java.lang.String query_id)
Executes a query Object using cache |
static void |
executeQuery(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Execute a query. |
static void |
executeQuery(MultipartRequest req,
javax.servlet.http.HttpServletResponse res,
boolean isStandardSearch)
|
static java.lang.String |
generateQueryId(Query q,
User u)
returns a unique query ID for caching purposes |
static Query |
getContextQuery()
|
static int |
getDocSearchMode()
|
static java.lang.String |
getLocalizeString(java.lang.String key)
|
protected static int |
getMaxTable()
|
static void |
getQueryToken()
Try to get a execution Token. |
static ReportingData |
getReportingDataInstance(org.jdom.Element e)
|
static ReportingData |
getReportingDataInstance(java.lang.String entity,
java.lang.String attribute)
|
static java.lang.String |
getSystemSchemaFile()
|
static ReportingTableModel |
getTableModel(java.util.List<java.util.List<java.lang.Object>> values,
Query q)
|
static boolean |
hasStatRight(User u)
check if a specified user has the statistic right |
static void |
init(boolean forceInitalize)
initalize the engine configuration |
static boolean |
isOracle()
|
static java.lang.String |
localize(java.lang.String text)
|
static boolean |
openDocInNewWin()
|
static boolean |
openFormInEditMode()
|
static void |
outputTableModel(javax.servlet.http.HttpServletResponse res,
java.util.List<java.util.List<java.lang.Object>> values,
Query q)
Outputs the query result using the exporter of the query |
static void |
releaseQueryToken()
Release Query Token so that queued reporty may start execution |
static void |
sheduleReinit()
shedules reinitalization for Reporting engine |
static boolean |
showTimeInDateConds()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryEngine()
Method Detail |
---|
public static void init(boolean forceInitalize)
public static void sheduleReinit()
public static boolean hasStatRight(User u)
u
- the user
true
if the user has the right statistic
public static void executeQuery(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
public static void executeQuery(MultipartRequest req, javax.servlet.http.HttpServletResponse res, boolean isStandardSearch)
public static void outputTableModel(javax.servlet.http.HttpServletResponse res, java.util.List<java.util.List<java.lang.Object>> values, Query q)
res
- values
- the result tableq
- the query objectpublic static ReportingTableModel getTableModel(java.util.List<java.util.List<java.lang.Object>> values, Query q)
values
- the result valuesq
- the query object
public static Pair<Query,java.util.List<java.util.List<java.lang.Object>>> execute(Query q, java.lang.String query_id)
q
- - the query objectquery_id
- - the id of the query
public static void releaseQueryToken()
public static void getQueryToken()
public static java.lang.String encodeId(java.lang.String id)
public static boolean isOracle()
true
if Database is Oraclepublic static java.lang.String generateQueryId(Query q, User u)
public static void abort(java.lang.String query_id)
query_id
- the queryid to abortpublic static boolean openDocInNewWin()
public static boolean openFormInEditMode()
public static int getDocSearchMode()
public static java.lang.String getSystemSchemaFile()
public static ReportingData getReportingDataInstance(java.lang.String entity, java.lang.String attribute)
entity
- the referenced entity id of schemaattribute
- the referenced attribute id of schema
public static ReportingData getReportingDataInstance(org.jdom.Element e)
e
- the xml element of the query xml
getReportingDataInstance(String, String)
public static Query getContextQuery()
public static java.lang.String localize(java.lang.String text)
public static java.lang.String getLocalizeString(java.lang.String key)
protected static int getMaxTable()
public static boolean showTimeInDateConds()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |