Skip to content

Commit 11bf862

Browse files
committed
Added backward compatibility signatures
1 parent aa9533f commit 11bf862

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

src/main/java/org/apache/ibatis/builder/MapperBuilderAssistant.java

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,4 +488,50 @@ private Class<?> resolveParameterJavaType(Class<?> resultType, String property,
488488
return javaType;
489489
}
490490

491+
/** Backward compatibility signature */
492+
public ResultMapping buildResultMapping(
493+
Class<?> resultType,
494+
String property,
495+
String column,
496+
Class<?> javaType,
497+
JdbcType jdbcType,
498+
String nestedSelect,
499+
String nestedResultMap,
500+
String notNullColumn,
501+
String columnPrefix,
502+
Class<? extends TypeHandler<?>> typeHandler,
503+
List<ResultFlag> flags) {
504+
return buildResultMapping(
505+
resultType, property, column, javaType, jdbcType, nestedSelect,
506+
nestedResultMap, notNullColumn, columnPrefix, typeHandler, flags, null, null);
507+
}
508+
509+
/** Backward compatibility signature */
510+
public MappedStatement addMappedStatement(
511+
String id,
512+
SqlSource sqlSource,
513+
StatementType statementType,
514+
SqlCommandType sqlCommandType,
515+
Integer fetchSize,
516+
Integer timeout,
517+
String parameterMap,
518+
Class<?> parameterType,
519+
String resultMap,
520+
Class<?> resultType,
521+
ResultSetType resultSetType,
522+
boolean flushCache,
523+
boolean useCache,
524+
boolean resultOrdered,
525+
KeyGenerator keyGenerator,
526+
String keyProperty,
527+
String keyColumn,
528+
String databaseId,
529+
LanguageDriver lang) {
530+
return addMappedStatement(
531+
id, sqlSource, statementType, sqlCommandType, fetchSize, timeout,
532+
parameterMap, parameterType, resultMap, resultType, resultSetType,
533+
flushCache, useCache, resultOrdered, keyGenerator, keyProperty,
534+
keyColumn, databaseId, lang, null);
535+
}
536+
491537
}

0 commit comments

Comments
 (0)