Package org.eclipse.persistence.queries
Class ConstructorResult
- java.lang.Object
-
- org.eclipse.persistence.queries.SQLResult
-
- org.eclipse.persistence.queries.ConstructorResult
-
- All Implemented Interfaces:
java.io.Serializable
public class ConstructorResult extends SQLResult
Purpose: Concrete class to represent the ConstructorResult structure as defined by the JPA 2.1 Persistence specification.
- Since:
- EclipseLink 2.4
- Author:
- Guy Pelletier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConstructorResult(java.lang.Class targetClass)
Constructor accepting target class.ConstructorResult(java.lang.String targetClassName)
Constructor accepting target class name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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/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
-
-
-
-
Method Detail
-
addColumnResult
public void addColumnResult(ColumnResult columnResult)
Add a column result to this constructor result.
-
convertClassNamesToClasses
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this query to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.- Overrides:
convertClassNamesToClasses
in classSQLResult
- Parameters:
classLoader
-
-
getColumnResults
public java.util.List<ColumnResult> getColumnResults()
Return the columns result of this constructor result.
-
getValueFromRecord
public java.lang.Object getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)
INTERNAL: This method is a convenience method for extracting values from results/- Specified by:
getValueFromRecord
in classSQLResult
-
isConstructorResult
public boolean isConstructorResult()
Return true if this is a constructor result.- Overrides:
isConstructorResult
in classSQLResult
-
setColumnResults
public void setColumnResults(java.util.List<ColumnResult> columnResults)
Set columns result of this constructor result.
-
-