Class UpdateQueryPlan
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.QueryPlan
-
- com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.UpdateQueryPlan
-
public class UpdateQueryPlan extends QueryPlan
This class is used to generated update/insert/delete statements.
-
-
Field Summary
-
Fields inherited from class com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.QueryPlan
ACT_DELETE, ACT_INSERT, ACT_NOOP, ACT_SELECT, ACT_UPDATE, action, config, messages, ST_BUILT, statements, status, store, tables
-
-
Constructor Summary
Constructors Constructor Description UpdateQueryPlan(ActionDesc desc, SQLStoreManager store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build()
void
build(boolean batch)
Builds a UpdateQueryPlan for an object based update type (i.e.boolean
checkBatchThreshold(Transaction tran)
Determines if the amount of batched operations exceeded a threshold.protected Statement
newStatement()
protected void
processStatements()
This method goes through the statement list and tries to set up relationship between statements based on secondary table keys.-
Methods inherited from class com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.QueryPlan
addQueryTable, addQueryTable, addQueryTables, addStatement, createStatement, findQueryTable, findQueryTable, getAction, getConfig, getStatement, getStatements
-
-
-
-
Constructor Detail
-
UpdateQueryPlan
public UpdateQueryPlan(ActionDesc desc, SQLStoreManager store)
-
-
Method Detail
-
build
public void build(boolean batch)
Builds a UpdateQueryPlan for an object based update type (i.e. insert, update, delete) ActionDesc.- Parameters:
batch
- Flag indicating whether we use batch update.
-
processStatements
protected void processStatements()
Description copied from class:QueryPlan
This method goes through the statement list and tries to set up relationship between statements based on secondary table keys.- Overrides:
processStatements
in classQueryPlan
-
newStatement
protected Statement newStatement()
- Specified by:
newStatement
in classQueryPlan
-
checkBatchThreshold
public boolean checkBatchThreshold(Transaction tran)
Determines if the amount of batched operations exceeded a threshold.- Parameters:
tran
- the transaction- Returns:
- true if the amount of batched operations exceeded a threshold
-
-