Class ReportItem
- java.lang.Object
-
- org.eclipse.persistence.internal.queries.ReportItem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
ConstructorReportItem
public class ReportItem extends java.lang.Object implements java.lang.Cloneable, java.io.SerializablePurpose: represents an item requested (i.e. field for SELECT)- Since:
- 2.0
- Author:
- Doug Clarke
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionattributeExpressionExpression (partial) describing the attribute wantedprotected ClassDescriptordescriptorDescriptor for object result that is not based on an expressionprotected JoinedAttributeManagerjoinedAttributeManagerStores the Join information for this itemprotected DatabaseMappingmappingMapping which relates field to attribute, used to convert value and determine reference descriptorprotected java.lang.StringnameName given for item, can be used to retrieve value from result.protected intresultIndexStores the row index for this item, given multiple results and joinsprotected java.lang.ClassresultTypeResult type for this report item.
-
Constructor Summary
Constructors Constructor Description ReportItem()ReportItem(java.lang.String name, Expression attributeExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()ExpressiongetAttributeExpression()ClassDescriptorgetDescriptor()JoinedAttributeManagergetJoinedAttributeManager()INTERNAL: Set the list of expressions that represent elements that are joined because of their mapping for this query.JoinedAttributeManagergetJoinedAttributeManagerInternal()DatabaseMappinggetMapping()java.lang.StringgetName()intgetResultIndex()java.lang.ClassgetResultType()booleanhasJoining()INTERNAL: Return if any attributes are joined.voidinitialize(ReportQuery query)INTERNAL: Looks up mapping for attribute during preExecute of ReportQuerybooleanisConstructorItem()voidsetAttributeExpression(Expression attributeExpression)voidsetDescriptor(ClassDescriptor descriptor)voidsetJoinedAttributeManager(JoinedAttributeManager joinManager)voidsetMapping(DatabaseMapping mapping)voidsetResultIndex(int resultIndex)voidsetResultType(java.lang.Class resultType)java.lang.StringtoString()
-
-
-
Field Detail
-
attributeExpression
protected Expression attributeExpression
Expression (partial) describing the attribute wanted
-
name
protected java.lang.String name
Name given for item, can be used to retrieve value from result. Useful if same field retrieved multiple times
-
mapping
protected DatabaseMapping mapping
Mapping which relates field to attribute, used to convert value and determine reference descriptor
-
descriptor
protected ClassDescriptor descriptor
Descriptor for object result that is not based on an expression
-
resultType
protected java.lang.Class resultType
Result type for this report item.
-
joinedAttributeManager
protected JoinedAttributeManager joinedAttributeManager
Stores the Join information for this item
-
resultIndex
protected int resultIndex
Stores the row index for this item, given multiple results and joins
-
-
Constructor Detail
-
ReportItem
public ReportItem()
-
ReportItem
public ReportItem(java.lang.String name, Expression attributeExpression)
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
getAttributeExpression
public Expression getAttributeExpression()
-
setAttributeExpression
public void setAttributeExpression(Expression attributeExpression)
-
getDescriptor
public ClassDescriptor getDescriptor()
-
getJoinedAttributeManager
public JoinedAttributeManager getJoinedAttributeManager()
INTERNAL: Set the list of expressions that represent elements that are joined because of their mapping for this query.
-
getJoinedAttributeManagerInternal
public JoinedAttributeManager getJoinedAttributeManagerInternal()
-
hasJoining
public boolean hasJoining()
INTERNAL: Return if any attributes are joined. To avoid the initialization of the JoinedAttributeManager this should be first checked before accessing.
-
getMapping
public DatabaseMapping getMapping()
-
getName
public java.lang.String getName()
-
getResultIndex
public int getResultIndex()
-
getResultType
public java.lang.Class getResultType()
-
initialize
public void initialize(ReportQuery query) throws QueryException
INTERNAL: Looks up mapping for attribute during preExecute of ReportQuery- Throws:
QueryException
-
isConstructorItem
public boolean isConstructorItem()
-
setDescriptor
public void setDescriptor(ClassDescriptor descriptor)
-
setJoinedAttributeManager
public void setJoinedAttributeManager(JoinedAttributeManager joinManager)
-
setMapping
public void setMapping(DatabaseMapping mapping)
-
setResultIndex
public void setResultIndex(int resultIndex)
-
setResultType
public void setResultType(java.lang.Class resultType)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-