Package com.groiss.reporting.data
Interface Attribute
public interface Attribute
An attribute represents a simple field in an
Entity
/DB-table or a more complex structure containing multiple fields/sources-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
getId()
getMapId()
in case of mapped values, the method returns the <mapping>-idgetName()
int
Select[]
Class<?>
getType()
static Attribute
newInstance
(String id, String name, Class<?> c, Select[] select, String[] aggrs, String mapId, Resource res) create a new instance
-
Field Details
-
MAX
static final int MAX- See Also:
-
MIN
static final int MIN- See Also:
-
COUNT
static final int COUNT- See Also:
-
AVG
static final int AVG- See Also:
-
SUM
static final int SUM- See Also:
-
SQL
static final int SQL- See Also:
-
CONCAT
static final int CONCAT- See Also:
-
ALL_AGGR
-
DATE_FORMATS
-
-
Method Details
-
newInstance
static Attribute newInstance(String id, String name, Class<?> c, Select[] select, String[] aggrs, String mapId, Resource res) create a new instance- Parameters:
id
-name
-c
-select
-aggrs
-mapId
-res
-- Returns:
-
getId
String getId()- Returns:
- the id
-
getName
String getName()- Returns:
- the name
-
getLocalizedName
String getLocalizedName()- Returns:
- the i18n-name
-
getMapId
String getMapId()in case of mapped values, the method returns the <mapping>-id- Returns:
- in case of mapped values,
-
getResource
Resource getResource()- Returns:
- the
Resource
used for i18n
-
getSelectLength
int getSelectLength()- Returns:
- the number of fields selected from the DB
-
getSelects
Select[] getSelects()- Returns:
- the defined selections for the SQL-query
-
getAllowedAggrs
String[] getAllowedAggrs()- Returns:
- all allowed aggregation-types
-
getAsDomElement
Element getAsDomElement()- Returns:
- the DOM-element from reporting.xml
-
getType
Class<?> getType()- Returns:
- the class used for this attribute. May be a simple type, or a
ReportingData
-
getTypeString
String getTypeString()- Returns:
- the classname of
getType()
-