Class AutoResultMap
java.lang.Object
com.ibatis.sqlmap.engine.mapping.result.ResultMap
com.ibatis.sqlmap.engine.mapping.result.AutoResultMap
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
ConstructorsConstructorDescriptionAutoResultMap
(SqlMapExecutorDelegate delegate, boolean allowRemapping) Constructor to pass in the SqlMapExecutorDelegate. -
Method Summary
Modifier and TypeMethodDescriptionObject[]
getResults
(StatementScope statementScope, ResultSet rs) Read a row from a resultset and map results to an array.setResultObjectValues
(StatementScope statementScope, Object resultObject, Object[] values) Sets the result 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
-
Constructor Details
-
AutoResultMap
Constructor to pass in the SqlMapExecutorDelegate.- Parameters:
delegate
- - the delegateallowRemapping
- the allow remapping
-
-
Method Details
-
getResults
Description copied from class:ResultMap
Read a row from a resultset and map results to an array.- Overrides:
getResults
in classResultMap
- Parameters:
statementScope
- scope of the requestrs
- ResultSet to read from- Returns:
- row read as an array of column values.
- Throws:
SQLException
- the SQL exception
-
setResultObjectValues
public Object setResultObjectValues(StatementScope statementScope, Object resultObject, Object[] values) Description copied from class:ResultMap
Sets the result object values.- Overrides:
setResultObjectValues
in classResultMap
- Parameters:
statementScope
- the statement scoperesultObject
- the result objectvalues
- the values- Returns:
- the object
-