| java.lang.Object com.ibatis.sqlmap.engine.mapping.result.BasicResultMap
All known Subclasses: com.ibatis.sqlmap.engine.mapping.result.AutoResultMap,
BasicResultMap | public class BasicResultMap implements ResultMap(Code) | | Basic implementation of ResultMap interface
|
Method Summary | |
public void | addGroupByProperty(String name) | public void | addNestedResultMappings(ResultMapping mapping) | protected Object | doNullMapping(Object value, BasicResultMapping mapping) | public DataExchange | getDataExchange() | public SqlMapExecutorDelegate | getDelegate() | public Discriminator | getDiscriminator() | public String | getId() | public List | getNestedResultMappings() | protected Object | getNestedSelectMappingValue(RequestScope request, ResultSet rs, BasicResultMapping mapping, Class targetType) | protected Object | getPrimitiveResultMappingValue(ResultSet rs, BasicResultMapping mapping) | public String | getResource() | public Class | getResultClass() | public int | getResultCount() | public ResultMapping[] | getResultMappings() | public Object[] | getResults(RequestScope request, ResultSet rs) Read a row from a resultset and map results to an array. | public Object | getUniqueKey(String keyPrefix, Object[] values) | public Object | getUniqueKey(Object[] values) | public String | getXmlName() | public Iterator | groupByProps() | public boolean | hasGroupBy() | public ResultMap | resolveSubMap(RequestScope request, ResultSet rs) | public void | setDataExchange(DataExchange dataExchange) | public void | setDiscriminator(Discriminator discriminator) | public void | setId(String id) | protected void | setNestedResultMappingValue(BasicResultMapping mapping, RequestScope request, Object resultObject, Object[] values) Some changes in this method for IBATIS-225:
- We no longer require the nested property to be a collection.
| public void | setResource(String resource) | public void | setResultClass(Class resultClass) | public void | setResultMappingList(List resultMappingList) | public Object | setResultObjectValues(RequestScope request, Object resultObject, Object[] values) | public void | setXmlName(String xmlName) |
allowRemapping | protected boolean allowRemapping(Code) | | |
BasicResultMap | public BasicResultMap(SqlMapExecutorDelegate delegate)(Code) | | Constructor to pass a SqlMapExecutorDelegate in
Parameters: delegate - - the SqlMapExecutorDelegate |
addGroupByProperty | public void addGroupByProperty(String name)(Code) | | |
getDataExchange | public DataExchange getDataExchange()(Code) | | Getter for the DataExchange object to be used
- the DataExchange object |
getNestedResultMappings | public List getNestedResultMappings()(Code) | | |
getResource | public String getResource()(Code) | | Getter for the resource (used to report errors)
- the resource |
getResultCount | public int getResultCount()(Code) | | Getter for the number of ResultMapping objects
- the count |
getXmlName | public String getXmlName()(Code) | | Getter (used by DomDataExchange) for the xml name of the results
- the name |
hasGroupBy | public boolean hasGroupBy()(Code) | | |
setDataExchange | public void setDataExchange(DataExchange dataExchange)(Code) | | Setter for the DataExchange object to be used
Parameters: dataExchange - - the new DataExchange object |
setId | public void setId(String id)(Code) | | Setter for the ID
Parameters: id - - the new ID |
setNestedResultMappingValue | protected void setNestedResultMappingValue(BasicResultMapping mapping, RequestScope request, Object resultObject, Object[] values)(Code) | | Some changes in this method for IBATIS-225:
- We no longer require the nested property to be a collection. This
will allow reuses of resultMaps on 1:1 relationships
- If the nested property is not a collection, then it will be
created/replaced by the values generated from the current row.
Parameters: mapping - Parameters: request - Parameters: resultObject - Parameters: values - |
setResource | public void setResource(String resource)(Code) | | Setter for the resource (used by the SqlMapBuilder)
Parameters: resource - - the resource name |
setResultClass | public void setResultClass(Class resultClass)(Code) | | Setter for the result class (what the results will be mapped into)
Parameters: resultClass - - the result class |
setResultMappingList | public void setResultMappingList(List resultMappingList)(Code) | | Setter for a list of the individual ResultMapping objects
Parameters: resultMappingList - - the list |
setXmlName | public void setXmlName(String xmlName)(Code) | | Setter (used by the SqlMapBuilder) for the xml name of the results
Parameters: xmlName - - the name |
|
|