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 SummaryFieldsModifier and TypeFieldDescriptionprotected List<ColumnResult>Stored the column results of this constructor resultprotected Constructorprotected Class[]protected Classprotected StringStores the class of resultFields inherited from class org.eclipse.persistence.queries.SQLResultsqlResultSetMapping
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDefault constructor is protected.ConstructorResult(Class targetClass) Constructor accepting target class.ConstructorResult(String targetClassName) Constructor accepting target class name.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddColumnResult(ColumnResult columnResult) Add a column result to this constructor result.voidconvertClassNamesToClasses(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 voidinitialize(DatabaseRecord record, ResultSetMappingQuery query) INTERNAL:booleanReturn true if this is a constructor result.voidsetColumnResults(List<ColumnResult> columnResults) Set columns result of this constructor result.Methods inherited from class org.eclipse.persistence.queries.SQLResultgetSQLResultMapping, isColumnResult, isEntityResult, setSQLResultMapping
- 
Field Details- 
targetClassNameStores the class of result
- 
targetClass
- 
columnResultsStored the column results of this constructor result
- 
constructor
- 
constructorArgTypes
 
- 
- 
Constructor Details- 
ConstructorResultprotected ConstructorResult()Default constructor is protected. Users must initialize the constructor result with a target class.
- 
ConstructorResultConstructor accepting target class.
- 
ConstructorResultConstructor accepting target class name.
 
- 
- 
Method Details- 
addColumnResultAdd a column result to this constructor result.
- 
convertClassNamesToClassesINTERNAL: 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:
- convertClassNamesToClassesin class- SQLResult
- Parameters:
- classLoader-
 
- 
getColumnResultsReturn the columns result of this constructor result.
- 
getValueFromRecordINTERNAL: This method is a convenience method for extracting values from results/- Specified by:
- getValueFromRecordin class- SQLResult
 
- 
initializeINTERNAL:
- 
isConstructorResultpublic boolean isConstructorResult()Return true if this is a constructor result.- Overrides:
- isConstructorResultin class- SQLResult
 
- 
setColumnResultsSet columns result of this constructor result.
 
-