com.ibatis.sqlmap.engine.mapping.result
public class ResultMap extends Object
| Field Summary | |
|---|---|
| protected boolean | allowRemapping |
| protected SqlMapExecutorDelegate | delegate |
| static Object | NO_VALUE |
| Constructor Summary | |
|---|---|
| ResultMap(SqlMapExecutorDelegate delegate)
Constructor to pass a SqlMapExecutorDelegate in
| |
| Method Summary | |
|---|---|
| void | addGroupByProperty(String name) |
| void | addNestedResultMappings(ResultMapping mapping) |
| protected Object | doNullMapping(Object value, ResultMapping mapping) |
| DataExchange | getDataExchange()
Getter for the DataExchange object to be used
|
| SqlMapExecutorDelegate | getDelegate()
Getter for the SqlMapExecutorDelegate
|
| Discriminator | getDiscriminator() |
| String | getId() |
| List | getNestedResultMappings() |
| protected Object | getNestedSelectMappingValue(StatementScope statementScope, ResultSet rs, ResultMapping mapping, Class targetType) |
| protected Object | getPrimitiveResultMappingValue(ResultSet rs, ResultMapping mapping) |
| String | getResource()
Getter for the resource (used to report errors)
|
| Class | getResultClass() |
| int | getResultCount()
Getter for the number of ResultMapping objects
|
| ResultMapping[] | getResultMappings() |
| Object[] | getResults(StatementScope statementScope, ResultSet rs)
Read a row from a resultset and map results to an array.
|
| Object | getUniqueKey(String keyPrefix, Object[] values) |
| Object | getUniqueKey(Object[] values) |
| String | getXmlName()
Getter (used by DomDataExchange) for the xml name of the results
|
| Iterator | groupByProps() |
| boolean | hasGroupBy() |
| ResultMap | resolveSubMap(StatementScope statementScope, ResultSet rs) |
| void | setDataExchange(DataExchange dataExchange)
Setter for the DataExchange object to be used
|
| void | setDiscriminator(Discriminator discriminator) |
| void | setId(String id)
Setter for the ID
|
| protected void | setNestedResultMappingValue(ResultMapping mapping, StatementScope statementScope, Object resultObject, Object[] values)
Some changes in this method for IBATIS-225:
|
| void | setResource(String resource)
Setter for the resource (used by the SqlMapBuilder)
|
| void | setResultClass(Class resultClass)
Setter for the result class (what the results will be mapped into)
|
| void | setResultMappingList(List resultMappingList)
Setter for a list of the individual ResultMapping objects
|
| Object | setResultObjectValues(StatementScope statementScope, Object resultObject, Object[] values) |
| void | setXmlName(String xmlName)
Setter (used by the SqlMapBuilder) for the xml name of the results
|
Parameters: delegate - the SqlMapExecutorDelegate
Returns: - the DataExchange object
Returns: - the delegate
Returns: - the resource
Returns: - the count
Parameters: statementScope scope of the request rs ResultSet to read from
Returns: row read as an array of column values.
Throws: java.sql.SQLException
Returns: - the name
Parameters: dataExchange - the new DataExchange object
Parameters: id - the new ID
Parameters: mapping statementScope resultObject values
Parameters: resource - the resource name
Parameters: resultClass - the result class
Parameters: resultMappingList - the list
Parameters: xmlName - the name