public class UpdateBatchQuery extends BatchQuery
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | usingOptimisticLocking | 
dataMap, dbAttributes, dbEntity, name, rows| Constructor and Description | 
|---|
| UpdateBatchQuery(DbEntity dbEntity,
                List<DbAttribute> qualifierAttributes,
                List<DbAttribute> updatedAttributes,
                Collection<String> nullQualifierNames,
                int batchCapacity)Creates new UpdateBatchQuery. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(Map<String,Object> qualifierSnapshot,
   Map<String,Object> updateSnapshot)Adds a parameter row to the batch. | 
| void | add(Map<String,Object> qualifierSnapshot,
   Map<String,Object> updateSnapshot,
   ObjectId id)Adds a parameter row to the batch. | 
| List<DbAttribute> | getDbAttributes()Returns a list of DbAttributes describing batch parameters. | 
| List<DbAttribute> | getQualifierAttributes() | 
| List<DbAttribute> | getUpdatedAttributes() | 
| 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, getDbEntity, getMetaData, getName, getRows, route, setDataMap, setName, sizepublic UpdateBatchQuery(DbEntity dbEntity, List<DbAttribute> qualifierAttributes, List<DbAttribute> updatedAttributes, Collection<String> nullQualifierNames, int batchCapacity)
dbEntity - Table or view to update.qualifierAttributes - DbAttributes used in the WHERE clause.nullQualifierNames - DbAttribute names in the WHERE clause that have null values.updatedAttributes - DbAttributes describing updated columns.batchCapacity - Estimated size of the batch.public boolean isNull(DbAttribute attribute)
public boolean isUsingOptimisticLocking()
isUsingOptimisticLocking in class BatchQuerypublic void setUsingOptimisticLocking(boolean usingOptimisticLocking)
public void add(Map<String,Object> qualifierSnapshot, Map<String,Object> updateSnapshot)
public void add(Map<String,Object> qualifierSnapshot, Map<String,Object> updateSnapshot, ObjectId id)
public List<DbAttribute> getDbAttributes()
BatchQuerygetDbAttributes in class BatchQuerypublic List<DbAttribute> getUpdatedAttributes()
public List<DbAttribute> getQualifierAttributes()
Copyright © 2001–2023 Apache Cayenne. All rights reserved.