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


     * 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

      ** We told dropConstraintAndIndex not to
      ** remove our dependencies, so send an invalidate,
      ** and drop the dependencies.
      */
      dm.invalidateFor(conDesc, DependencyManager.DROP_CONSTRAINT, lcc);
      dm.clearDependencies(lcc, conDesc);
    }
  }
}
View Full Code Here

      // If column has a default we drop the default and
      // any dependencies
      if (cd.getDefaultInfo() != null)
      {
        DefaultDescriptor defaultDesc = cd.getDefaultDescriptor(dd);
        dm.clearDependencies(lcc, defaultDesc);
      }
    }

    /* Drop the columns */
    dd.dropAllColumnDescriptors(tableId, tc);
View Full Code Here

      /*
      ** Now that we got rid of the fks (if we were cascading), it is
      ** ok to do an invalidate for.
      */
      dm.invalidateFor(cd, DependencyManager.DROP_CONSTRAINT, lcc);
      dm.clearDependencies(lcc, cd);
    }
  }

}
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

        // 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

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.