Purpose: Concrete class to represent the EntityResult structure as defined by the EJB 3.0 Persistence specification. This class is a subcomponent of the SQLResultSetMapping
SQLResultSetMapping
| Modifier and Type | Field and Description |
|---|---|
| protected DatabaseField | discriminatorColumn
Stores the column that will contain the value to determine the correct subclass to create if applicable. |
| protected transient Class | |
| protected String | entityClassName
Stores the class name of result |
| protected Map | fieldResults
Stores the list of FieldResult |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | convertClassNamesToClasses(ClassLoader classLoader)
Overrides org. |
| public DatabaseField | getDiscriminatorColumn()
Returns the column name for the column that will store the value used to determine the subclass type if applicable. |
| public Map | |
| public Object | getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)
Implements abstract org. |
| public void | getValueFromRecordForMapping(DatabaseRecord entityRecord, DatabaseMapping mapping, FieldResult fieldResult, DatabaseRecord databaseRecord)
INTERNAL: This method is for processing all FieldResults for a mapping. |
| public boolean | isEntityResult()
Overrides org. |
| public DatabaseField | processValueFromRecordForMapping(ClassDescriptor descriptor, String[] attributeNames, int currentLoc)
INTERNAL: This method is for processing a single FieldResult, returning the DatabaseField it refers to. |
| public void | setDiscriminatorColumn(String column)
Sets the column name for the column that will store the value used to determine the subclass type if applicable. |
| public void |
| discriminatorColumn | back to summary |
|---|---|
| protected DatabaseField discriminatorColumn Stores the column that will contain the value to determine the correct subclass to create if applicable. | |
| entityClass | back to summary |
|---|---|
| protected transient Class<?> entityClass | |
| entityClassName | back to summary |
|---|---|
| protected String entityClassName Stores the class name of result | |
| fieldResults | back to summary |
|---|---|
| protected Map<K, V> fieldResults Stores the list of FieldResult | |
| EntityResult | back to summary |
|---|---|
| public EntityResult(Class<?> entityClass) | |
| EntityResult | back to summary |
|---|---|
| public EntityResult(String entityClassName) | |
| addFieldResult | back to summary |
|---|---|
| public void addFieldResult(FieldResult fieldResult) | |
| 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.
| |
| getDiscriminatorColumn | back to summary |
|---|---|
| public DatabaseField getDiscriminatorColumn() Returns the column name for the column that will store the value used to determine the subclass type if applicable. | |
| getFieldResults | back to summary |
|---|---|
| public Map Accessor for the internally stored list of FieldResult. Calling this method will result in a collection being created to store the FieldResult | |
| 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
| |
| getValueFromRecordForMapping | back to summary |
|---|---|
| public void getValueFromRecordForMapping(DatabaseRecord entityRecord, DatabaseMapping mapping, FieldResult fieldResult, DatabaseRecord databaseRecord) INTERNAL: This method is for processing all FieldResults for a mapping. Adds DatabaseFields to the passed in entityRecord | |
| isEntityResult | back to summary |
|---|---|
| public boolean isEntityResult() Overrides org. Doc from org. Return true if this is an entity result.
| |
| processValueFromRecordForMapping | back to summary |
|---|---|
| public DatabaseField processValueFromRecordForMapping(ClassDescriptor descriptor, String[] attributeNames, int currentLoc) INTERNAL: This method is for processing a single FieldResult, returning the DatabaseField it refers to. | |
| setDiscriminatorColumn | back to summary |
|---|---|
| public void setDiscriminatorColumn(String column) Sets the column name for the column that will store the value used to determine the subclass type if applicable. | |
| setDiscriminatorColumn | back to summary |
|---|---|
| public void setDiscriminatorColumn(DatabaseField column) | |