* @exception StandardException standard error policy
*/
public int removePermissions( ExecRow row, PermissionsDescriptor perm, boolean[] colsChanged)
throws StandardException
{
TablePermsDescriptor tablePerms = (TablePermsDescriptor) perm;
int changeCount = 0;
boolean permissionsLeft =
( removeOnePermission( row, colsChanged, SELECTPRIV_COL_NUM, tablePerms.getSelectPriv()) |
removeOnePermission( row, colsChanged, DELETEPRIV_COL_NUM, tablePerms.getDeletePriv()) |
removeOnePermission( row, colsChanged, INSERTPRIV_COL_NUM, tablePerms.getInsertPriv()) |
removeOnePermission( row, colsChanged, UPDATEPRIV_COL_NUM, tablePerms.getUpdatePriv()) |
removeOnePermission( row, colsChanged, REFERENCESPRIV_COL_NUM, tablePerms.getReferencesPriv()) |
removeOnePermission( row, colsChanged, TRIGGERPRIV_COL_NUM, tablePerms.getTriggerPriv()));
if( ! permissionsLeft)
return -1;
for( int i = 0; i < colsChanged.length; i++)
{
if( colsChanged[ i])