public class FlexDefaultResultSetHandler extends org.apache.ibatis.executor.resultset.DefaultResultSetHandler
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
FlexDefaultResultSetHandler.PendingRelation |
private static class |
FlexDefaultResultSetHandler.UnMappedColumnAutoMapping |
| 限定符和类型 | 字段和说明 |
|---|---|
private Map<String,Object> |
ancestorObjects |
private Map<String,List<FlexDefaultResultSetHandler.UnMappedColumnAutoMapping>> |
autoMappingsCache |
private org.apache.ibatis.mapping.BoundSql |
boundSql |
private org.apache.ibatis.session.Configuration |
configuration |
private Map<String,List<String>> |
constructorAutoMappingColumns |
private static Object |
DEFERRED |
private org.apache.ibatis.executor.Executor |
executor |
private org.apache.ibatis.mapping.MappedStatement |
mappedStatement |
private Map<org.apache.ibatis.cache.CacheKey,Object> |
nestedResultObjects |
private Map<String,org.apache.ibatis.mapping.ResultMapping> |
nextResultMaps |
private org.apache.ibatis.reflection.factory.ObjectFactory |
objectFactory |
private org.apache.ibatis.executor.parameter.ParameterHandler |
parameterHandler |
private Map<org.apache.ibatis.cache.CacheKey,List<FlexDefaultResultSetHandler.PendingRelation>> |
pendingRelations |
private Object |
previousRowValue |
private org.apache.ibatis.reflection.ReflectorFactory |
reflectorFactory |
private org.apache.ibatis.session.ResultHandler<?> |
resultHandler |
private org.apache.ibatis.session.RowBounds |
rowBounds |
private org.apache.ibatis.type.TypeHandlerRegistry |
typeHandlerRegistry |
private boolean |
useConstructorMappings |
| 构造器和说明 |
|---|
FlexDefaultResultSetHandler(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.executor.parameter.ParameterHandler parameterHandler,
org.apache.ibatis.session.ResultHandler<?> resultHandler,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.session.RowBounds rowBounds) |
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
addPendingChildRelation(ResultSet rs,
org.apache.ibatis.reflection.MetaObject metaResultObject,
org.apache.ibatis.mapping.ResultMapping parentMapping) |
private boolean |
anyNotNullColumnHasValue(org.apache.ibatis.mapping.ResultMapping resultMapping,
String columnPrefix,
org.apache.ibatis.executor.resultset.ResultSetWrapper rsw) |
private boolean |
applyArgNameBasedConstructorAutoMapping(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
String columnPrefix,
List<Class<?>> constructorArgTypes,
List<Object> constructorArgs,
Constructor<?> constructor,
boolean foundValues) |
private boolean |
applyAutomaticMappings(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.reflection.MetaObject metaObject,
String columnPrefix) |
private boolean |
applyColumnOrderBasedConstructorAutomapping(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
List<Class<?>> constructorArgTypes,
List<Object> constructorArgs,
Constructor<?> constructor,
boolean foundValues) |
private Object |
applyConstructorAutomapping(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
String columnPrefix,
Class<?> resultType,
List<Class<?>> constructorArgTypes,
List<Object> constructorArgs,
Constructor<?> constructor) |
private boolean |
applyNestedResultMappings(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.reflection.MetaObject metaObject,
String parentPrefix,
org.apache.ibatis.cache.CacheKey parentRowKey,
boolean newObject) |
private boolean |
applyPropertyMappings(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.reflection.MetaObject metaObject,
org.apache.ibatis.executor.loader.ResultLoaderMap lazyLoader,
String columnPrefix) |
private static String |
buildMethodString(Executable method) |
private void |
callResultHandler(org.apache.ibatis.session.ResultHandler<?> resultHandler,
org.apache.ibatis.executor.result.DefaultResultContext<Object> resultContext,
Object rowValue) |
protected void |
checkResultHandler() |
private void |
cleanUpAfterHandlingResultSet() |
private void |
closeResultSet(ResultSet rs) |
private List<Object> |
collapseSingleResultList(List<Object> multipleResults) |
private boolean |
columnMatchesParam(String columnName,
String paramName,
String columnPrefix) |
private org.apache.ibatis.cache.CacheKey |
combineKeys(org.apache.ibatis.cache.CacheKey rowKey,
org.apache.ibatis.cache.CacheKey parentRowKey) |
private List<FlexDefaultResultSetHandler.UnMappedColumnAutoMapping> |
createAutomaticMappings(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.reflection.MetaObject metaObject,
String columnPrefix) |
private Object |
createByConstructorSignature(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
String columnPrefix,
Class<?> resultType,
List<Class<?>> constructorArgTypes,
List<Object> constructorArgs) |
private org.apache.ibatis.cache.CacheKey |
createKeyForMultipleResults(ResultSet rs,
org.apache.ibatis.mapping.ResultMapping resultMapping,
String names,
String columns) |
(专用程序包) Object |
createParameterizedResultObject(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
Class<?> resultType,
List<org.apache.ibatis.mapping.ResultMapping> constructorMappings,
List<Class<?>> constructorArgTypes,
List<Object> constructorArgs,
String columnPrefix) |
protected Object |
createPrimitiveResultObject(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
String columnPrefix) |
private Object |
createResultObject(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
List<Class<?>> constructorArgTypes,
List<Object> constructorArgs,
String columnPrefix) |
private Object |
createResultObject(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.executor.loader.ResultLoaderMap lazyLoader,
String columnPrefix) |
private org.apache.ibatis.cache.CacheKey |
createRowKey(org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
String columnPrefix) |
private void |
createRowKeyForMap(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.cache.CacheKey cacheKey) |
private void |
createRowKeyForMappedProperties(org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.cache.CacheKey cacheKey,
List<org.apache.ibatis.mapping.ResultMapping> resultMappings,
String columnPrefix) |
private void |
createRowKeyForUnmappedProperties(org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.cache.CacheKey cacheKey,
String columnPrefix) |
private void |
ensureNoRowBounds() |
private Optional<Constructor<?>> |
findConstructorForAutomapping(Class<?> resultType,
org.apache.ibatis.executor.resultset.ResultSetWrapper rsw) |
private boolean |
findUsableConstructorByArgTypes(Constructor<?> constructor,
List<org.apache.ibatis.type.JdbcType> jdbcTypes) |
private String |
getColumnPrefix(String parentPrefix,
org.apache.ibatis.mapping.ResultMapping resultMapping) |
private Object |
getDiscriminatorValue(ResultSet rs,
org.apache.ibatis.mapping.Discriminator discriminator,
String columnPrefix) |
private org.apache.ibatis.executor.resultset.ResultSetWrapper |
getFirstResultSet(Statement stmt) |
private Object |
getNestedQueryConstructorValue(ResultSet rs,
org.apache.ibatis.mapping.ResultMapping constructorMapping,
String columnPrefix) |
private Object |
getNestedQueryMappingValue(ResultSet rs,
org.apache.ibatis.reflection.MetaObject metaResultObject,
org.apache.ibatis.mapping.ResultMapping propertyMapping,
org.apache.ibatis.executor.loader.ResultLoaderMap lazyLoader,
String columnPrefix) |
private org.apache.ibatis.mapping.ResultMap |
getNestedResultMap(ResultSet rs,
String nestedResultMapId,
String columnPrefix) |
private org.apache.ibatis.executor.resultset.ResultSetWrapper |
getNextResultSet(Statement stmt) |
private Object |
getPropertyMappingValue(ResultSet rs,
org.apache.ibatis.reflection.MetaObject metaResultObject,
org.apache.ibatis.mapping.ResultMapping propertyMapping,
org.apache.ibatis.executor.loader.ResultLoaderMap lazyLoader,
String columnPrefix) |
private List<org.apache.ibatis.mapping.ResultMapping> |
getResultMappingsForRowKey(org.apache.ibatis.mapping.ResultMap resultMap) |
private Object |
getRowValue(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.cache.CacheKey combinedKey,
String columnPrefix,
Object partialObject) |
private Object |
getRowValue(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
String columnPrefix) |
<E> org.apache.ibatis.cursor.Cursor<E> |
handleCursorResultSets(Statement stmt) |
void |
handleOutputParameters(CallableStatement cs) |
private void |
handleRefCursorOutputParameter(ResultSet rs,
org.apache.ibatis.mapping.ParameterMapping parameterMapping,
org.apache.ibatis.reflection.MetaObject metaParam) |
private void |
handleResultSet(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
List<Object> multipleResults,
org.apache.ibatis.mapping.ResultMapping parentMapping) |
List<Object> |
handleResultSets(Statement stmt) |
void |
handleRowValues(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.session.ResultHandler<?> resultHandler,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.mapping.ResultMapping parentMapping) |
private void |
handleRowValuesForNestedResultMap(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.session.ResultHandler<?> resultHandler,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.mapping.ResultMapping parentMapping) |
private void |
handleRowValuesForSimpleResultMap(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
org.apache.ibatis.mapping.ResultMap resultMap,
org.apache.ibatis.session.ResultHandler<?> resultHandler,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.mapping.ResultMapping parentMapping) |
private boolean |
hasTypeHandlerForResultObject(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
Class<?> resultType) |
private Object |
instantiateCollectionPropertyIfAppropriate(org.apache.ibatis.mapping.ResultMapping resultMapping,
org.apache.ibatis.reflection.MetaObject metaObject) |
private Object |
instantiateParameterObject(Class<?> parameterType) |
private void |
linkObjects(org.apache.ibatis.reflection.MetaObject metaObject,
org.apache.ibatis.mapping.ResultMapping resultMapping,
Object rowValue) |
private void |
linkToParents(ResultSet rs,
org.apache.ibatis.mapping.ResultMapping parentMapping,
Object rowValue) |
private Object |
prepareCompositeKeyParameter(ResultSet rs,
org.apache.ibatis.mapping.ResultMapping resultMapping,
Class<?> parameterType,
String columnPrefix) |
private Object |
prepareParameterForNestedQuery(ResultSet rs,
org.apache.ibatis.mapping.ResultMapping resultMapping,
Class<?> parameterType,
String columnPrefix) |
private Object |
prepareSimpleKeyParameter(ResultSet rs,
org.apache.ibatis.mapping.ResultMapping resultMapping,
Class<?> parameterType,
String columnPrefix) |
protected String |
prependPrefix(String columnName,
String prefix) |
private void |
putAncestor(Object resultObject,
String resultMapId) |
org.apache.ibatis.mapping.ResultMap |
resolveDiscriminatedResultMap(ResultSet rs,
org.apache.ibatis.mapping.ResultMap resultMap,
String columnPrefix) |
private boolean |
shouldApplyAutomaticMappings(org.apache.ibatis.mapping.ResultMap resultMap,
boolean isNested) |
private boolean |
shouldProcessMoreRows(org.apache.ibatis.session.ResultContext<?> context,
org.apache.ibatis.session.RowBounds rowBounds) |
private void |
skipRows(ResultSet rs,
org.apache.ibatis.session.RowBounds rowBounds) |
private void |
storeObject(org.apache.ibatis.session.ResultHandler<?> resultHandler,
org.apache.ibatis.executor.result.DefaultResultContext<Object> resultContext,
Object rowValue,
org.apache.ibatis.mapping.ResultMapping parentMapping,
ResultSet rs) |
private void |
validateResultMapsCount(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw,
int resultMapCount) |
private final org.apache.ibatis.executor.Executor executor
private final org.apache.ibatis.session.Configuration configuration
private final org.apache.ibatis.mapping.MappedStatement mappedStatement
private final org.apache.ibatis.session.RowBounds rowBounds
private final org.apache.ibatis.executor.parameter.ParameterHandler parameterHandler
private final org.apache.ibatis.session.ResultHandler<?> resultHandler
private final org.apache.ibatis.mapping.BoundSql boundSql
private final org.apache.ibatis.type.TypeHandlerRegistry typeHandlerRegistry
private final org.apache.ibatis.reflection.factory.ObjectFactory objectFactory
private final org.apache.ibatis.reflection.ReflectorFactory reflectorFactory
private final Map<org.apache.ibatis.cache.CacheKey,Object> nestedResultObjects
private final Map<String,Object> ancestorObjects
private Object previousRowValue
private final Map<String,org.apache.ibatis.mapping.ResultMapping> nextResultMaps
private final Map<org.apache.ibatis.cache.CacheKey,List<FlexDefaultResultSetHandler.PendingRelation>> pendingRelations
private final Map<String,List<FlexDefaultResultSetHandler.UnMappedColumnAutoMapping>> autoMappingsCache
private final Map<String,List<String>> constructorAutoMappingColumns
private boolean useConstructorMappings
public FlexDefaultResultSetHandler(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement mappedStatement, org.apache.ibatis.executor.parameter.ParameterHandler parameterHandler, org.apache.ibatis.session.ResultHandler<?> resultHandler, org.apache.ibatis.mapping.BoundSql boundSql, org.apache.ibatis.session.RowBounds rowBounds)
public void handleOutputParameters(CallableStatement cs) throws SQLException
handleOutputParameters 在接口中 org.apache.ibatis.executor.resultset.ResultSetHandlerhandleOutputParameters 在类中 org.apache.ibatis.executor.resultset.DefaultResultSetHandlerSQLExceptionprivate void handleRefCursorOutputParameter(ResultSet rs, org.apache.ibatis.mapping.ParameterMapping parameterMapping, org.apache.ibatis.reflection.MetaObject metaParam) throws SQLException
SQLExceptionpublic List<Object> handleResultSets(Statement stmt) throws SQLException
handleResultSets 在接口中 org.apache.ibatis.executor.resultset.ResultSetHandlerhandleResultSets 在类中 org.apache.ibatis.executor.resultset.DefaultResultSetHandlerSQLExceptionpublic <E> org.apache.ibatis.cursor.Cursor<E> handleCursorResultSets(Statement stmt) throws SQLException
handleCursorResultSets 在接口中 org.apache.ibatis.executor.resultset.ResultSetHandlerhandleCursorResultSets 在类中 org.apache.ibatis.executor.resultset.DefaultResultSetHandlerSQLExceptionprivate org.apache.ibatis.executor.resultset.ResultSetWrapper getFirstResultSet(Statement stmt) throws SQLException
SQLExceptionprivate org.apache.ibatis.executor.resultset.ResultSetWrapper getNextResultSet(Statement stmt)
private void closeResultSet(ResultSet rs)
private void cleanUpAfterHandlingResultSet()
private void validateResultMapsCount(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, int resultMapCount)
private void handleResultSet(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, List<Object> multipleResults, org.apache.ibatis.mapping.ResultMapping parentMapping) throws SQLException
SQLExceptionprivate List<Object> collapseSingleResultList(List<Object> multipleResults)
public void handleRowValues(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.session.ResultHandler<?> resultHandler, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.mapping.ResultMapping parentMapping) throws SQLException
handleRowValues 在类中 org.apache.ibatis.executor.resultset.DefaultResultSetHandlerSQLExceptionprivate void ensureNoRowBounds()
protected void checkResultHandler()
checkResultHandler 在类中 org.apache.ibatis.executor.resultset.DefaultResultSetHandlerprivate void handleRowValuesForSimpleResultMap(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.session.ResultHandler<?> resultHandler, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.mapping.ResultMapping parentMapping) throws SQLException
SQLExceptionprivate void storeObject(org.apache.ibatis.session.ResultHandler<?> resultHandler, org.apache.ibatis.executor.result.DefaultResultContext<Object> resultContext, Object rowValue, org.apache.ibatis.mapping.ResultMapping parentMapping, ResultSet rs) throws SQLException
SQLExceptionprivate void callResultHandler(org.apache.ibatis.session.ResultHandler<?> resultHandler, org.apache.ibatis.executor.result.DefaultResultContext<Object> resultContext, Object rowValue)
private boolean shouldProcessMoreRows(org.apache.ibatis.session.ResultContext<?> context, org.apache.ibatis.session.RowBounds rowBounds)
private void skipRows(ResultSet rs, org.apache.ibatis.session.RowBounds rowBounds) throws SQLException
SQLExceptionprivate Object getRowValue(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, String columnPrefix) throws SQLException
SQLExceptionprivate Object getRowValue(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.cache.CacheKey combinedKey, String columnPrefix, Object partialObject) throws SQLException
SQLExceptionprivate void putAncestor(Object resultObject, String resultMapId)
private boolean shouldApplyAutomaticMappings(org.apache.ibatis.mapping.ResultMap resultMap, boolean isNested)
private boolean applyPropertyMappings(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.reflection.MetaObject metaObject, org.apache.ibatis.executor.loader.ResultLoaderMap lazyLoader, String columnPrefix) throws SQLException
SQLExceptionprivate Object getPropertyMappingValue(ResultSet rs, org.apache.ibatis.reflection.MetaObject metaResultObject, org.apache.ibatis.mapping.ResultMapping propertyMapping, org.apache.ibatis.executor.loader.ResultLoaderMap lazyLoader, String columnPrefix) throws SQLException
SQLExceptionprivate List<FlexDefaultResultSetHandler.UnMappedColumnAutoMapping> createAutomaticMappings(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.reflection.MetaObject metaObject, String columnPrefix) throws SQLException
SQLExceptionprivate boolean applyAutomaticMappings(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.reflection.MetaObject metaObject, String columnPrefix) throws SQLException
SQLExceptionprivate void linkToParents(ResultSet rs, org.apache.ibatis.mapping.ResultMapping parentMapping, Object rowValue) throws SQLException
SQLExceptionprivate void addPendingChildRelation(ResultSet rs, org.apache.ibatis.reflection.MetaObject metaResultObject, org.apache.ibatis.mapping.ResultMapping parentMapping) throws SQLException
SQLExceptionprivate org.apache.ibatis.cache.CacheKey createKeyForMultipleResults(ResultSet rs, org.apache.ibatis.mapping.ResultMapping resultMapping, String names, String columns) throws SQLException
SQLExceptionprivate Object createResultObject(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.executor.loader.ResultLoaderMap lazyLoader, String columnPrefix) throws SQLException
SQLExceptionprivate Object createResultObject(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, List<Class<?>> constructorArgTypes, List<Object> constructorArgs, String columnPrefix) throws SQLException
SQLExceptionObject createParameterizedResultObject(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, Class<?> resultType, List<org.apache.ibatis.mapping.ResultMapping> constructorMappings, List<Class<?>> constructorArgTypes, List<Object> constructorArgs, String columnPrefix)
private Object createByConstructorSignature(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, String columnPrefix, Class<?> resultType, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) throws SQLException
SQLExceptionprivate Optional<Constructor<?>> findConstructorForAutomapping(Class<?> resultType, org.apache.ibatis.executor.resultset.ResultSetWrapper rsw)
private boolean findUsableConstructorByArgTypes(Constructor<?> constructor, List<org.apache.ibatis.type.JdbcType> jdbcTypes)
private Object applyConstructorAutomapping(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, String columnPrefix, Class<?> resultType, List<Class<?>> constructorArgTypes, List<Object> constructorArgs, Constructor<?> constructor) throws SQLException
SQLExceptionprivate boolean applyColumnOrderBasedConstructorAutomapping(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, List<Class<?>> constructorArgTypes, List<Object> constructorArgs, Constructor<?> constructor, boolean foundValues) throws SQLException
SQLExceptionprivate static String buildMethodString(Executable method)
private boolean applyArgNameBasedConstructorAutoMapping(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, String columnPrefix, List<Class<?>> constructorArgTypes, List<Object> constructorArgs, Constructor<?> constructor, boolean foundValues) throws SQLException
SQLExceptionprivate boolean columnMatchesParam(String columnName, String paramName, String columnPrefix)
protected Object createPrimitiveResultObject(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, String columnPrefix) throws SQLException
SQLExceptionprivate Object getNestedQueryConstructorValue(ResultSet rs, org.apache.ibatis.mapping.ResultMapping constructorMapping, String columnPrefix) throws SQLException
SQLExceptionprivate Object getNestedQueryMappingValue(ResultSet rs, org.apache.ibatis.reflection.MetaObject metaResultObject, org.apache.ibatis.mapping.ResultMapping propertyMapping, org.apache.ibatis.executor.loader.ResultLoaderMap lazyLoader, String columnPrefix) throws SQLException
SQLExceptionprivate Object prepareParameterForNestedQuery(ResultSet rs, org.apache.ibatis.mapping.ResultMapping resultMapping, Class<?> parameterType, String columnPrefix) throws SQLException
SQLExceptionprivate Object prepareSimpleKeyParameter(ResultSet rs, org.apache.ibatis.mapping.ResultMapping resultMapping, Class<?> parameterType, String columnPrefix) throws SQLException
SQLExceptionprivate Object prepareCompositeKeyParameter(ResultSet rs, org.apache.ibatis.mapping.ResultMapping resultMapping, Class<?> parameterType, String columnPrefix) throws SQLException
SQLExceptionprivate Object instantiateParameterObject(Class<?> parameterType)
public org.apache.ibatis.mapping.ResultMap resolveDiscriminatedResultMap(ResultSet rs, org.apache.ibatis.mapping.ResultMap resultMap, String columnPrefix) throws SQLException
resolveDiscriminatedResultMap 在类中 org.apache.ibatis.executor.resultset.DefaultResultSetHandlerSQLExceptionprivate Object getDiscriminatorValue(ResultSet rs, org.apache.ibatis.mapping.Discriminator discriminator, String columnPrefix) throws SQLException
SQLExceptionprotected String prependPrefix(String columnName, String prefix)
private void handleRowValuesForNestedResultMap(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.session.ResultHandler<?> resultHandler, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.mapping.ResultMapping parentMapping) throws SQLException
SQLExceptionprivate boolean applyNestedResultMappings(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.reflection.MetaObject metaObject, String parentPrefix, org.apache.ibatis.cache.CacheKey parentRowKey, boolean newObject)
private String getColumnPrefix(String parentPrefix, org.apache.ibatis.mapping.ResultMapping resultMapping)
private boolean anyNotNullColumnHasValue(org.apache.ibatis.mapping.ResultMapping resultMapping, String columnPrefix, org.apache.ibatis.executor.resultset.ResultSetWrapper rsw) throws SQLException
SQLExceptionprivate org.apache.ibatis.mapping.ResultMap getNestedResultMap(ResultSet rs, String nestedResultMapId, String columnPrefix) throws SQLException
SQLExceptionprivate org.apache.ibatis.cache.CacheKey createRowKey(org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, String columnPrefix) throws SQLException
SQLExceptionprivate org.apache.ibatis.cache.CacheKey combineKeys(org.apache.ibatis.cache.CacheKey rowKey, org.apache.ibatis.cache.CacheKey parentRowKey)
private List<org.apache.ibatis.mapping.ResultMapping> getResultMappingsForRowKey(org.apache.ibatis.mapping.ResultMap resultMap)
private void createRowKeyForMappedProperties(org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.cache.CacheKey cacheKey, List<org.apache.ibatis.mapping.ResultMapping> resultMappings, String columnPrefix) throws SQLException
SQLExceptionprivate void createRowKeyForUnmappedProperties(org.apache.ibatis.mapping.ResultMap resultMap, org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.cache.CacheKey cacheKey, String columnPrefix) throws SQLException
SQLExceptionprivate void createRowKeyForMap(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, org.apache.ibatis.cache.CacheKey cacheKey) throws SQLException
SQLExceptionprivate void linkObjects(org.apache.ibatis.reflection.MetaObject metaObject, org.apache.ibatis.mapping.ResultMapping resultMapping, Object rowValue)
private Object instantiateCollectionPropertyIfAppropriate(org.apache.ibatis.mapping.ResultMapping resultMapping, org.apache.ibatis.reflection.MetaObject metaObject)
private boolean hasTypeHandlerForResultObject(org.apache.ibatis.executor.resultset.ResultSetWrapper rsw, Class<?> resultType)
Copyright © 2025. All rights reserved.