// (grantee, tableID, type) combination. We must either handle the multiple rows, which is necessary for
// checking permissions, or add a grantor column to the key, which is necessary for granting or revoking
// permissions.
row = getExecutionFactory().getIndexableRow( 3);
row.setColumn(1, getAuthorizationID( perm.getGrantee()));
ColPermsDescriptor colPerms = (ColPermsDescriptor) perm;
String tableUUIDStr = colPerms.getTableUUID().toString();
row.setColumn(2, getDataValueFactory().getCharDataValue( tableUUIDStr));
row.setColumn(3, getDataValueFactory().getCharDataValue( colPerms.getType()));
break;
case COLPERMSID_INDEX_NUM:
row = getExecutionFactory().getIndexableRow( 1);
String colPermsUUIDStr = perm.getObjectID().toString();
row.setColumn(1, getDataValueFactory().getCharDataValue( colPermsUUIDStr));
break;
case TABLEID_INDEX_NUM:
row = getExecutionFactory().getIndexableRow( 1);
colPerms = (ColPermsDescriptor) perm;
tableUUIDStr = colPerms.getTableUUID().toString();
row.setColumn(1, getDataValueFactory().getCharDataValue( tableUUIDStr));
break;
}
return row;
} // end of buildIndexKeyRow