VerificationSelectPlanpublic class VerificationSelectPlan extends SelectQueryPlan Implements Select Plan for verifying clean VC instanses. |
Constructors Summary |
---|
public VerificationSelectPlan(RetrieveDesc desc, SQLStoreManager store)Creates a new VerificationSelectQueryPlan.
super(desc, store, null);
|
Methods Summary |
---|
public java.lang.Object | getResult(PersistenceManager pm, java.sql.ResultSet resultData)Checks whether the resultset from a verification query contains atleast
one row.
boolean verificationSuccessfull = resultData.next();
return Boolean.valueOf(verificationSuccessfull);
| protected Statement | newStatement()
return new SelectOneStatement(store.getVendorType(), this);
| protected void | processFields()There are no real fields to be selected for verification query.
This method just adds the tables for the version field.
LocalFieldDesc[] versionFields = config.getVersionFields();
for (int i = 0; i < versionFields.length; i++) {
LocalFieldDesc versionField = versionFields[i];
addTable(versionField);
}
|
|