Package org.apache.cayenne.query
Class DeleteBatchQuery
java.lang.Object
org.apache.cayenne.query.BatchQuery
org.apache.cayenne.query.DeleteBatchQuery
- All Implemented Interfaces:
- Serializable,- Query
Batched delete query.
- See Also:
- 
Field SummaryFieldsFields inherited from class org.apache.cayenne.query.BatchQuerydbAttributes, dbEntity, rows
- 
Constructor SummaryConstructorsConstructorDescriptionDeleteBatchQuery(DbEntity dbEntity, List<DbAttribute> qualifierAttributes, Collection<String> nullQualifierNames, int batchCapacity) Creates new DeleteBatchQuery.
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanisNull(DbAttribute attribute) Returns true if a given attribute always has a null value in the batch.booleanReturns true if the batch query uses optimistic locking.voidsetUsingOptimisticLocking(boolean usingOptimisticLocking) Methods inherited from class org.apache.cayenne.query.BatchQuerycreateSQLAction, getDbAttributes, getDbEntity, getMetaData, getRows, route
- 
Field Details- 
usingOptimisticLockingprotected boolean usingOptimisticLocking
 
- 
- 
Constructor Details- 
DeleteBatchQuerypublic DeleteBatchQuery(DbEntity dbEntity, List<DbAttribute> qualifierAttributes, Collection<String> nullQualifierNames, int batchCapacity) Creates new DeleteBatchQuery.- Parameters:
- 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.
 
 
- 
- 
Method Details- 
isNullReturns true if a given attribute always has a null value in the batch.- Since:
- 1.2
 
- 
isUsingOptimisticLockingpublic boolean isUsingOptimisticLocking()Returns true if the batch query uses optimistic locking.- Overrides:
- isUsingOptimisticLockingin class- BatchQuery
- Since:
- 1.2
 
- 
setUsingOptimisticLockingpublic void setUsingOptimisticLocking(boolean usingOptimisticLocking) - Since:
- 1.2
 
- 
add
 
-