Package com.groiss.reporting.data
Interface ReportingData
- All Superinterfaces:
Comparable<ReportingExportable>
,ReportingExportable
- All Known Subinterfaces:
NumericValue
- All Known Implementing Classes:
DateReportingData
,DefaultReportingData
,HasClassAttributePersistentData
,OEPersistentData
,PersistentData
,TimeInterval
,UserPersistentData
Interface ReportingData
Inteface for all ReportingData, which does not fit to Standard Datatypes
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addClientConditionWidgetOptions
(JSONObject json, boolean isParamAtExec, Element condition) add clientcondition attributes to attribute storevoid
addConditionToQuery
(Query q, Element c) Adds the XMLAttribute as a conditon to the query.void
addSelectAttributeToQuery
(Query q, Element select) Adds the XMLAttribute as a select attribute to the query.completeSeries
(Set<ReportingExportable> series, Query q) invoked for matrix-style reports to be able to add missing entries in the givenseries
getOperatorList
(boolean comesFromParamMask) void
void
void
Sets the value of this object.Methods inherited from interface com.groiss.reporting.export.ReportingExportable
compareTo, getColumnRenderer, getSortText, getValue, setValue, toJson, toText
-
Method Details
-
getAttribute
Attribute getAttribute()- Returns:
- the attribute of schema, which refers to this object
-
setAttribute
- Parameters:
a
- - set the attribute of schema which refers to this object
-
getEntity
Entity getEntity()- Returns:
- the entity of schema, which contains the attribute
-
setEntity
- Parameters:
e
- - set the entity
-
addSelectAttributeToQuery
Adds the XMLAttribute as a select attribute to the query. Has to callQuery.addSelect(String, String, String, String, boolean, boolean)
andQuery.addSelectIndexOfAttrib(Element, int)
!- Parameters:
q
- - the query Object, where select attribute is addedselect
- - the xml element of type attribute
-
addConditionToQuery
Adds the XMLAttribute as a conditon to the query. Has to callQuery.addCondition(String, String, String, String, List)
- Parameters:
q
- - the query Object, where condtion has to be addedc
- - the xml element of type condition
-
setValue
Sets the value of this object. Value is gained from resultset.- Parameters:
rs
- - the result set of the queryselectAttribute
- - the xml-element attribute of the queryq
- - the query object- See Also:
-
addClientConditionWidgetOptions
default void addClientConditionWidgetOptions(JSONObject json, boolean isParamAtExec, Element condition) add clientcondition attributes to attribute store- Parameters:
json
- the json object of this attributeisParamAtExec
- 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 scenarios
-
getOperatorList
- Parameters:
comesFromParamMask
- true if list is taken for parameter of execution.- Returns:
- a list of pairs of string representing the available operators. The key string of the pair is the xml representation of the operator, the second string the i18n value.
-
completeSeries
invoked for matrix-style reports to be able to add missing entries in the givenseries
- Parameters:
series
- the current values from the DBq
- the query- Returns:
- the full series (e.g. for dates all dates from t1-t2, for persistents all elements of a certain type etc.)
-