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

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


    try {
   
      notifyLoader(false);
      dd.invalidateAllSPSPlans();
      DependencyManager dm = dd.getDependencyManager();
      dm.invalidateFor(fid, DependencyManager.DROP_JAR, lcc);

      dd.dropFileInfoDescriptor(fid);

      fr.remove(JarDDL.mkExternalName(schemaName, sqlName, fr.getSeparatorChar()),
        fid.getGenerationId(), true /*purgeOnCommit*/);
 
View Full Code Here


        if (valid == true)
        {
          valid = false;
          updateSYSSTATEMENTS(lcc, INVALIDATE, null);
        }
        dm.invalidateFor(this, dm.USER_RECOMPILE_REQUEST, lcc);
        break;
      case DependencyManager.DROP_SPS:
        //System.out.println("SPSD " + preparedStatement);
        dm.clearDependencies(lcc, this);
        break;
View Full Code Here

    switch (action)
    {
      // invalidate this trigger descriptor
      case DependencyManager.USER_RECOMPILE_REQUEST:
        DependencyManager dm = getDataDictionary().getDependencyManager();
        dm.invalidateFor(this, DependencyManager.PREPARED_STATEMENT_RELEASE, lcc);
        break;

      // When REVOKE_PRIVILEGE gets sent (this happens for privilege
      // types SELECT, UPDATE, DELETE, INSERT, REFERENCES, TRIGGER), we 
      // make the TriggerDescriptor drop itself.
View Full Code Here

      try {
        TempTableInfo tempTableInfo = (TempTableInfo)allDeclaredGlobalTempTables.get(i);
        TableDescriptor td = tempTableInfo.getTableDescriptor();
        //the following 2 lines of code has been copied from DropTableConstantAction. If there are any changes made there in future,
        //we should check if they need to be made here too.
        dm.invalidateFor(td, DependencyManager.DROP_TABLE, this);
        tran.dropConglomerate(td.getHeapConglomerateId());
      } catch (StandardException e) {
        e.setNestedException(topLevelStandardException);
        topLevelStandardException = e;
      }
View Full Code Here

    ** to make sure that DML statements on this table
    ** will be recompiled.  Do this before we create
    ** our trigger spses lest we invalidate them just
    ** after creating them.
    */
    dm.invalidateFor(triggerTable, DependencyManager.CREATE_TRIGGER, lcc);

    /*
    ** Lets get our trigger id up front, we'll use it when
     ** we create our spses.
    */
 
View Full Code Here

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

      if (!alreadyInvalid)
      {
        dm.invalidateFor(this, action, lcc);
      }

      /* Clear out the old dependencies on this statement as we
       * will build the new set during the reprepare in makeValid().
       */
 
View Full Code Here

      {
        throw StandardException.newException(SQLState.LANG_TABLE_NOT_FOUND_DURING_EXECUTION, fullTableName);
      }

      if (td.getTableType() ==  TableDescriptor.GLOBAL_TEMPORARY_TABLE_TYPE) {
        dm.invalidateFor(td, DependencyManager.DROP_TABLE, lcc);
        tc.dropConglomerate(td.getHeapConglomerateId());
        lcc.dropDeclaredGlobalTempTable(tableName);
        return;
      }
    }
View Full Code Here

     * We check for invalidation before we drop the table descriptor
     * since the table descriptor may be looked up as part of
     * decoding tuples in SYSDEPENDS.
     */

    dm.invalidateFor(td, DependencyManager.DROP_TABLE, lcc);

    /* Drop the table */
    dd.dropTableDescriptor(td, sd, tc);

    /* Drop the conglomerate descriptors */
 
View Full Code Here

      {
        index++;
        continue;
      }

      dm.invalidateFor(cd, DependencyManager.DROP_CONSTRAINT, lcc);
      DropConstraintConstantAction.dropConstraintAndIndex(dm, td, dd, cd,
            tc, lcc, true);
    }

    /*
 
View Full Code Here

        ** it.
        */
        for(int inner = 0; inner < fkcdl.size(); inner++)
        {
          fkcd = (ConstraintDescriptor) fkcdl.elementAt(inner);
          dm.invalidateFor(fkcd, DependencyManager.DROP_CONSTRAINT, lcc);
          DropConstraintConstantAction.dropConstraintAndIndex(
              dm, fkcd.getTableDescriptor(), dd, fkcd,
              tc, lcc, true);
          activation.addWarning(
            StandardException.newWarning(SQLState.LANG_CONSTRAINT_DROPPED,
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.