Package org.mybatis.dynamic.sql.delete
Class DeleteDSL<R>
- java.lang.Object
-
- org.mybatis.dynamic.sql.delete.DeleteDSL<R>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDeleteDSL.DeleteWhereBuilder
-
Method Summary
Modifier and Type Method Description DeleteDSL.DeleteWhereBuilderapplyWhere(WhereApplier whereApplier)Rbuild()WARNING! Calling this method could result in an delete statement that deletes all rows in a table.static <R> DeleteDSL<R>deleteFrom(java.util.function.Function<DeleteModel,R> adapterFunction, SqlTable table)static DeleteDSL<DeleteModel>deleteFrom(SqlTable table)static <T> DeleteDSL<MyBatis3DeleteModelAdapter<T>>deleteFromWithMapper(java.util.function.Function<DeleteStatementProvider,T> mapperMethod, SqlTable table)Deprecated.DeleteDSL.DeleteWhereBuilderwhere()<T> DeleteDSL.DeleteWhereBuilderwhere(BindableColumn<T> column, VisitableCondition<T> condition, SqlCriterion<?>... subCriteria)
-
-
-
Method Detail
-
where
public DeleteDSL.DeleteWhereBuilder where()
-
where
public <T> DeleteDSL.DeleteWhereBuilder where(BindableColumn<T> column, VisitableCondition<T> condition, SqlCriterion<?>... subCriteria)
-
applyWhere
public DeleteDSL.DeleteWhereBuilder applyWhere(WhereApplier whereApplier)
-
build
public R build()
WARNING! Calling this method could result in an delete statement that deletes all rows in a table.
-
deleteFrom
public static <R> DeleteDSL<R> deleteFrom(java.util.function.Function<DeleteModel,R> adapterFunction, SqlTable table)
-
deleteFrom
public static DeleteDSL<DeleteModel> deleteFrom(SqlTable table)
-
deleteFromWithMapper
@Deprecated public static <T> DeleteDSL<MyBatis3DeleteModelAdapter<T>> deleteFromWithMapper(java.util.function.Function<DeleteStatementProvider,T> mapperMethod, SqlTable table)
Deprecated.in favor ofMyBatis3Utils.deleteFrom(ToIntFunction, SqlTable, DeleteDSLCompleter). This method will be removed without direct replacement in a future versionDelete record(s) by executing a MyBatis3 mapper method.- Type Parameters:
T- return value from a delete method - typically Integer- Parameters:
mapperMethod- MyBatis3 mapper method that performs the deletetable- table to delete from- Returns:
- number of records deleted - typically as Integer
-
-