Methods Summary |
---|
public void | addAttribute(oracle.toplink.essentials.expressions.Expression attributeExpression)Method to add an expression to be used to return the parameter that is then passed into the constructor method.
Similar to ReportQuery's addAttribute method, but a name is not needed
ReportItem item = new ReportItem(getName()+getReportItems().size(), attributeExpression);
getReportItems().add(item);
|
public void | addAttribute(java.lang.String attributeName, oracle.toplink.essentials.expressions.Expression attributeExpression, java.util.List joinedExpressions)
ReportItem item = new ReportItem(attributeName, attributeExpression);
item.getJoinedAttributeManager().setJoinedAttributeExpressions_(joinedExpressions);
getReportItems().add(item);
|
public void | addItem(oracle.toplink.essentials.internal.queryframework.ReportItem item)
getReportItems().add(item);
|
public java.lang.Class[] | getConstructorArgTypes()
return constructorArgTypes;
|
public java.util.List | getConstructorMappings()
return constructorMappings;
|
public java.util.List | getReportItems()
if (reportItems==null){
reportItems=new Vector();
}
return reportItems;
|
public void | initialize(oracle.toplink.essentials.queryframework.ReportQuery query)INTERNAL:
Looks up mapping for attribute during preExecute of ReportQuery
int size= getReportItems().size();
List mappings = new Vector();
for (int i=0;i<size;i++){
ReportItem item = (ReportItem)reportItems.get(i);
item.initialize(query);
mappings.add(item.getMapping());
}
setConstructorMappings(mappings);
|
public boolean | isContructorItem()
return true;
|
public void | setConstructorArgTypes(java.lang.Class[] constructorArgTypes)
this.constructorArgTypes = constructorArgTypes;
|
public void | setConstructorMappings(java.util.List constructorMappings)
this.constructorMappings = constructorMappings;
|
public void | setReportItems(java.util.List reportItems)
this.reportItems = reportItems;
|
public java.lang.String | toString()
String string = "ConstructorReportItem(" + getName() + " -> [";
//don't use getReportItems to avoid creating collection.
if (reportItems!=null){
int size=reportItems.size();
for(int i=0;i<size;i++){
string =string + reportItems.get(i).toString();
}
}
return string +"])";
|