| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.map.SQLResult
public class SQLResult
A metadata object that defines how a row in a result set can be converted to result objects. SQLResult can be mapped to a single scalar, a single entity or a mix of scalars and entities that is represented as an Object[].
| Field Summary | |
|---|---|
| protected  String | name | 
| protected  List<Object> | resultDescriptors | 
| Constructor Summary | |
|---|---|
| SQLResult()Creates an unnamed SQLResultSet. | |
| SQLResult(String name)Creates a named SQLResultSet. | |
| Method Summary | |
|---|---|
|  void | addColumnResult(String column)Adds a result set column name to the mapping. | 
|  void | addEntityResult(EntityResult entityResult) | 
|  List<Object> | getComponents()Returns a list of "uncompiled" result descriptors. | 
|  String | getName() | 
|  List<Object> | getResolvedComponents(EntityResolver resolver) | 
|  void | setName(String name) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected String name
protected List<Object> resultDescriptors
| Constructor Detail | 
|---|
public SQLResult()
public SQLResult(String name)
| Method Detail | 
|---|
public List<Object> getResolvedComponents(EntityResolver resolver)
public String getName()
public void setName(String name)
public List<Object> getComponents()
EntityResult. To get fully resolved
 descriptors, use getResolvedComponents(EntityResolver).
public void addEntityResult(EntityResult entityResult)
public void addColumnResult(String column)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||