boolean recompile,
boolean updateParamDescriptors,
boolean firstCompilation)
throws StandardException
{
ExecIndexRow keyRow1 = null;
ExecRow row;
DataValueDescriptor idOrderable;
TabInfoImpl ti = getNonCoreTI(SYSSTATEMENTS_CATALOG_NUM);
SYSSTATEMENTSRowFactory rf = (SYSSTATEMENTSRowFactory) ti.getCatalogRowFactory();
int[] updCols;
if (recompile)
{
if(firstCompilation)
{
updCols = new int[] {SYSSTATEMENTSRowFactory.SYSSTATEMENTS_VALID,
SYSSTATEMENTSRowFactory.SYSSTATEMENTS_TEXT,
SYSSTATEMENTSRowFactory.SYSSTATEMENTS_LASTCOMPILED,
SYSSTATEMENTSRowFactory.SYSSTATEMENTS_USINGTEXT,
SYSSTATEMENTSRowFactory.SYSSTATEMENTS_CONSTANTSTATE,
SYSSTATEMENTSRowFactory.SYSSTATEMENTS_INITIALLY_COMPILABLE};
}else
{
updCols = new int[] {SYSSTATEMENTSRowFactory.SYSSTATEMENTS_VALID,
SYSSTATEMENTSRowFactory.SYSSTATEMENTS_TEXT,
SYSSTATEMENTSRowFactory.SYSSTATEMENTS_LASTCOMPILED,
SYSSTATEMENTSRowFactory.SYSSTATEMENTS_USINGTEXT,
SYSSTATEMENTSRowFactory.SYSSTATEMENTS_CONSTANTSTATE };
}
}
else
{
updCols = new int[] {SYSSTATEMENTSRowFactory.SYSSTATEMENTS_VALID} ;
}
idOrderable = getIDValueAsCHAR(spsd.getUUID());
/* Set up the start/stop position for the scan */
keyRow1 = (ExecIndexRow) exFactory.getIndexableRow(1);
keyRow1.setColumn(1, idOrderable);
row = rf.makeSYSSTATEMENTSrow(false, // don't compile
spsd);
/*