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

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


      DependencyManager dm = lcc.getDataDictionary().getDependencyManager();

      /* Clear out the old dependencies on this statement as we
       * will build the new set during the reprepare in makeValid().
       */
      dm.clearDependencies(lcc, this);

      /*
      ** If we are invalidating an EXECUTE STATEMENT because of a stale
      ** plan, we also need to invalidate the stored prepared statement.
      */
 
View Full Code Here


      /*
      ** Clear out all the dependencies that exist
      ** before we recreate them so we don't grow
      ** SYS.SYSDEPENDS forever.
      */
      dm.clearDependencies(lcc, this, tc);

      /*
      ** Copy over all the dependencies to me
      */
      dm.copyDependencies(preparedStatement,   // from
View Full Code Here

        }
        dm.invalidateFor(this, dm.USER_RECOMPILE_REQUEST, lcc);
        break;
      case DependencyManager.DROP_SPS:
        //System.out.println("SPSD " + preparedStatement);
        dm.clearDependencies(lcc, this);
        break;
 
        default:

        /*
 
View Full Code Here

     * drop.) If no one objects, then invalidate any dependent objects.
     */
        dm.invalidateFor(td, action, lcc);

    /* Clear the dependencies for the view */
    dm.clearDependencies(lcc, this);

    /* Drop the view */
    dd.dropViewDescriptor(this, tc);

    /* Drop all table and column permission descriptors */
 
View Full Code Here

        // Drop the trigger
        dd.dropTriggerDescriptor(this, tc);

        // Clear the dependencies for the trigger
        dm.clearDependencies(lcc, this);

        // Drop the spses
        SPSDescriptor spsd = dd.getSPSDescriptor(this.getActionId());

        // there shouldn't be any dependencies, but in case
View Full Code Here

        SPSDescriptor spsd = dd.getSPSDescriptor(this.getActionId());

        // there shouldn't be any dependencies, but in case
        // there are, lets clear them
        dm.invalidateFor(spsd, DependencyManager.DROP_TRIGGER, lcc);
        dm.clearDependencies(lcc, spsd);
        dd.dropSPSDescriptor(spsd, tc);
       
        if (getWhenClauseId() != null)
        {  
            spsd = dd.getSPSDescriptor(getWhenClauseId());
View Full Code Here

       
        if (getWhenClauseId() != null)
        {  
            spsd = dd.getSPSDescriptor(getWhenClauseId());
            dm.invalidateFor(spsd, DependencyManager.DROP_TRIGGER, lcc);
            dm.clearDependencies(lcc, spsd);
            dd.dropSPSDescriptor(spsd, tc);
        }
    }

View Full Code Here

            // Remove all the dependencies this activation has. It won't need
            // them after it's closed, so let's free up the memory in the
            // dependency manager. (DERBY-4571)
            DependencyManager dm =
                    lcc.getDataDictionary().getDependencyManager();
            dm.clearDependencies(lcc, this);

      lcc.removeActivation(this);
      if (preStmt != null) {
        preStmt.finish(lcc);
        preStmt = null;
View Full Code Here

      /* Clear out the old dependencies on this activation as we
       * will die shortly.
       */
      DependencyManager dm =
        lcc.getDataDictionary().getDependencyManager();
      dm.clearDependencies(lcc, this);

      break;
    case DependencyManager.REVOKE_ROLE:
      // Used by persistent objects (views, triggers, constraints)
      break;
View Full Code Here

      DependencyManager dm = lcc.getDataDictionary().getDependencyManager();

      /* Clear out the old dependencies on this statement as we
       * will build the new set during the reprepare in makeValid().
       */
      dm.clearDependencies(lcc, this);

      /*
      ** If we are invalidating an EXECUTE STATEMENT because of a stale
      ** plan, we also need to invalidate the stored prepared statement.
      */
 
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.