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

java.lang.Object
  extended by com.ibatis.sqlmap.engine.mapping.result.ResultMap
      extended by com.ibatis.sqlmap.engine.mapping.result.AutoResultMap

public class AutoResultMap
extends ResultMap

An automatic result map for simple stuff


Field Summary
 
Fields inherited from class com.ibatis.sqlmap.engine.mapping.result.ResultMap
allowRemapping, delegate, NO_VALUE
 
Constructor Summary
AutoResultMap(SqlMapExecutorDelegate delegate, boolean allowRemapping)
          Constructor to pass in the SqlMapExecutorDelegate
 
Method Summary
 Object[] getResults(StatementScope statementScope, ResultSet rs)
          Read a row from a resultset and map results to an array.
 Object setResultObjectValues(StatementScope statementScope, Object resultObject, Object[] values)
           
 
Methods inherited from class com.ibatis.sqlmap.engine.mapping.result.ResultMap
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, 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 Object[] getResults(StatementScope statementScope,
                           ResultSet rs)
                    throws SQLException
Description copied from class: ResultMap
Read a row from a resultset and map results to an array.

Overrides:
getResults in class ResultMap
Parameters:
statementScope - scope of the request
rs - ResultSet to read from
Returns:
row read as an array of column values.
Throws:
SQLException

setResultObjectValues

public Object setResultObjectValues(StatementScope statementScope,
                                    Object resultObject,
                                    Object[] values)
Overrides:
setResultObjectValues in class ResultMap


Copyright © 2010. All Rights Reserved.