Examples of invalidateFor()


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

    /* invalidate all SPS's on the table-- bad plan on SPS, so user drops
     * statistics and would want SPS's invalidated so that recompile would
     * give good plans; thats the theory anyways....
     */
    dm.invalidateFor(td, DependencyManager.DROP_STATISTICS, lcc);

    dd.dropStatisticsDescriptors(td.getUUID(), ((cd != null) ? cd.getUUID() :
                   null), tc);
  }
 
View Full Code Here

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

      {
        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

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

     * 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

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

      {
        index++;
        continue;
      }

      dm.invalidateFor(cd, DependencyManager.DROP_CONSTRAINT, lcc);
      cd.drop(lcc, true);
    }

    /*
     ** Referenced keys (unique or pk) constraints only
View Full Code Here

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

        ** it.
        */
        for(int inner = 0; inner < fkcdl.size(); inner++)
        {
          fkcd = (ConstraintDescriptor) fkcdl.elementAt(inner);
          dm.invalidateFor(fkcd, DependencyManager.DROP_CONSTRAINT, lcc);
          fkcd.drop(lcc, true);
          activation.addWarning(
            StandardException.newWarning(SQLState.LANG_CONSTRAINT_DROPPED,
               fkcd.getConstraintName(),
              fkcd.getTableDescriptor().getName()));
View Full Code Here

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

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

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

     * to ensure that any dependent statements get
     * re-compiled.
     */
    if (! forCreateTable)
    {
      dm.invalidateFor(td, DependencyManager.CREATE_CONSTRAINT, lcc);
    }
    if (constraintType == DataDictionary.FOREIGNKEY_CONSTRAINT)
    {
      if (SanityManager.DEBUG)
      {
View Full Code Here

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

          SanityManager.THROWASSERT(
            "conDesc expected to be instance of ForeignKeyConstraintDescriptor, not " +
            conDesc.getClass().getName());
        }
      }
      dm.invalidateFor(
        ((ForeignKeyConstraintDescriptor)conDesc).
          getReferencedConstraint().
            getTableDescriptor(),
        DependencyManager.CREATE_CONSTRAINT, lcc);
    }
View Full Code Here

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

            try {
                if (!inWrite) {
                    dd.startWriting(lcc);
                    inWrite = true;
                }
                dm.invalidateFor(
                        td, DependencyManager.UPDATE_STATISTICS, lcc);
                trace(1, "invalidation completed");
                break;
            } catch (StandardException se) {
                // Special handling when running as background task.
View Full Code Here

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

      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) {
        if (topLevelStandardException == null) {
          // always keep the first exception unchanged
          topLevelStandardException = e;
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.