* @exception StandardException Thrown on error
*/
private ViewDescriptor getViewDescriptorScan(TableDescriptor tdi)
throws StandardException
{
ViewDescriptor vd;
DataValueDescriptor viewIdOrderable;
TabInfo ti = getNonCoreTI(SYSVIEWS_CATALOG_NUM);
UUID viewID = tdi.getUUID();
/* Use viewIdOrderable in both start
* and stop position for scan.
*/
viewIdOrderable = dvf.getCharDataValue(viewID.toString());
/* Set up the start/stop position for the scan */
ExecIndexRow keyRow = exFactory.getIndexableRow(1);
keyRow.setColumn(1, viewIdOrderable);
vd = (ViewDescriptor)
getDescriptorViaIndex(
SYSVIEWSRowFactory.SYSVIEWS_INDEX1_ID,
keyRow,
(ScanQualifier [][]) null,
ti,
(TupleDescriptor) null,
(List) null,
false);
if (vd != null)
{
vd.setViewName(tdi.getName());
}
return vd;
}