public class ConstructorResult extends SQLResult
Purpose: Concrete class to represent the ConstructorResult structure as defined by the JPA 2.1 Persistence specification.
Modifier and Type | Field and Description |
---|---|
protected List<ColumnResult> |
columnResults
Stored the column results of this constructor result
|
protected Constructor |
constructor |
protected Class[] |
constructorArgTypes |
protected Class |
targetClass |
protected String |
targetClassName
Stores the class of result
|
sqlResultSetMapping
Modifier | Constructor and Description |
---|---|
protected |
ConstructorResult()
Default constructor is protected.
|
|
ConstructorResult(Class targetClass)
Constructor accepting target class.
|
|
ConstructorResult(String targetClassName)
Constructor accepting target class name.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumnResult(ColumnResult columnResult)
Add a column result to this constructor result.
|
void |
convertClassNamesToClasses(ClassLoader classLoader)
INTERNAL:
Convert all the class-name-based settings in this query to actual class-based
settings.
|
List<ColumnResult> |
getColumnResults()
Return the columns result of this constructor result.
|
Object |
getValueFromRecord(DatabaseRecord record,
ResultSetMappingQuery query)
INTERNAL:
This method is a convenience method for extracting values from results/
|
protected void |
initialize(DatabaseRecord record,
ResultSetMappingQuery query)
INTERNAL:
|
boolean |
isConstructorResult()
Return true if this is a constructor result.
|
void |
setColumnResults(List<ColumnResult> columnResults)
Set columns result of this constructor result.
|
getSQLResultMapping, isColumnResult, isEntityResult, setSQLResultMapping
protected String targetClassName
protected transient Class targetClass
protected List<ColumnResult> columnResults
protected transient Constructor constructor
protected Class[] constructorArgTypes
protected ConstructorResult()
public ConstructorResult(Class targetClass)
public ConstructorResult(String targetClassName)
public void addColumnResult(ColumnResult columnResult)
public void convertClassNamesToClasses(ClassLoader classLoader)
convertClassNamesToClasses
in class SQLResult
classLoader
- public List<ColumnResult> getColumnResults()
public Object getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)
getValueFromRecord
in class SQLResult
protected void initialize(DatabaseRecord record, ResultSetMappingQuery query)
public boolean isConstructorResult()
isConstructorResult
in class SQLResult
public void setColumnResults(List<ColumnResult> columnResults)
Copyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.