Package org.apache.derby.iapi.sql.compile

Examples of org.apache.derby.iapi.sql.compile.CompilerContext.addRequiredColumnPriv()


            ColumnDescriptor    colDesc = rc.getColumnDescriptor();
           
            if ( colDesc != null )
            {
                cc.pushCurrentPrivType( Authorizer.SELECT_PRIV );
                cc.addRequiredColumnPriv( colDesc );
                cc.popCurrentPrivType();
            }
        }
    }
View Full Code Here


        //sql accessing a view, we only need to look for select privilege
        //on the actual view and that is what the following code is
        //checking.
                for (ResultColumn rc : getResultColumns()) {
                    if (isPrivilegeCollectionRequired()) {
            compilerContext.addRequiredColumnPriv( rc.getTableColumnDescriptor());
                    }
        }

                fsq = new FromSubquery(
          rsn,
View Full Code Here

        //on the actual view and that is what the following code is
        //checking.
        for (int i = 0; i < resultColumns.size(); i++) {
          ResultColumn rc = (ResultColumn) resultColumns.elementAt(i);
          if (rc.isPrivilegeCollectionRequired())
            compilerContext.addRequiredColumnPriv( rc.getTableColumnDescriptor());
        }

        fsq = (FromSubquery) getNodeFactory().getNode(
          C_NodeTypes.FROM_SUBQUERY,
          rsn,
View Full Code Here

        //on the actual view and that is what the following code is
        //checking.
        for (int i = 0; i < resultColumns.size(); i++) {
          ResultColumn rc = (ResultColumn) resultColumns.elementAt(i);
          if (rc.isPrivilegeCollectionRequired())
            compilerContext.addRequiredColumnPriv( rc.getTableColumnDescriptor());
        }

        fsq = (FromSubquery) getNodeFactory().getNode(
          C_NodeTypes.FROM_SUBQUERY,
          rsn,
View Full Code Here

            fromTable = (FromTable) elementAt(index);
            if (fromTable.isPrivilegeCollectionRequired() &&
                    fromTable.isBaseTable() && !fromTable.forUpdate()) {
                // This is a base table in the FROM list of a SELECT statement.
                // Make sure we check for minimum SELECT privilege on it.
                cc.addRequiredColumnPriv(
                    fromTable.getTableDescriptor().getColumnDescriptor(1));
            }
        }
        cc.popCurrentPrivType();
  }
View Full Code Here

        //on the actual view and that is what the following code is
        //checking.
        for (int i = 0; i < resultColumns.size(); i++) {
          ResultColumn rc = (ResultColumn) resultColumns.elementAt(i);
          if (rc.isPrivilegeCollectionRequired())
            compilerContext.addRequiredColumnPriv( rc.getTableColumnDescriptor());
        }

        fsq = (FromSubquery) getNodeFactory().getNode(
          C_NodeTypes.FROM_SUBQUERY,
          rsn,
View Full Code Here

        //on the actual view and that is what the following code is
        //checking.
        for (int i = 0; i < resultColumns.size(); i++) {
          ResultColumn rc = (ResultColumn) resultColumns.elementAt(i);
          if (rc.isPrivilegeCollectionRequired())
            compilerContext.addRequiredColumnPriv( rc.getTableColumnDescriptor());
        }

        fsq = (FromSubquery) getNodeFactory().getNode(
          C_NodeTypes.FROM_SUBQUERY,
          rsn,
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.