public abstract class BatchQuery extends Object implements Query
Modifier and Type | Field and Description |
---|---|
protected DataMap |
dataMap
Deprecated.
|
protected List<DbAttribute> |
dbAttributes |
protected DbEntity |
dbEntity |
protected String |
name
Deprecated.
|
protected List<BatchQueryRow> |
rows |
Constructor and Description |
---|
BatchQuery(DbEntity dbEntity,
List<DbAttribute> dbAttributes,
int batchCapacity) |
Modifier and Type | Method and Description |
---|---|
SQLAction |
createSQLAction(SQLActionVisitor visitor)
Calls "batchAction" on the visitor.
|
DataMap |
getDataMap()
Deprecated.
|
List<DbAttribute> |
getDbAttributes()
Returns a list of DbAttributes describing batch parameters.
|
DbEntity |
getDbEntity()
Returns a DbEntity associated with this batch.
|
QueryMetadata |
getMetaData(EntityResolver resolver)
Returns default select parameters.
|
String |
getName()
Deprecated.
|
List<BatchQueryRow> |
getRows() |
boolean |
isUsingOptimisticLocking()
Returns true if the batch query uses optimistic locking.
|
void |
route(QueryRouter router,
EntityResolver resolver,
Query substitutedQuery)
A callback method invoked by Cayenne during the routing phase of the query
execution.
|
void |
setDataMap(DataMap dataMap)
Deprecated.
|
void |
setName(String name) |
int |
size()
Deprecated.
since 4.0 use getRows().size().
|
protected DbEntity dbEntity
@Deprecated protected String name
@Deprecated protected DataMap dataMap
protected List<BatchQueryRow> rows
protected List<DbAttribute> dbAttributes
public BatchQuery(DbEntity dbEntity, List<DbAttribute> dbAttributes, int batchCapacity)
public List<BatchQueryRow> getRows()
@Deprecated public String getName()
Query
public void setName(String name)
@Deprecated public DataMap getDataMap()
getDataMap
in interface Query
@Deprecated public void setDataMap(DataMap dataMap)
public QueryMetadata getMetaData(EntityResolver resolver)
getMetaData
in interface Query
public void route(QueryRouter router, EntityResolver resolver, Query substitutedQuery)
Query
QueryRouter.route(QueryEngine, Query, Query)
callback method to route
itself. Query can create one or more substitute queries or even provide its own
QueryEngine to execute itself.public SQLAction createSQLAction(SQLActionVisitor visitor)
createSQLAction
in interface Query
public boolean isUsingOptimisticLocking()
public DbEntity getDbEntity()
public List<DbAttribute> getDbAttributes()
@Deprecated public int size()
Copyright © 2001–2017 Apache Cayenne. All rights reserved.