Package org.eclipse.persistence.queries
Class ConstructorResult
java.lang.Object
org.eclipse.persistence.queries.SQLResult
org.eclipse.persistence.queries.ConstructorResult
- All Implemented Interfaces:
Serializable
Purpose: Concrete class to represent the ConstructorResult structure as defined by the JPA 2.1 Persistence specification.
- See Also:
- Author:
- Guy Pelletier
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ColumnResult>
Stored the column results of this constructor resultprotected Constructor
protected Class[]
protected Class
protected String
Stores the class of resultFields inherited from class org.eclipse.persistence.queries.SQLResult
sqlResultSetMapping
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor is protected.ConstructorResult
(Class targetClass) Constructor accepting target class.ConstructorResult
(String targetClassName) Constructor accepting target class name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Return the columns result of this constructor result.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
Return true if this is a constructor result.void
setColumnResults
(List<ColumnResult> columnResults) Set columns result of this constructor result.Methods inherited from class org.eclipse.persistence.queries.SQLResult
getSQLResultMapping, isColumnResult, isEntityResult, setSQLResultMapping
-
Field Details
-
targetClassName
Stores the class of result -
targetClass
-
columnResults
Stored the column results of this constructor result -
constructor
-
constructorArgTypes
-
-
Constructor Details
-
ConstructorResult
protected ConstructorResult()Default constructor is protected. Users must initialize the constructor result with a target class. -
ConstructorResult
Constructor accepting target class. -
ConstructorResult
Constructor accepting target class name.
-
-
Method Details
-
addColumnResult
Add a column result to this constructor result. -
convertClassNamesToClasses
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
Return the columns result of this constructor result. -
getValueFromRecord
INTERNAL: This method is a convenience method for extracting values from results/- Specified by:
getValueFromRecord
in classSQLResult
-
initialize
INTERNAL: -
isConstructorResult
public boolean isConstructorResult()Return true if this is a constructor result.- Overrides:
isConstructorResult
in classSQLResult
-
setColumnResults
Set columns result of this constructor result.
-