public class ReportItem extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Expression |
attributeExpression
Expression (partial) describing the attribute wanted
|
protected ClassDescriptor |
descriptor
Desriptor for object result that is not based on an expression
|
protected JoinedAttributeManager |
joinManager
Stores the Join information for this item
|
protected DatabaseMapping |
mapping
Mapping which relates field to attribute, used to convert value and determine reference descriptor
|
protected String |
name
Name given for item, can be used to retieve value from result.
|
protected int |
resultIndex
Stores the row index for this item, given multiple results and joins
|
protected Class |
resultType
Result type for this report item.
|
Constructor and Description |
---|
ReportItem() |
ReportItem(String name,
Expression attributeExpression) |
Modifier and Type | Method and Description |
---|---|
Expression |
getAttributeExpression() |
ClassDescriptor |
getDescriptor() |
JoinedAttributeManager |
getJoinedAttributeManager()
INTERNAL:
Set the list of expressions that represent elements that are joined because of their
mapping for this query.
|
DatabaseMapping |
getMapping() |
String |
getName() |
int |
getResultIndex() |
Class |
getResultType() |
void |
initialize(ReportQuery query)
INTERNAL:
Looks up mapping for attribute during preExecute of ReportQuery
|
boolean |
isContructorItem() |
boolean |
isPlaceHolder() |
void |
setDescriptor(ClassDescriptor descriptor) |
void |
setMapping(DatabaseMapping mapping) |
void |
setResultIndex(int resultIndex) |
void |
setResultType(Class resultType) |
String |
toString() |
protected Expression attributeExpression
protected String name
protected DatabaseMapping mapping
protected ClassDescriptor descriptor
protected Class resultType
protected JoinedAttributeManager joinManager
protected int resultIndex
public ReportItem()
public ReportItem(String name, Expression attributeExpression)
public Expression getAttributeExpression()
public ClassDescriptor getDescriptor()
public JoinedAttributeManager getJoinedAttributeManager()
public DatabaseMapping getMapping()
public String getName()
public int getResultIndex()
public Class getResultType()
public void initialize(ReportQuery query) throws QueryException
QueryException
public boolean isContructorItem()
public boolean isPlaceHolder()
public void setDescriptor(ClassDescriptor descriptor)
public void setMapping(DatabaseMapping mapping)
public void setResultIndex(int resultIndex)
public void setResultType(Class resultType)
Copyright © 2022. All rights reserved.