//SYSCOLPERMS using getDescriptorViaIndex().
List permissionDescriptorsList;//all ColPermsDescriptor for given tableid
DataValueDescriptor tableIDOrderable = getIDValueAsCHAR(tableID);
TabInfoImpl ti = getNonCoreTI(SYSCOLPERMS_CATALOG_NUM);
SYSCOLPERMSRowFactory rf = (SYSCOLPERMSRowFactory) ti.getCatalogRowFactory();
ExecIndexRow keyRow = exFactory.getIndexableRow(1);
keyRow.setColumn(1, tableIDOrderable);
permissionDescriptorsList = newSList();
getDescriptorViaIndex(
SYSCOLPERMSRowFactory.TABLEID_INDEX_NUM,
keyRow,
(ScanQualifier [][]) null,
ti,
(TupleDescriptor) null,
permissionDescriptorsList,
false);
/* Next, using each of the ColPermDescriptor's uuid, get the unique row
in SYSCOLPERMS and adjust the "COLUMNS" column in SYSCOLPERMS to
accomodate the added or dropped column in the tableid*/
ColPermsDescriptor colPermsDescriptor;
ExecRow curRow;
ExecIndexRow uuidKey;
// Not updating any indexes on SYSCOLPERMS
boolean[] bArray = new boolean[SYSCOLPERMSRowFactory.TOTAL_NUM_OF_INDEXES];
int[] colsToUpdate = {SYSCOLPERMSRowFactory.COLUMNS_COL_NUM};
for (Iterator iterator = permissionDescriptorsList.iterator(); iterator.hasNext(); )
{