Class VerificationSelectPlan
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.QueryPlan
-
- com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.SelectQueryPlan
-
- com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.VerificationSelectPlan
-
public class VerificationSelectPlan extends SelectQueryPlan
Implements Select Plan for verifying clean VC instanses.- Author:
- Mitesh Meswani
-
-
Field Summary
-
Fields inherited from class com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.SelectQueryPlan
constraint, MULTILEVEL_PREFETCH_PROPERTY, options, parentField, ST_C_BUILT, ST_OC_BUILT
-
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 VerificationSelectPlan(RetrieveDesc desc, SQLStoreManager store)
Creates a new VerificationSelectQueryPlan.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getResult(PersistenceManager pm, ResultSet resultData)
Checks whether the resultset from a verification query contains atleast one row.protected Statement
newStatement()
protected void
processFields()
There are no real fields to be selected for verification query.-
Methods inherited from class com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.SelectQueryPlan
addColumn, addJoinConstraint, addTable, build, getConstraint, newInstance, processConstraints, processOrderConstraints, processStatements
-
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
-
VerificationSelectPlan
public VerificationSelectPlan(RetrieveDesc desc, SQLStoreManager store)
Creates a new VerificationSelectQueryPlan.- Parameters:
desc
- The Retrieve descriptor holding constraintsstore
- Store manager executing the query.
-
-
Method Detail
-
processFields
protected void processFields()
There are no real fields to be selected for verification query. This method just adds the tables for the version field.- Overrides:
processFields
in classSelectQueryPlan
-
newStatement
protected Statement newStatement()
- Overrides:
newStatement
in classSelectQueryPlan
-
getResult
public Object getResult(PersistenceManager pm, ResultSet resultData) throws SQLException
Checks whether the resultset from a verification query contains atleast one row.- Overrides:
getResult
in classSelectQueryPlan
- Parameters:
pm
- This parameter is not used.resultData
- The resultset containing result from the verification query- Returns:
- true if the resultset contains atleast one row false otherwise.
- Throws:
SQLException
-
-