Examples of anySetBit()


Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()

        // column i (zero-based here) accounted for:
        unresolvedColumns.clear(i);
      }
    }

    if (unresolvedColumns.anySetBit() < 0) {
      // all ok
      return;
    }

    // If columns are still unauthorized, look to role closure for
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()

          (activation.getTransactionController(),
           role, true /* inverse relation*/);

        String r;

        while (unresolvedColumns.anySetBit() >= 0 &&
             (r = rci.next()) != null ) {

          unresolvedColumns = tryRole(lcc, dd, forGrant,
                        r, unresolvedColumns);
        }
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()

                        r, unresolvedColumns);
        }
      }
    }

    int remains = unresolvedColumns.anySetBit();

    if (remains >= 0) {
      // No permission on this column.
      TableDescriptor td = getTableDescriptor(dd);
      ColumnDescriptor cd = td.getColumnDescriptor(remains + 1);
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()

    FormatableBitSet permittedColumns = colsPermsDesc.getColumns();
    FormatableBitSet unresolvedColumns = (FormatableBitSet)columns.clone();
    boolean result = true;

    if (permittedColumns != null) { // else none at user level
      for(int i = unresolvedColumns.anySetBit();
        i >= 0;
        i = unresolvedColumns.anySetBit(i)) {

        if(permittedColumns.get(i)) {
          unresolvedColumns.clear(i);
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()

    boolean result = true;

    if (permittedColumns != null) { // else none at user level
      for(int i = unresolvedColumns.anySetBit();
        i >= 0;
        i = unresolvedColumns.anySetBit(i)) {

        if(permittedColumns.get(i)) {
          unresolvedColumns.clear(i);
        }
      }
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()

        }
      }
    }


    if (unresolvedColumns.anySetBit() >= 0) {
      colsPermsDesc =
        dd.getColumnPermissions(
          tableUUID, privType, false,
          Authorizer.PUBLIC_AUTHORIZATION_ID);
      permittedColumns = colsPermsDesc.getColumns();
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()

          tableUUID, privType, false,
          Authorizer.PUBLIC_AUTHORIZATION_ID);
      permittedColumns = colsPermsDesc.getColumns();

      if (permittedColumns != null) { // else none at public level
        for(int i = unresolvedColumns.anySetBit();
          i >= 0;
          i = unresolvedColumns.anySetBit(i)) {

          if(permittedColumns.get(i)) {
            unresolvedColumns.clear(i);
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()

      permittedColumns = colsPermsDesc.getColumns();

      if (permittedColumns != null) { // else none at public level
        for(int i = unresolvedColumns.anySetBit();
          i >= 0;
          i = unresolvedColumns.anySetBit(i)) {

          if(permittedColumns.get(i)) {
            unresolvedColumns.clear(i);
          }
        }
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()

            unresolvedColumns.clear(i);
          }
        }
      }

      if (unresolvedColumns.anySetBit() >= 0) {
        // even after trying all grants to user and public there
        // are unresolved columns so role must have been used.
        result = false;
      }
    }
View Full Code Here

Examples of org.apache.derby.iapi.services.io.FormatableBitSet.anySetBit()

        ColPermsDescriptor colPerms = (ColPermsDescriptor) perm;
        FormatableBitSet existingColSet = (FormatableBitSet) row.getColumn( COLUMNS_COL_NUM).getObject();
        FormatableBitSet newColSet = colPerms.getColumns();

        boolean changed = false;
        for( int i = newColSet.anySetBit(); i >= 0; i = newColSet.anySetBit(i))
        {
            if( ! existingColSet.get(i))
            {
                existingColSet.set( i);
                changed = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.