public class DeleteBatchQuery extends BatchQuery
Modifier and Type | Field and Description |
---|---|
protected List<DbAttribute> |
dbAttributes |
protected List<Map> |
qualifierSnapshots |
protected boolean |
usingOptimisticLocking |
batchIndex, dataMap, dbEntity, name
Constructor and Description |
---|
DeleteBatchQuery(DbEntity dbEntity,
Collection<DbAttribute> qualifierAttributes,
Collection<String> nullQualifierNames,
int batchCapacity)
Creates new DeleteBatchQuery.
|
DeleteBatchQuery(DbEntity dbEntity,
int batchCapacity)
Creates new DeleteBatchQuery.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Map dataObjectId) |
Map |
getCurrentQualifier()
Returns a snapshot of the current qualifier values.
|
List<DbAttribute> |
getDbAttributes()
Returns a list of DbAttributes describing batch parameters.
|
Collection<DbAttribute> |
getQualifierAttributes() |
Object |
getValue(int dbAttributeIndex)
Returns a value at a given index for the current batch iteration.
|
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) |
int |
size()
Returns the number of parameter rows in a batch.
|
acceptVisitor, createSQLAction, getDataMap, getDbEntity, getMetaData, getName, getObjectId, getValue, isEmpty, next, reset, route, setDataMap, setName
protected List<DbAttribute> dbAttributes
protected boolean usingOptimisticLocking
public DeleteBatchQuery(DbEntity dbEntity, int batchCapacity)
dbEntity
- Table or view to delete.batchCapacity
- Estimated size of the batch.public DeleteBatchQuery(DbEntity dbEntity, Collection<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 BatchQuery
public void setUsingOptimisticLocking(boolean usingOptimisticLocking)
public Collection<DbAttribute> getQualifierAttributes()
public Object getValue(int dbAttributeIndex)
BatchQuery
getValue
in class BatchQuery
public void add(Map dataObjectId)
public int size()
BatchQuery
size
in class BatchQuery
public List<DbAttribute> getDbAttributes()
BatchQuery
getDbAttributes
in class BatchQuery
public Map getCurrentQualifier()
Copyright © 2001–2018 Apache Cayenne. All rights reserved.