|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.internal.queryframework.ReportItem oracle.toplink.queryframework.ConstructorReportItem
public class ConstructorReportItem
Purpose: An item specifying a class constructor method to be used in a ReportQuery's returned results.
Example:
ConstructorReportItem item = new ConstructorReportItem("Employee"); item.setResultType(Employee.class); item.addAttribute("firstName", employees.get("firstName")); query.addConstructorReportItem(item);
When executed will return a collection of ReportQueryResults that contain Employee objects created using the new Employee(firstname) constructor.
Constructor Summary | |
---|---|
ConstructorReportItem()
Create a new constructor item. |
|
ConstructorReportItem(java.lang.String name)
Create a new constructor item. |
Method Summary | |
---|---|
void |
addAttribute(Expression attributeExpression)
Method to add an expression to be used to return the parameter that is then passed into the constructor method. |
void |
addAttribute(java.lang.String attributeName,
Expression attributeExpression,
java.util.List joinedExpressions)
Add the attribute with joining. |
void |
addItem(oracle.toplink.internal.queryframework.ReportItem item)
|
java.lang.Class[] |
getConstructorArgTypes()
|
java.util.List |
getReportItems()
|
boolean |
isConstructorItem()
|
void |
setConstructorArgTypes(java.lang.Class[] constructorArgTypes)
|
void |
setReportItems(java.util.List reportItems)
|
java.lang.String |
toString()
|
Methods inherited from class oracle.toplink.internal.queryframework.ReportItem |
---|
clone, getAttributeExpression, getDescriptor, getJoinedAttributeManagerInternal, getMapping, getName, getResultIndex, getResultType, isPlaceHolder, setDescriptor, setJoinedAttributeManager, setMapping, setResultIndex, setResultType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstructorReportItem()
public ConstructorReportItem(java.lang.String name)
name
- string used to look up this result in the ReportQueryResult.Method Detail |
---|
public void addAttribute(Expression attributeExpression)
public void addAttribute(java.lang.String attributeName, Expression attributeExpression, java.util.List joinedExpressions)
public void addItem(oracle.toplink.internal.queryframework.ReportItem item)
public java.lang.Class[] getConstructorArgTypes()
public java.util.List getReportItems()
public boolean isConstructorItem()
isConstructorItem
in class oracle.toplink.internal.queryframework.ReportItem
public void setConstructorArgTypes(java.lang.Class[] constructorArgTypes)
public void setReportItems(java.util.List reportItems)
public java.lang.String toString()
toString
in class oracle.toplink.internal.queryframework.ReportItem
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |