{
// Select all fields in the FetchPlan
// TODO This only utilises the first table. What if we have multiple ?
AbstractClassMetaData cmd = storeMgr.getOMFContext().getMetaDataManager().getMetaDataForClass(getCandidateClass(), stmt.getClassLoaderResolver());
getFetchPlan().manageFetchPlanForClass(cmd);
FetchPlanForClass fpc = getFetchPlan().getFetchPlanForClass(cmd);
int fieldNumbers[] = fpc.getFieldsInActualFetchPlan();
int prefetchFieldCount = 0;
int fieldCount = cmd.getNoOfInheritedManagedMembers() + cmd.getNoOfManagedMembers();
int fn[] = new int[fieldNumbers.length];
statementExpressionIndex = new StatementExpressionIndex[fieldCount];