public class DeleteBatchQuery extends BatchQuery
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
usingOptimisticLocking |
dataMap, dbAttributes, dbEntity, name, rows| Constructor and Description |
|---|
DeleteBatchQuery(DbEntity dbEntity,
List<DbAttribute> qualifierAttributes,
Collection<String> nullQualifierNames,
int batchCapacity)
Creates new DeleteBatchQuery.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Map<String,Object> dataObjectId) |
boolean |
isNull(DbAttribute attribute)
Returns true if a given attribute always has a null value in the batch.
|
boolean |
isUsingOptimisticLocking()
Returns true if the batch query uses optimistic locking.
|
void |
setUsingOptimisticLocking(boolean usingOptimisticLocking) |
createSQLAction, getDataMap, getDbAttributes, getDbEntity, getMetaData, getName, getRows, route, setDataMap, setName, sizepublic DeleteBatchQuery(DbEntity dbEntity, List<DbAttribute> qualifierAttributes, Collection<String> nullQualifierNames, int batchCapacity)
dbEntity - Table or view to delete.qualifierAttributes - DbAttributes used in the WHERE clause.nullQualifierNames - DbAttribute names in the WHERE clause that have null values.batchCapacity - Estimated size of the batch.public boolean isNull(DbAttribute attribute)
public boolean isUsingOptimisticLocking()
isUsingOptimisticLocking in class BatchQuerypublic void setUsingOptimisticLocking(boolean usingOptimisticLocking)
Copyright © 2001–2023 Apache Cayenne. All rights reserved.