Package com.querydsl.sql.dml
Class AbstractSQLDeleteClause<C extends AbstractSQLDeleteClause<C>>
java.lang.Object
com.querydsl.sql.dml.AbstractSQLClause<C>
com.querydsl.sql.dml.AbstractSQLDeleteClause<C>
- Type Parameters:
C- The type extending this class.
- All Implemented Interfaces:
DeleteClause<C>,DMLClause<C>,FilteredClause<C>
- Direct Known Subclasses:
SQLDeleteClause
public abstract class AbstractSQLDeleteClause<C extends AbstractSQLDeleteClause<C>>
extends AbstractSQLClause<C>
implements DeleteClause<C>
Provides a base class for dialect-specific DELETE clauses.
- Author:
- tiwe
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<QueryMetadata>protected final RelationalPath<?>protected static final Loggerprotected DefaultQueryMetadataprotected Stringprotected static final ValidatingVisitorFields inherited from class com.querydsl.sql.dml.AbstractSQLClause
configuration, context, listeners, useLiterals -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSQLDeleteClause(Connection connection, Configuration configuration, RelationalPath<?> entity) AbstractSQLDeleteClause(Supplier<Connection> connection, Configuration configuration, RelationalPath<?> entity) -
Method Summary
Modifier and TypeMethodDescriptionaddBatch()Add current state of bindings as a batch itemaddFlag(QueryFlag.Position position, Expression<?> flag) Add the given Expression at the given position as a query flagaddFlag(QueryFlag.Position position, String flag) Add the given String literal at the given position as a query flagvoidclear()Clear the internal state of the clauseprotected PreparedStatementprotected Collection<PreparedStatement>longexecute()intgetSQL()Get the SQL string and bindingslimit(@org.jetbrains.annotations.Range(from=0L, to=2147483647L) long limit) toString()Methods inherited from class com.querydsl.sql.dml.AbstractSQLClause
addListener, close, close, close, connection, createBindings, createSerializer, endContext, executeBatch, logQuery, onException, reset, setParameters, setUseLiterals, startContext
-
Field Details
-
logger
-
validatingVisitor
-
entity
-
batches
-
metadata
-
queryString
-
constants
-
-
Constructor Details
-
AbstractSQLDeleteClause
public AbstractSQLDeleteClause(Connection connection, Configuration configuration, RelationalPath<?> entity) -
AbstractSQLDeleteClause
public AbstractSQLDeleteClause(Supplier<Connection> connection, Configuration configuration, RelationalPath<?> entity)
-
-
Method Details
-
addFlag
Add the given String literal at the given position as a query flag- Parameters:
position- positionflag- query flag- Returns:
- the current object
-
addFlag
Add the given Expression at the given position as a query flag- Parameters:
position- positionflag- query flag- Returns:
- the current object
-
addBatch
Add current state of bindings as a batch item- Returns:
- the current object
-
clear
public void clear()Description copied from class:AbstractSQLClauseClear the internal state of the clause- Specified by:
clearin classAbstractSQLClause<C extends AbstractSQLDeleteClause<C>>
-
createStatement
- Throws:
SQLException
-
createStatements
- Throws:
SQLException
-
execute
public long execute()- Specified by:
executein interfaceDMLClause<C extends AbstractSQLDeleteClause<C>>
-
getSQL
Description copied from class:AbstractSQLClauseGet the SQL string and bindings- Specified by:
getSQLin classAbstractSQLClause<C extends AbstractSQLDeleteClause<C>>- Returns:
- SQL and bindings
-
where
-
where
- Specified by:
wherein interfaceFilteredClause<C extends AbstractSQLDeleteClause<C>>
-
limit
-
getBatchCount
public int getBatchCount()- Specified by:
getBatchCountin classAbstractSQLClause<C extends AbstractSQLDeleteClause<C>>
-
toString
-