Package org.apache.derby.iapi.sql.depend

Examples of org.apache.derby.iapi.sql.depend.DependencyManager.addDependency()


                      cm,
                      tc);
      //If this sps is for a trigger action, then add the depenency
      // between this sps and the trigger table DERBY-5120
      if (triggerTable != null)
        dm.addDependency(this, triggerTable, lcc.getContextManager());
    }

    // mark it as valid
    valid = true;
  }
View Full Code Here


            // If the user accessing the object is the owner of
            // that object, then no privilege tracking is needed
            // for the owner.
                        if (! permDesc.checkOwner(currentUser) ) {

                            dm.addDependency(dependent, permDesc,
                       lcc.getContextManager());

              if (roleUsed) {
                // We had to rely on role, so track that
                // dependency, too.
View Full Code Here

            //if the object on which permission is required is owned by the
            //same user as the current user, then no need to keep that
            //object's privilege dependency in the dependency system
                    if (! permDesc.checkOwner(currentUser))
          {
            dm.addDependency(dependent, permDesc, lcc.getContextManager());
            if (permDesc instanceof ColPermsDescriptor)
            {
              // The if statement above means we found a
              // REFERENCES privilege at column level for the
              // given authorizer. If this privilege doesn't
View Full Code Here

              if (permDesc != null &&
                  permDesc.getObjectID() != null) {
                // User did not have all required column
                // permissions and at least one column is
                // covered by PUBLIC.
                dm.addDependency(dependent, permDesc,
                         lcc.getContextManager());
              }
              // Possibly, the current role has also been relied
              // upon.
              if (!statementColumnPermission.
View Full Code Here

      String role =
        lcc.getCurrentRoleId(activation);
      RoleGrantDescriptor rgd =
        dd.getRoleDefinitionDescriptor(role);

      dm.addDependency
        (dependent, rgd,
         lcc.getContextManager());
      roleDepAdded.set(true);
    }
  }
View Full Code Here

            //If the user accessing the object is the owner of that
            //object, then no privilege tracking is needed for the
            //owner.
                        if (! permDesc.checkOwner(currentUser) ) {

              dm.addDependency(dependent, permDesc, lcc.getContextManager());

              // We had to rely on role, so track that
              // dependency, too.
              if (roleUsed) {
                trackRoleDependency
View Full Code Here

          //if the object on which permission is required is owned by the
          //same user as the current user, then no need to keep that
          //object's privilege dependency in the dependency system
                    if (! permDesc.checkOwner(currentUser) )
          {
            dm.addDependency(dependent, permDesc, lcc.getContextManager());                          
            if (permDesc instanceof ColPermsDescriptor)
            {
              //For a given table, the table owner can give privileges
              //on some columns at individual user level and privileges
              //on some columns at PUBLIC level. Hence, when looking for
View Full Code Here

              if (permDesc != null &&
                  permDesc.getObjectID() != null) {
                // User did not have all required column
                // permissions and at least one column is
                // covered by PUBLIC.
                dm.addDependency(dependent, permDesc,
                         lcc.getContextManager());
              } // else nothing found for PUBLIC..

              // Has the the current role has also been relied
              // upon?
View Full Code Here

                ProviderInfo            pi = providers[ px ];
                DependableFinder    finder = pi.getDependableFinder();
                UUID                        providerID = pi.getObjectId();
                Provider                    provider = (Provider) finder.getDependable( dd, providerID );

                dm.addDependency( defDesc, provider, cm );
            }   // end loop through providers
        }
    }

    /**
 
View Full Code Here

        ContextManager        cm = lcc.getContextManager();

        // add new dependencies
        for (AliasDescriptor ad : addUdtMap.values())
        {
            dm.addDependency( dependent, ad, cm );
        }

        // drop dependencies that are orphaned
        for (AliasDescriptor ad : dropUdtMap.values()) {
            DependencyDescriptor dep = new DependencyDescriptor(dependent, ad);
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.