Package org.apache.cayenne.map
Class SQLResult
java.lang.Object
org.apache.cayenne.map.SQLResult
public class SQLResult extends Object
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[].
- Since:
- 3.0
- 
Field SummaryFields Modifier and Type Field Description protected Stringnameprotected List<Object>resultDescriptors
- 
Constructor Summary
- 
Method SummaryModifier and Type Method Description voidaddColumnResult(String column)Adds a result set column name to the mapping.voidaddEntityResult(EntityResult entityResult)List<Object>getComponents()Returns a list of "uncompiled" result descriptors.StringgetName()List<Object>getResolvedComponents(EntityResolver resolver)voidsetName(String name)
- 
Field Details- 
name
- 
resultDescriptors
 
- 
- 
Constructor Details- 
SQLResultpublic SQLResult()Creates an unnamed SQLResultSet.
- 
SQLResultCreates a named SQLResultSet.
 
- 
- 
Method Details- 
getResolvedComponents
- 
getName
- 
setName
- 
getComponentsReturns a list of "uncompiled" result descriptors. Column descriptors are returned as Strings, entity descriptors - asEntityResult. To get fully resolved descriptors, usegetResolvedComponents(EntityResolver).
- 
addEntityResult
- 
addColumnResultAdds a result set column name to the mapping.
 
-