Skip to content

Commit 1071247

Browse files
committed
Support upsert on KEntityqlMultiInsertStatement
1 parent 3b5e86f commit 1071247

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doma-kotlin/src/main/kotlin/org/seasar/doma/kotlin/jdbc/criteria/statement/KEntityqlMultiInsertStatement.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ class KEntityqlMultiInsertStatement<ENTITY>(
88
private val statement: EntityqlMultiInsertStatement<ENTITY>,
99
) : KStatement<MultiResult<ENTITY>> {
1010

11+
fun onDuplicateKeyUpdate(): KStatement<MultiResult<ENTITY>> {
12+
return KEntityqlMultiUpsertStatement(statement.onDuplicateKeyUpdate())
13+
}
14+
15+
fun onDuplicateKeyIgnore(): KStatement<MultiResult<ENTITY>> {
16+
return KEntityqlMultiUpsertStatement(statement.onDuplicateKeyIgnore())
17+
}
18+
1119
override fun execute(): MultiResult<ENTITY> {
1220
return statement.execute()
1321
}

0 commit comments

Comments
 (0)