/* Set up the start/stop position for the scan */
ExecIndexRow keyRow = exFactory.getIndexableRow(2);
keyRow.setColumn(1, stmtNameOrderable);
keyRow.setColumn(2, schemaIDOrderable);
SPSDescriptor spsd = (SPSDescriptor)
getDescriptorViaIndex(
SYSSTATEMENTSRowFactory.SYSSTATEMENTS_INDEX2_ID,
keyRow,
(ScanQualifier [][]) null,
ti,
(TupleDescriptor) null,
(List) null,
false);
/*
** Set up the parameter defaults. We are only
** doing this when we look up by name because
** this is the only time we cache, and it can
** be foolish to look up the parameter defaults
** for someone that doesn't need them.
*/
if (spsd != null)
{
Vector v = new Vector();
spsd.setParams(getSPSParams(spsd, v));
Object[] defaults = new Object[v.size()];
v.copyInto(defaults);
spsd.setParameterDefaults(defaults);
}
return spsd;
}