|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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| Constructor Summary | |
|---|---|
EntityResult(Class entityClass)
|
|
EntityResult(String entityClassName)
|
|
| Method Summary | |
|---|---|
void |
addFieldResult(FieldResult fieldResult)
|
void |
convertClassNamesToClasses(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. |
Map |
getFieldResults()
Accessor for the internally stored list of FieldResult. |
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,
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(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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityResult(Class entityClass)
public EntityResult(String entityClassName)
| Method Detail |
|---|
public void addFieldResult(FieldResult fieldResult)
public void convertClassNamesToClasses(ClassLoader classLoader)
convertClassNamesToClasses in class SQLResultclassLoader - public Map getFieldResults()
public org.eclipse.persistence.internal.helper.DatabaseField getDiscriminatorColumn()
public void setDiscriminatorColumn(String column)
public void setDiscriminatorColumn(org.eclipse.persistence.internal.helper.DatabaseField column)
public 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,
String[] attributeNames,
int currentLoc)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||