Package org.mybatis.dynamic.sql.dsl
Class AbstractDeleteDSL<M,D extends AbstractDeleteDSL<M,D>>
java.lang.Object
org.mybatis.dynamic.sql.dsl.AbstractDeleteDSL<M,D>
- All Implemented Interfaces:
OrderByOperations<D>,WhereOperations<AbstractDeleteDSL<M,,D>.DeleteWhereBuilder> Buildable<M>,ConfigurableStatement<D>
public abstract class AbstractDeleteDSL<M,D extends AbstractDeleteDSL<M,D>>
extends Object
implements WhereOperations<AbstractDeleteDSL<M,D>.DeleteWhereBuilder>, ConfigurableStatement<D>, OrderByOperations<D>, Buildable<M>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDeleteDSL(SqlTable table, @Nullable String tableAlias) -
Method Summary
Modifier and TypeMethodDescriptionapplyWhere(WhereApplier whereApplier) protected DeleteModelWARNING!configureStatement(Consumer<StatementConfiguration> consumer) protected abstract DgetThis()limit(long limit) limitWhenPresent(@Nullable Long limit) orderBy(Collection<? extends SortSpecification> columns) where()where(SqlCriterion initialCriterion) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mybatis.dynamic.sql.dsl.OrderByOperations
orderBy
-
Constructor Details
-
AbstractDeleteDSL
-
-
Method Details
-
where
- Specified by:
wherein interfaceWhereOperations<M>
-
where
- Specified by:
wherein interfaceWhereOperations<M>
-
applyWhere
- Specified by:
applyWherein interfaceWhereOperations<M>
-
limit
-
limitWhenPresent
-
orderBy
- Specified by:
orderByin interfaceOrderByOperations<M>
-
getThis
-
buildDeleteModel
WARNING! Calling this method could result in a delete statement that deletes all rows in a table.- Returns:
- the model class
-
configureStatement
- Specified by:
configureStatementin interfaceConfigurableStatement<M>
-