Package com.groiss.reporting.data.impl
Class PersistentData
java.lang.Object
com.groiss.reporting.export.AbstractReportingExportable
com.groiss.reporting.data.impl.DefaultReportingData
com.groiss.reporting.data.impl.PersistentData
- All Implemented Interfaces:
NumericValue
,ReportingData
,ReportingExportable
,Cloneable
,Comparable<ReportingExportable>
- Direct Known Subclasses:
HasClassAttributePersistentData
,OEPersistentData
,UserPersistentData
Reporting data type for persistents.
-
Field Summary
Fields inherited from class com.groiss.reporting.data.impl.DefaultReportingData
a, alias, attributeHasUserdefType, dontUseMappedString, e, value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addClientConditionWidgetOptions
(JSONObject json, boolean paramAtExec, Element condition) add clientcondition attributes to attribute storevoid
addConditionToQuery
(Query q, Element c) Adds the XMLAttribute as a conditon to the query.protected boolean
addRightCheckConditionToQuery
(Right right, Query q, String tablename, String selection, String tablealias) final void
addValues
(JSONObject obj, String values) int
completeSeries
(Set<ReportingExportable> series, Query q) invoked for matrix-style reports to be able to add missing entries in the givenseries
final Object
sincegetValue()
autofills non-filled persistents - this method returns the unmodified valuestatic Page
final Collection<Persistent>
getValue()
protected final Persistent
instantiate
(Class<?> clazz, long oid) final void
void
Sets the value of this object.toJson()
Export Data to Json (used in ep 9.0)Methods inherited from class com.groiss.reporting.data.impl.DefaultReportingData
add, addIgnoreCaseComponents, addSelectAttributeToQuery, avg, checkTempJoin, compare2, getAlias, getAttribute, getBaseType, getColumnRenderer, getDBData, getEntity, getMappedValue, getMappedValues, getOperatorList, hasAttributeUserdefinedType, hasMappedValues, pairList, pairList, pairList, pairList, setAlias, setAttribute, setAttributeHasUserdefinedType, setEntity, setMappedValue, setValue, splitValueAttribute, toHtml, toString, toText
Methods inherited from class com.groiss.reporting.export.AbstractReportingExportable
getSortText
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.groiss.reporting.export.ReportingExportable
getSortText
-
Constructor Details
-
PersistentData
public PersistentData()
-
-
Method Details
-
getPersistentObjectsLabels
-
addClientConditionWidgetOptions
public void addClientConditionWidgetOptions(JSONObject json, boolean paramAtExec, Element condition) Description copied from interface:ReportingData
add clientcondition attributes to attribute store- Specified by:
addClientConditionWidgetOptions
in interfaceReportingData
- Overrides:
addClientConditionWidgetOptions
in classDefaultReportingData
- Parameters:
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 scenarios
-
setValue
Description copied from interface:ReportingData
Sets the value of this object. Value is gained from resultset.- Specified by:
setValue
in interfaceReportingData
- Overrides:
setValue
in classDefaultReportingData
- Parameters:
rs
- - the result set of the queryselectAttribute
- - the xml-element attribute of the queryq
- - the query object- See Also:
-
getValue
- Specified by:
getValue
in interfaceReportingExportable
- Overrides:
getValue
in classDefaultReportingData
- Returns:
- the value of this object
-
getCurrentValue
sincegetValue()
autofills non-filled persistents - this method returns the unmodified value- Returns:
-
instantiate
-
getUnfilledPersistents
-
releaseUnfilled
public final void releaseUnfilled() -
getClassesList
-
addValues
-
addRightCheckConditionToQuery
protected boolean addRightCheckConditionToQuery(Right right, Query q, String tablename, String selection, String tablealias) - Parameters:
right
- the rightq
- the querytablename
- the tablenameselection
- the selectiontablealias
- the tablealias- Returns:
-
addConditionToQuery
Description copied from interface:ReportingData
Adds the XMLAttribute as a conditon to the query. Has to callQuery.addCondition(String, String, String, String, List)
- Specified by:
addConditionToQuery
in interfaceReportingData
- Overrides:
addConditionToQuery
in classDefaultReportingData
- Parameters:
q
- - the query Object, where condtion has to be addedc
- - the xml element of type condition
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ReportingExportable>
- Specified by:
compareTo
in interfaceReportingExportable
- Overrides:
compareTo
in classDefaultReportingData
-
completeSeries
Description copied from interface:ReportingData
invoked for matrix-style reports to be able to add missing entries in the givenseries
- Specified by:
completeSeries
in interfaceReportingData
- Overrides:
completeSeries
in classDefaultReportingData
- 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.)
-
toJson
Description copied from interface:ReportingExportable
Export Data to Json (used in ep 9.0)- Specified by:
toJson
in interfaceReportingExportable
- Overrides:
toJson
in classDefaultReportingData
- Returns:
- the data
-