C
- The type extending this class.public abstract class AbstractSQLDeleteClause<C extends AbstractSQLDeleteClause<C>> extends AbstractSQLClause<C> implements DeleteClause<C>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<QueryMetadata> |
batches |
protected java.util.List<java.lang.Object> |
constants |
protected RelationalPath<?> |
entity |
protected static java.util.logging.Logger |
logger |
protected DefaultQueryMetadata |
metadata |
protected java.lang.String |
queryString |
protected static ValidatingVisitor |
validatingVisitor |
configuration, context, listeners, useLiterals
Constructor and Description |
---|
AbstractSQLDeleteClause(java.sql.Connection connection,
Configuration configuration,
RelationalPath<?> entity) |
AbstractSQLDeleteClause(java.util.function.Supplier<java.sql.Connection> connection,
Configuration configuration,
RelationalPath<?> entity) |
Modifier and Type | Method and Description |
---|---|
C |
addBatch()
Add current state of bindings as a batch item
|
C |
addFlag(QueryFlag.Position position,
Expression<?> flag)
Add the given Expression at the given position as a query flag
|
C |
addFlag(QueryFlag.Position position,
java.lang.String flag)
Add the given String literal at the given position as a query flag
|
void |
clear()
Clear the internal state of the clause
|
protected java.sql.PreparedStatement |
createStatement() |
protected java.util.Collection<java.sql.PreparedStatement> |
createStatements() |
long |
execute() |
int |
getBatchCount() |
java.util.List<SQLBindings> |
getSQL()
Get the SQL string and bindings
|
C |
limit(@Range(from=0L,to=2147483647L) long limit) |
java.lang.String |
toString() |
C |
where(Predicate... o) |
C |
where(Predicate p) |
addListener, close, close, close, connection, createBindings, createSerializer, endContext, executeBatch, logQuery, onException, reset, setParameters, setUseLiterals, startContext
protected static final java.util.logging.Logger logger
protected static final ValidatingVisitor validatingVisitor
protected final RelationalPath<?> entity
protected final java.util.List<QueryMetadata> batches
protected DefaultQueryMetadata metadata
protected transient java.lang.String queryString
protected transient java.util.List<java.lang.Object> constants
public AbstractSQLDeleteClause(java.sql.Connection connection, Configuration configuration, RelationalPath<?> entity)
public AbstractSQLDeleteClause(java.util.function.Supplier<java.sql.Connection> connection, Configuration configuration, RelationalPath<?> entity)
public C addFlag(QueryFlag.Position position, java.lang.String flag)
position
- positionflag
- query flagpublic C addFlag(QueryFlag.Position position, Expression<?> flag)
position
- positionflag
- query flagpublic C addBatch()
public void clear()
AbstractSQLClause
clear
in class AbstractSQLClause<C extends AbstractSQLDeleteClause<C>>
protected java.sql.PreparedStatement createStatement() throws java.sql.SQLException
java.sql.SQLException
protected java.util.Collection<java.sql.PreparedStatement> createStatements() throws java.sql.SQLException
java.sql.SQLException
public long execute()
execute
in interface DMLClause<C extends AbstractSQLDeleteClause<C>>
public java.util.List<SQLBindings> getSQL()
AbstractSQLClause
getSQL
in class AbstractSQLClause<C extends AbstractSQLDeleteClause<C>>
public C where(Predicate... o)
where
in interface FilteredClause<C extends AbstractSQLDeleteClause<C>>
public C limit(@Range(from=0L,to=2147483647L) long limit)
public int getBatchCount()
getBatchCount
in class AbstractSQLClause<C extends AbstractSQLDeleteClause<C>>
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007–2021 Querydsl. All rights reserved.