Package org.apache.cayenne.map
Class EntityResult
java.lang.Object
org.apache.cayenne.map.EntityResult
A metadata object that provides mapping of a set of result columns to an
 ObjEntity. Used by 
SQLResult. Note that fields in the EntityResult
 are not required to follow the order of columns in the actual query, and can
 be added in the arbitrary order.- Since:
- 3.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Class<?>protected Stringprotected Collection<org.apache.cayenne.map.EntityResult.FieldResult>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDbField(String dbAttributeName, String column) Adds a result set column mapping for a single DbAttribute.voidaddObjectField(String attributeName, String column) Adds a result set column mapping for a single object property of the root entity.voidaddObjectField(String entityName, String attributeName, String column) Adds a result set column mapping for a single object property of a specified entity that may differ from the root entity if inheritance is involved.getDbFields(EntityResolver resolver) Returns a map of result column names to attribute db paths from the root entity.Class<?>
- 
Field Details- 
entityName
- 
entityClass
- 
fields
 
- 
- 
Constructor Details- 
EntityResult
- 
EntityResult
 
- 
- 
Method Details- 
getDbFieldsReturns a map of result column names to attribute db paths from the root entity.
- 
addObjectFieldAdds a result set column mapping for a single object property of the root entity.
- 
addObjectFieldAdds a result set column mapping for a single object property of a specified entity that may differ from the root entity if inheritance is involved.
- 
addDbFieldAdds a result set column mapping for a single DbAttribute.
- 
getEntityName
- 
getEntityClass
 
-