com.groiss.reporting.data
Interface ReportingData

All Superinterfaces:
java.lang.Comparable<ReportingExportable>, ReportingExportable
All Known Subinterfaces:
NumericValue

public interface ReportingData
extends ReportingExportable

Interface ReportingData Inteface for all ReportingData, which does not fit to Standard Datatypes


Method Summary
 void addConditionToQuery(Query q, org.jdom.Element c)
          Adds the XMLAttribute as a conditon to the query.
 java.util.List<? extends java.lang.Object> addParamAtExecuteRow(int count, org.jdom.Element c, java.lang.StringBuilder javascript, Query q)
          Adds a row of HTML
 void addSelectAttributeToQuery(Query q, org.jdom.Element select)
          Adds the XMLAttribute as a select attribute to the query.
 Attribute getAttribute()
           
 Page getAttributePage(java.lang.String id, org.jdom.Document query)
          Returns the AttributeOptions Page for this Data type.
 Page getConditionPage(java.lang.String id, org.jdom.Document query)
          Returns the ConditonOptions Page for this Data type
 Entity getEntity()
           
 void setAttribute(Attribute a)
           
 void setEntity(Entity e)
           
 void setValue(java.sql.ResultSet rs, org.jdom.Element selectAttribute, Query q)
          Sets the value of this object.
 
Methods inherited from interface com.groiss.reporting.export.ReportingExportable
compareTo, getValue, setValue, toHtml, toText
 

Method Detail

getAttributePage

Page getAttributePage(java.lang.String id,
                      org.jdom.Document query)
Returns the AttributeOptions Page for this Data type.

Parameters:
id - - the id of the attribute if method is called in edit mode.
query - - the context query
Returns:
- the option page

getConditionPage

Page getConditionPage(java.lang.String id,
                      org.jdom.Document query)
Returns the ConditonOptions Page for this Data type

Parameters:
id - - the id of the condition if method is called in edit mode.
query - - the context query
Returns:
- the option page

addParamAtExecuteRow

java.util.List<? extends java.lang.Object> addParamAtExecuteRow(int count,
                                                                org.jdom.Element c,
                                                                java.lang.StringBuilder javascript,
                                                                Query q)
Adds a row of HTML

Parameters:
count - - a counter, to gain the the names of operator and value fields.
c - - the condition, which requires the param at execution mode.
javascript - - may be additional javascript is needed. append it to this StringBuilder
q - - the query object containing this condition
Returns:
- the list of parameter rows. every row contains a label, second the operator field and last the value field.

getAttribute

Attribute getAttribute()
Returns:
the attribute of schema, which refers to this object

setAttribute

void setAttribute(Attribute a)
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

void setEntity(Entity e)
Parameters:
e - - set the entity

addSelectAttributeToQuery

void addSelectAttributeToQuery(Query q,
                               org.jdom.Element select)
Adds the XMLAttribute as a select attribute to the query. Has to call Query.addSelect(String, String, String, String, boolean, boolean) and Query.addSelectNameOfAttrib(Element, String)!

Parameters:
q - - the query Object, where select attribute is added
select - - the xml element of type attribute

addConditionToQuery

void addConditionToQuery(Query q,
                         org.jdom.Element c)
Adds the XMLAttribute as a conditon to the query. Has to call Query.addCondition(String, String, String, String, List)

Parameters:
q - - the query Object, where condtion has to be added
c - - the xml element of type condition

setValue

void setValue(java.sql.ResultSet rs,
              org.jdom.Element selectAttribute,
              Query q)
Sets the value of this object. Value is gained from result set with attributenames. @see com.groiss.reporting.engine.Query#getSelectNamesOfAttribs(Element)

Parameters:
rs - - the result set of the query
selectAttribute - - the xml-element attribute of the query
q - - the query object


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.