|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.queries.SQLResult
org.eclipse.persistence.queries.ConstructorResult
public class ConstructorResult
Purpose: Concrete class to represent the ConstructorResult structure as defined by the JPA 2.1 Persistence specification.
| Field Summary | |
|---|---|
protected java.util.List<ColumnResult> |
columnResults
Stored the column results of this constructor result |
protected java.lang.reflect.Constructor |
constructor
|
protected java.lang.Class[] |
constructorArgTypes
|
protected java.lang.Class |
targetClass
|
protected java.lang.String |
targetClassName
Stores the class of result |
| Fields inherited from class org.eclipse.persistence.queries.SQLResult |
|---|
sqlResultSetMapping |
| Constructor Summary | |
|---|---|
protected |
ConstructorResult()
Default constructor is protected. |
|
ConstructorResult(java.lang.Class targetClass)
Constructor accepting target class. |
|
ConstructorResult(java.lang.String targetClassName)
Constructor accepting target class name. |
| Method Summary | |
|---|---|
void |
addColumnResult(ColumnResult columnResult)
Add a column result to this constructor result. |
void |
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this query to actual class-based settings. |
java.util.List<ColumnResult> |
getColumnResults()
Return the columns result of this constructor result. |
java.lang.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(java.util.List<ColumnResult> columnResults)
Set columns result of this constructor result. |
| Methods inherited from class org.eclipse.persistence.queries.SQLResult |
|---|
getSQLResultMapping, isColumnResult, isEntityResult, setSQLResultMapping |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String targetClassName
protected transient java.lang.Class targetClass
protected java.util.List<ColumnResult> columnResults
protected java.lang.reflect.Constructor constructor
protected java.lang.Class[] constructorArgTypes
| Constructor Detail |
|---|
protected ConstructorResult()
public ConstructorResult(java.lang.Class targetClass)
public ConstructorResult(java.lang.String targetClassName)
| Method Detail |
|---|
public void addColumnResult(ColumnResult columnResult)
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
convertClassNamesToClasses in class SQLResultclassLoader - public java.util.List<ColumnResult> getColumnResults()
public java.lang.Object getValueFromRecord(DatabaseRecord record,
ResultSetMappingQuery query)
getValueFromRecord in class SQLResult
protected void initialize(DatabaseRecord record,
ResultSetMappingQuery query)
public boolean isConstructorResult()
isConstructorResult in class SQLResultpublic void setColumnResults(java.util.List<ColumnResult> columnResults)
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||