Skip to content

Commit 0236ff7

Browse files
committed
Remove Deprecated Kotlin Exists DSL
1 parent c022349 commit 0236ff7

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/main/kotlin/org/mybatis/dynamic/sql/util/kotlin/elements/SqlElements.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import org.mybatis.dynamic.sql.AndOrCriteriaGroup
2020
import org.mybatis.dynamic.sql.BasicColumn
2121
import org.mybatis.dynamic.sql.BindableColumn
2222
import org.mybatis.dynamic.sql.Constant
23-
import org.mybatis.dynamic.sql.ExistsPredicate
2423
import org.mybatis.dynamic.sql.SortSpecification
2524
import org.mybatis.dynamic.sql.SqlBuilder
2625
import org.mybatis.dynamic.sql.SqlColumn
@@ -41,7 +40,6 @@ import org.mybatis.dynamic.sql.select.function.OperatorFunction
4140
import org.mybatis.dynamic.sql.select.function.Substring
4241
import org.mybatis.dynamic.sql.select.function.Subtract
4342
import org.mybatis.dynamic.sql.select.function.Upper
44-
import org.mybatis.dynamic.sql.select.join.EqualTo
4543
import org.mybatis.dynamic.sql.util.kotlin.GroupingCriteriaCollector
4644
import org.mybatis.dynamic.sql.util.kotlin.GroupingCriteriaReceiver
4745
import org.mybatis.dynamic.sql.util.kotlin.KotlinSubQueryBuilder
@@ -78,10 +76,6 @@ import org.mybatis.dynamic.sql.where.condition.IsNotLikeCaseInsensitive
7876
import org.mybatis.dynamic.sql.where.condition.IsNotNull
7977
import org.mybatis.dynamic.sql.where.condition.IsNull
8078

81-
// join support
82-
@Deprecated("Please use the infix function in the JoinCollector")
83-
fun equalTo(column: BasicColumn): EqualTo = SqlBuilder.equalTo(column)
84-
8579
// support for criteria without initial conditions
8680
fun and(receiver: GroupingCriteriaReceiver): AndOrCriteriaGroup =
8781
with(GroupingCriteriaCollector().apply(receiver)) {
@@ -172,16 +166,6 @@ fun <T> isNull(): IsNull<T> = SqlBuilder.isNull()
172166

173167
fun <T> isNotNull(): IsNotNull<T> = SqlBuilder.isNotNull()
174168

175-
@Deprecated("Deprecated in favor of the new where clause DSL. " +
176-
"Rewrite to use the exists function inside a lambda.")
177-
fun exists(subQuery: KotlinSubQueryBuilder.() -> Unit): ExistsPredicate =
178-
SqlBuilder.exists(KotlinSubQueryBuilder().apply(subQuery))
179-
180-
@Deprecated("Deprecated in favor of the new where clause DSL. " +
181-
"Rewrite to use the exists function inside a \"not\" expression.")
182-
fun notExists(subQuery: KotlinSubQueryBuilder.() -> Unit): ExistsPredicate =
183-
SqlBuilder.notExists(KotlinSubQueryBuilder().apply(subQuery))
184-
185169
fun <T> isEqualTo(value: T & Any): IsEqualTo<T> = SqlBuilder.isEqualTo(value)
186170

187171
fun <T> isEqualTo(subQuery: KotlinSubQueryBuilder.() -> Unit): IsEqualToWithSubselect<T> =

src/main/kotlin/org/mybatis/dynamic/sql/util/kotlin/model/ModelBuilderFunctions.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,6 @@ fun insertInto(table: SqlTable, completer: GeneralInsertCompleter): GeneralInser
7474
fun <T : Any> insertMultiple(rows: Collection<T>, completer: KotlinMultiRowInsertCompleter<T>): MultiRowInsertModel<T> =
7575
KotlinMultiRowInsertBuilder(rows).apply(completer).build()
7676

77-
@Deprecated("Please use the new form - move the table into the lambda with into(table)")
78-
fun insertSelect(table: SqlTable, completer: InsertSelectCompleter): InsertSelectModel =
79-
with(KotlinInsertSelectSubQueryBuilder()) {
80-
into(table)
81-
apply(completer)
82-
build()
83-
}
84-
8577
fun insertSelect(completer: InsertSelectCompleter): InsertSelectModel =
8678
KotlinInsertSelectSubQueryBuilder().apply(completer).build()
8779

0 commit comments

Comments
 (0)