Examples of addDependency()


Examples of org.apache.derby.iapi.sql.conn.StatementContext.addDependency()

        /* Add the dependency to the StatementContext, so that
         * it can be cleared on a pre-execution error.
         */
        StatementContext sc = (StatementContext) cm.getContext(org.apache.derby.iapi.reference.ContextId.LANG_STATEMENT);
        sc.addDependency(dy);
      }
      else
      {
        /* Add a stored dependency */
        LanguageConnectionContext  lcc = getLanguageConnectionContext(cm);
View Full Code Here

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

            //No REFERENCES privilege exists for given
            //authorizer at table or column level.
            //REFERENCES privilege has to exist at at PUBLIC level
            permDesc = statPerm.getPermissionDescriptor(Authorizer.PUBLIC_AUTHORIZATION_ID, dd);
            if (!(permDesc.checkOwner(lcc.getAuthorizationId())))
              dm.addDependency(dependent, permDesc, lcc.getContextManager());
          } else
            //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(lcc.getAuthorizationId())))
View Full Code Here

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

              //Following if checks if some column level privileges
              //exist only at public level. If so, then the public
              //level column privilege dependency is added
              //into the dependency system
              if (permDesc != null)
                dm.addDependency(dependent, permDesc, lcc.getContextManager());                                            
            }
          }
          //We have found the REFERENCES privilege for all the
          //columns in foreign key constraint and we don't
          //need to go through the rest of the privileges
View Full Code Here

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

            permDesc = statPerm.getPermissionDescriptor(Authorizer.PUBLIC_AUTHORIZATION_ID, dd);
            //If the user accessing the object is the owner of that
            //object, then no privilege tracking is needed for the
            //owner.
            if (!(permDesc.checkOwner(lcc.getAuthorizationId())))
              dm.addDependency(dependent, permDesc, lcc.getContextManager());
            continue;
          }
          //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
View Full Code Here

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

          //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(lcc.getAuthorizationId())))
          {
            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

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

              //Following if checks if some column level privileges
              //exist only at public level. If so, then the public
              //level column privilege dependency of view is added
              //into dependency system.
              if (permDesc != null)
                dm.addDependency(dependent, permDesc, lcc.getContextManager());                          
            }
          }
        }
      }
     
View Full Code Here

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

                     referencedConstraint,
                     ((CreateIndexConstantAction)indexAction).getIndexTemplateRow());
        }
       
        /* Create stored dependency on the referenced constraint */
        dm.addDependency(conDesc, referencedConstraint, lcc.getContextManager());
        //store constraint's dependency on REFERENCES privileges in the dependeny system
        storeConstraintDependenciesOnPrivileges(activation, conDesc, referencedConstraint.getTableId());       
        break;

      default:
View Full Code Here

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

          provider = (Provider) providerInfo[ix].
                      getDependableFinder().
                        getDependable(dd,
                          providerInfo[ix].getObjectId());

        dm.addDependency(conDesc, provider, lcc.getContextManager());
      }
    }

    /* Finally, invalidate off of the table descriptor(s)
     * to ensure that any dependent statements get
View Full Code Here

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

            DependencyManager dm = dd.getDependencyManager();
            RoleGrantDescriptor rgd =
              dd.getRoleDefinitionDescriptor(role);
            ContextManager cm = lcc.getContextManager();

            dm.addDependency(ps, rgd, cm);
            dm.addDependency(activation, rgd, cm);
          }
        }
      }
    }
View Full Code Here

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

            RoleGrantDescriptor rgd =
              dd.getRoleDefinitionDescriptor(role);
            ContextManager cm = lcc.getContextManager();

            dm.addDependency(ps, rgd, cm);
            dm.addDependency(activation, rgd, cm);
          }
        }
      }
    }
    return result;
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.