Module org.eclipse.persistence.core
Class ReportItem
java.lang.Object
org.eclipse.persistence.internal.queries.ReportItem
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
ConstructorReportItem
Purpose: represents an item requested (i.e. field for SELECT)
- Since:
- 2.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expression
Expression (partial) describing the attribute wantedprotected ClassDescriptor
Descriptor for object result that is not based on an expressionprotected JoinedAttributeManager
Stores the Join information for this itemprotected DatabaseMapping
Mapping which relates field to attribute, used to convert value and determine reference descriptorprotected String
Name given for item, can be used to retrieve value from result.protected int
Stores the row index for this item, given multiple results and joinsprotected Class
<?> Result type for this report item. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
INTERNAL: Set the list of expressions that represent elements that are joined because of their mapping for this query.getName()
int
Class
<?> boolean
INTERNAL: Return if any attributes are joined.void
initialize
(ReportQuery query) INTERNAL: Looks up mapping for attribute during preExecute of ReportQueryboolean
void
setAttributeExpression
(Expression attributeExpression) void
setDescriptor
(ClassDescriptor descriptor) void
setJoinedAttributeManager
(JoinedAttributeManager joinManager) void
setMapping
(DatabaseMapping mapping) void
setResultIndex
(int resultIndex) void
setResultType
(Class<?> resultType) toString()
-
Field Details
-
attributeExpression
Expression (partial) describing the attribute wanted -
name
Name given for item, can be used to retrieve value from result. Useful if same field retrieved multiple times -
mapping
Mapping which relates field to attribute, used to convert value and determine reference descriptor -
descriptor
Descriptor for object result that is not based on an expression -
resultType
Result type for this report item. -
joinedAttributeManager
Stores the Join information for this item -
resultIndex
protected int resultIndexStores the row index for this item, given multiple results and joins
-
-
Constructor Details
-
ReportItem
public ReportItem() -
ReportItem
-
-
Method Details
-
clone
-
getAttributeExpression
-
setAttributeExpression
-
getDescriptor
-
getJoinedAttributeManager
INTERNAL: Set the list of expressions that represent elements that are joined because of their mapping for this query. -
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
-
getName
-
getResultIndex
public int getResultIndex() -
getResultType
-
initialize
INTERNAL: Looks up mapping for attribute during preExecute of ReportQuery- Throws:
QueryException
-
isConstructorItem
public boolean isConstructorItem() -
setDescriptor
-
setJoinedAttributeManager
-
setMapping
-
setResultIndex
public void setResultIndex(int resultIndex) -
setResultType
-
toString
-