public class ReportItem
extends java.lang.Object
implements java.io.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 java.lang.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 java.lang.Class |
resultType
Result type for this report item.
|
Constructor and Description |
---|
ReportItem() |
ReportItem(java.lang.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() |
java.lang.String |
getName() |
int |
getResultIndex() |
java.lang.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(java.lang.Class resultType) |
java.lang.String |
toString() |
protected Expression attributeExpression
protected java.lang.String name
protected DatabaseMapping mapping
protected ClassDescriptor descriptor
protected java.lang.Class resultType
protected JoinedAttributeManager joinManager
protected int resultIndex
public ReportItem()
public ReportItem(java.lang.String name, Expression attributeExpression)
public Expression getAttributeExpression()
public ClassDescriptor getDescriptor()
public JoinedAttributeManager getJoinedAttributeManager()
public DatabaseMapping getMapping()
public java.lang.String getName()
public int getResultIndex()
public java.lang.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(java.lang.Class resultType)
public java.lang.String toString()
toString
in class java.lang.Object