|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
org.eclipse.persistence.queries.SQLResult
org.eclipse.persistence.queries.EntityResult
public class EntityResult
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| Field Summary | |
|---|---|
protected org.eclipse.persistence.internal.helper.DatabaseField |
discriminatorColumnStores the column that will contain the value to determine the correct subclass to create if applicable. |
protected java.lang.Class |
entityClass |
protected java.lang.String |
entityClassNameStores the class name of result |
protected java.util.Map |
fieldResultsStores the list of FieldResult |
| Constructor Summary | |
|---|---|
EntityResult(java.lang.Class entityClass) |
|
EntityResult(java.lang.String entityClassName) |
|
| Method Summary | |
|---|---|
void |
addFieldResult(FieldResult fieldResult) |
void |
convertClassNamesToClasses(java.lang.ClassLoader classLoader)INTERNAL: Convert all the class-name-based settings in this query to actual class-based settings. |
org.eclipse.persistence.internal.helper.DatabaseField |
getDiscriminatorColumn()Returns the column name for the column that will store the value used to determine the subclass type if applicable. |
java.util.Map |
getFieldResults()Accessor for the internally stored list of FieldResult. |
java.lang.Object |
getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)INTERNAL: This method is a convenience method for extracting values from Results |
void |
getValueFromRecordForMapping(DatabaseRecord entityRecord, DatabaseMapping mapping, FieldResult fieldResult, DatabaseRecord databaseRecord)INTERNAL: This method is for processing all FieldResults for a mapping. |
boolean |
isEntityResult() |
org.eclipse.persistence.internal.helper.DatabaseField |
processValueFromRecordForMapping(ClassDescriptor descriptor, java.lang.String[] attributeNames, int currentLoc)INTERNAL: This method is for processing a single FieldResult, returning the DatabaseField it refers to. |
void |
setDiscriminatorColumn(org.eclipse.persistence.internal.helper.DatabaseField column) |
void |
setDiscriminatorColumn(java.lang.String column)Sets the column name for the column that will store the value used to determine the subclass type if applicable. |
| Methods inherited from class org.eclipse.persistence.queries.SQLResult |
|---|
isColumnResult |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String entityClassName
protected java.lang.Class entityClass
protected java.util.Map fieldResults
protected org.eclipse.persistence.internal.helper.DatabaseField discriminatorColumn
| Constructor Detail |
|---|
public EntityResult(java.lang.Class entityClass)
public EntityResult(java.lang.String entityClassName)
| Method Detail |
|---|
public void addFieldResult(FieldResult fieldResult)
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
convertClassNamesToClasses in class SQLResultclassLoader -public java.util.Map getFieldResults()
public org.eclipse.persistence.internal.helper.DatabaseField getDiscriminatorColumn()
public void setDiscriminatorColumn(java.lang.String column)
public void setDiscriminatorColumn(org.eclipse.persistence.internal.helper.DatabaseField column)
public java.lang.Object getValueFromRecord(DatabaseRecord record,
ResultSetMappingQuery query)
getValueFromRecord in class SQLResultpublic boolean isEntityResult()
isEntityResult in class SQLResult
public void getValueFromRecordForMapping(DatabaseRecord entityRecord,
DatabaseMapping mapping,
FieldResult fieldResult,
DatabaseRecord databaseRecord)
public org.eclipse.persistence.internal.helper.DatabaseField processValueFromRecordForMapping(ClassDescriptor descriptor,
java.lang.String[] attributeNames,
int currentLoc)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||