Class BatchQuery
java.lang.Object
org.apache.cayenne.query.BatchQuery
- All Implemented Interfaces:
Query
- Direct Known Subclasses:
DeleteBatchQuery, InsertBatchQuery, UpdateBatchQuery
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<DbAttribute> protected DbEntityprotected List<BatchQueryRow> -
Constructor Summary
ConstructorsConstructorDescriptionBatchQuery(DbEntity dbEntity, List<DbAttribute> dbAttributes, int batchCapacity) -
Method Summary
Modifier and TypeMethodDescriptioncreateSQLAction(SQLActionVisitor visitor) Calls "batchAction" on the visitor.Returns a list of DbAttributes describing batch parameters.Returns a DbEntity associated with this batch.getMetaData(EntityResolver resolver) Returns default select parameters.getRows()booleanReturns true if the batch query uses optimistic locking.
-
Field Details
-
dbEntity
-
rows
-
dbAttributes
-
-
Constructor Details
-
BatchQuery
- Since:
- 4.0
-
-
Method Details
-
getRows
- Since:
- 4.0
-
getMetaData
Returns default select parameters.- Specified by:
getMetaDatain interfaceQuery- Since:
- 1.2
-
createSQLAction
Calls "batchAction" on the visitor.- Specified by:
createSQLActionin interfaceQuery- Since:
- 1.2
-
isUsingOptimisticLocking
public boolean isUsingOptimisticLocking()Returns true if the batch query uses optimistic locking.- Since:
- 1.1
-
getDbEntity
Returns a DbEntity associated with this batch. -
getDbAttributes
Returns a list of DbAttributes describing batch parameters.
-