com.ibatis.sqlmap.engine.mapping.result
Class AutoResultMap

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.mapping.result.BasicResultMap
      extended bycom.ibatis.sqlmap.engine.mapping.result.AutoResultMap
All Implemented Interfaces:
ResultMap

public class AutoResultMap
extends BasicResultMap

An automatic result map for simple stuff


Field Summary
 
Fields inherited from class com.ibatis.sqlmap.engine.mapping.result.BasicResultMap
allowRemapping
 
Fields inherited from interface com.ibatis.sqlmap.engine.mapping.result.ResultMap
NO_VALUE
 
Constructor Summary
AutoResultMap(SqlMapExecutorDelegate delegate, boolean allowRemapping)
          Constructor to pass in the SqlMapExecutorDelegate
 
Method Summary
 java.lang.Object[] getResults(RequestScope request, java.sql.ResultSet rs)
          Read a row from a resultset and map results to an array.
 
Methods inherited from class com.ibatis.sqlmap.engine.mapping.result.BasicResultMap
addGroupByProperty, addNestedResultMappings, doNullMapping, getDataExchange, getDelegate, getDiscriminator, getId, getNestedResultMappings, getNestedSelectMappingValue, getPrimitiveResultMappingValue, getResource, getResultClass, getResultCount, getResultMappings, getUniqueKey, getUniqueKey, getXmlName, groupByProps, hasGroupBy, resolveSubMap, setDataExchange, setDiscriminator, setId, setNestedResultMappingValue, setResource, setResultClass, setResultMappingList, setResultObjectValues, setXmlName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoResultMap

public AutoResultMap(SqlMapExecutorDelegate delegate,
                     boolean allowRemapping)
Constructor to pass in the SqlMapExecutorDelegate

Parameters:
delegate - - the delegate
Method Detail

getResults

public java.lang.Object[] getResults(RequestScope request,
                                     java.sql.ResultSet rs)
                              throws java.sql.SQLException
Description copied from class: BasicResultMap
Read a row from a resultset and map results to an array.

Specified by:
getResults in interface ResultMap
Overrides:
getResults in class BasicResultMap
Parameters:
request - scope of the request
rs - ResultSet to read from
Returns:
row read as an array of column values.
Throws:
java.sql.SQLException