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 | columnResults
Stored the column results of this constructor result |
| protected transient Constructor | |
| protected Class | |
| protected transient Class | |
| protected String | targetClassName
Stores the class of result |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | convertClassNamesToClasses(ClassLoader classLoader)
Overrides org. |
| public List | |
| public Object | getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)
Implements abstract org. |
| protected void | |
| public boolean | isConstructorResult()
Overrides org. |
| public void |
| columnResults | back to summary |
|---|---|
| protected List<ColumnResult> columnResults Stored the column results of this constructor result | |
| constructor | back to summary |
|---|---|
| protected transient Constructor<?> constructor | |
| constructorArgTypes | back to summary |
|---|---|
| protected Class<?>[] constructorArgTypes | |
| targetClass | back to summary |
|---|---|
| protected transient Class<?> targetClass | |
| targetClassName | back to summary |
|---|---|
| protected String targetClassName Stores the class of result | |
| ConstructorResult | back to summary |
|---|---|
| protected ConstructorResult() Default constructor is protected. Users must initialize the constructor result with a target class. | |
| ConstructorResult | back to summary |
|---|---|
| public ConstructorResult(Class<?> targetClass) Constructor accepting target class. | |
| ConstructorResult | back to summary |
|---|---|
| public ConstructorResult(String targetClassName) Constructor accepting target class name. | |
| addColumnResult | back to summary |
|---|---|
| public void addColumnResult(ColumnResult columnResult) Add a column result to this constructor result. | |
| convertClassNamesToClasses | back to summary |
|---|---|
| public void convertClassNamesToClasses(ClassLoader classLoader) Overrides org. 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.
| |
| getColumnResults | back to summary |
|---|---|
| public List Return the columns result of this constructor result. | |
| getValueFromRecord | back to summary |
|---|---|
| public Object getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query) Implements abstract org. INTERNAL: This method is a convenience method for extracting values from results/
| |
| initialize | back to summary |
|---|---|
| protected void initialize(DatabaseRecord record, ResultSetMappingQuery query) INTERNAL: | |
| isConstructorResult | back to summary |
|---|---|
| public boolean isConstructorResult() Overrides org. Return true if this is a constructor result.
| |
| setColumnResults | back to summary |
|---|---|
| public void setColumnResults(List<ColumnResult> columnResults) Set columns result of this constructor result. | |