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 List<QueryMetadata> |
batches |
protected List<Object> |
constants |
protected RelationalPath<?> |
entity |
protected static org.slf4j.Logger |
logger |
protected DefaultQueryMetadata |
metadata |
protected String |
queryString |
protected static ValidatingVisitor |
validatingVisitor |
configuration, context, listeners, useLiterals
Constructor and Description |
---|
AbstractSQLDeleteClause(Connection connection,
Configuration configuration,
RelationalPath<?> entity) |
AbstractSQLDeleteClause(javax.inject.Provider<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,
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 PreparedStatement |
createStatement() |
protected Collection<PreparedStatement> |
createStatements() |
long |
execute()
Execute the clause and return the amount of affected rows
|
int |
getBatchCount() |
List<SQLBindings> |
getSQL()
Get the SQL string and bindings
|
C |
limit(long limit) |
String |
toString() |
C |
where(Predicate... o)
Adds the given filter conditions
|
C |
where(Predicate p) |
addListener, cleanupMDC, close, close, close, connection, createBindings, createSerializer, endContext, executeBatch, logQuery, onException, reset, setParameters, setUseLiterals, startContext
protected static final org.slf4j.Logger logger
protected static final ValidatingVisitor validatingVisitor
protected final RelationalPath<?> entity
protected final List<QueryMetadata> batches
protected DefaultQueryMetadata metadata
protected transient String queryString
public AbstractSQLDeleteClause(Connection connection, Configuration configuration, RelationalPath<?> entity)
public AbstractSQLDeleteClause(javax.inject.Provider<Connection> connection, Configuration configuration, RelationalPath<?> entity)
@WithBridgeMethods(value=SQLDeleteClause.class, castRequired=true) public C addFlag(QueryFlag.Position position, String flag)
position
- positionflag
- query flag@WithBridgeMethods(value=SQLDeleteClause.class, castRequired=true) public C addFlag(QueryFlag.Position position, Expression<?> flag)
position
- positionflag
- query flag@WithBridgeMethods(value=SQLDeleteClause.class, castRequired=true) public C addBatch()
public void clear()
AbstractSQLClause
clear
in class AbstractSQLClause<C extends AbstractSQLDeleteClause<C>>
protected PreparedStatement createStatement() throws SQLException
SQLException
protected Collection<PreparedStatement> createStatements() throws SQLException
SQLException
public long execute()
DMLClause
execute
in interface DMLClause<C extends AbstractSQLDeleteClause<C>>
public List<SQLBindings> getSQL()
AbstractSQLClause
getSQL
in class AbstractSQLClause<C extends AbstractSQLDeleteClause<C>>
@WithBridgeMethods(value=SQLDeleteClause.class, castRequired=true) public C where(Predicate p)
@WithBridgeMethods(value=SQLDeleteClause.class, castRequired=true) public C where(Predicate... o)
FilteredClause
Skips null arguments
where
in interface FilteredClause<C extends AbstractSQLDeleteClause<C>>
o
- filter conditions to be added@WithBridgeMethods(value=SQLDeleteClause.class, castRequired=true) public C limit(@Nonnegative long limit)
public int getBatchCount()
getBatchCount
in class AbstractSQLClause<C extends AbstractSQLDeleteClause<C>>
Copyright © 2007–2020 Querydsl. All rights reserved.