public class DateReportingData extends DefaultReportingData
Modifier and Type | Field and Description |
---|---|
static ArrayList<Pair<String,String>> |
CONDUNITS |
protected String |
dateformat |
protected boolean |
expandForDrilldown |
protected ArrayList<Pair<String,String>> |
myCondUnits |
protected String |
weekval |
a, alias, attributeHasUserdefType, dontUseMappedString, e, value
Constructor and Description |
---|
DateReportingData() |
DateReportingData(Date d,
String df) |
DateReportingData(Date d,
String df,
boolean expand) |
DateReportingData(Entity e,
Attribute a) |
Modifier and Type | Method and Description |
---|---|
void |
addClientConditionWidgetOptions(JSONObject json,
boolean paramAtExec,
Element condition)
add clientcondition attributes to attribute store
|
void |
addConditionToQuery(Query q,
Element c)
Adds the XMLAttribute as a conditon to the query.
|
int |
compareTo(ReportingExportable o) |
Collection<ReportingExportable> |
completeSeries(Set<ReportingExportable> series,
Query q)
invoked for matrix-style reports to be able to add missing entries in the given
series |
static Collection<ReportingExportable> |
completeSeries(Set<ReportingExportable> series,
String dateformat,
Date min,
Date max,
boolean expand) |
static Pair<Timestamp,Timestamp> |
getBeginAndEnd(Date val,
String df) |
protected static Timestamp |
getDate(Date startDate,
int offset,
String unit,
boolean exact,
boolean endDate)
calculate timestamp of implicit condition
|
protected static Timestamp |
getDate(int offset,
String unit,
boolean exact) |
static JSONPage |
getDateDisplayString(HttpServletRequest req) |
String |
getDateformat() |
static Date |
getDateObject(String date,
boolean enddate) |
static Date |
getDateObject(String date,
boolean enddate,
TimeZone tz) |
static JSONPage |
getExampleDate(HttpServletRequest req) |
static String |
getIsoDateString(Date d) |
static String |
getIsoDateString(Date d,
TimeZone tz) |
protected static Pair<Date,Date> |
getMinMax(ReportingData rd,
Query q) |
static String |
getSQLPlaceholder() |
TimeZone |
getTimeZone() |
static void |
increment(com.ibm.icu.util.Calendar cal,
String dateformat) |
protected void |
init() |
boolean |
isExpandForDrilldown() |
static boolean |
isParseEndDateOperator(String operator) |
void |
setDateformat(String df) |
void |
setExpandForDrilldown(boolean expandForDrilldown) |
void |
setValue(ResultSet rs,
Element selectAttribute,
Query q)
Sets the value of this object.
|
String |
toText()
used for CSV/EXCEL/XML export...
|
add, addIgnoreCaseComponents, addSelectAttributeToQuery, avg, checkTempJoin, compare2, getAlias, getAttribute, getBaseType, getColumnRenderer, getDBData, getEntity, getMappedValue, getMappedValues, getOperatorList, getValue, hasAttributeUserdefinedType, hasMappedValues, pairList, pairList, pairList, pairList, setAlias, setAttribute, setAttributeHasUserdefinedType, setDojoAndStyle, setEntity, setMappedValue, setValue, splitValueAttribute, toHtml, toJson, toString
getSortText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addClientConditionWidgetOptions
getSortText
protected String weekval
protected String dateformat
protected boolean expandForDrilldown
protected void init()
public void addClientConditionWidgetOptions(JSONObject json, boolean paramAtExec, Element condition)
ReportingData
addClientConditionWidgetOptions
in interface ReportingData
addClientConditionWidgetOptions
in class DefaultReportingData
json
- the json object of this attributeparamAtExec
- indicates if method is called in normal condition or param-at-execution modecondition
- the optional <condition> element. can be used to mimic special behavior for parameter-at-execution scenariospublic void setValue(ResultSet rs, Element selectAttribute, Query q)
ReportingData
setValue
in interface ReportingData
setValue
in class DefaultReportingData
rs
- - the result set of the queryselectAttribute
- - the xml-element attribute of the queryq
- - the query objectpublic final void setExpandForDrilldown(boolean expandForDrilldown)
public final boolean isExpandForDrilldown()
public String toText()
ReportingExportable
toText
in interface ReportingExportable
toText
in class DefaultReportingData
public TimeZone getTimeZone()
ThreadContext.getThreadTimeZone()
public int compareTo(ReportingExportable o)
compareTo
in interface ReportingExportable
compareTo
in interface Comparable<ReportingExportable>
compareTo
in class DefaultReportingData
public static String getSQLPlaceholder()
public void addConditionToQuery(Query q, Element c)
ReportingData
Query.addCondition(String, String, String, String, List)
addConditionToQuery
in interface ReportingData
addConditionToQuery
in class DefaultReportingData
q
- - the query Object, where condtion has to be addedc
- - the xml element of type conditionprotected static Timestamp getDate(Date startDate, int offset, String unit, boolean exact, boolean endDate)
startDate
- mostly todayoffset
- the offset to addunit
- the unit of the offsetexact
- true if it should be calculated exactlyendDate
- optional enddatepublic String getDateformat()
public void setDateformat(String df)
public static JSONPage getDateDisplayString(HttpServletRequest req)
public static boolean isParseEndDateOperator(String operator)
operator
- public static JSONPage getExampleDate(HttpServletRequest req)
public static Collection<ReportingExportable> completeSeries(Set<ReportingExportable> series, String dateformat, Date min, Date max, boolean expand)
public static void increment(com.ibm.icu.util.Calendar cal, String dateformat)
protected static Pair<Date,Date> getMinMax(ReportingData rd, Query q)
public Collection<ReportingExportable> completeSeries(Set<ReportingExportable> series, Query q)
ReportingData
series
completeSeries
in interface ReportingData
completeSeries
in class DefaultReportingData
series
- the current values from the DBq
- the query@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.