Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit f8073c5

Browse files
committed
呼び出し処理を新方式に合わせ修正
1 parent 6747369 commit f8073c5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/main/kotlin/com/mapk/krowmapper/KRowMapper.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ class KRowMapper<T : Any> private constructor(
2222
.map { ParameterForMap.newInstance(it) }
2323

2424
override fun mapRow(rs: ResultSet, rowNum: Int): T {
25-
val argumentBucket = function.getArgumentBucket()
25+
val adaptor = function.getArgumentAdaptor()
2626

27-
parameters.forEach { param ->
28-
argumentBucket.putIfAbsent(param.param, param.getObject(rs))
29-
}
27+
parameters.forEach { adaptor.putIfAbsent(it.name, it.getObject(rs)) }
3028

31-
return function.call(argumentBucket)
29+
return function.call(adaptor)
3230
}
3331
}

0 commit comments

Comments
 (0)