Examples of invalidateFor()


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

        case AliasInfo.ALIAS_TYPE_SYNONYM_AS_CHAR:
            invalidationType = DependencyManager.DROP_SYNONYM;
            break;
        }
       
        dm.invalidateFor(this, invalidationType, lcc);
       
        if (getAliasType() == AliasInfo.ALIAS_TYPE_SYNONYM_AS_CHAR)
        {
            SchemaDescriptor sd = dd.getSchemaDescriptor(schemaID, tc);
           
View Full Code Here

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

        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

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

    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

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

    {
        DataDictionary dd = getDataDictionary();
        DependencyManager dm = getDataDictionary().getDependencyManager();
        TransactionController tc = lcc.getTransactionExecute();

        dm.invalidateFor(this, DependencyManager.DROP_TRIGGER, lcc);

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

        // Clear the dependencies for the trigger
View Full Code Here

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

        // Drop the spses
        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)
        {  
View Full Code Here

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

        dd.dropSPSDescriptor(spsd, tc);
       
        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

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

      /* Prepare all dependents to invalidate.  (This is there chance
       * to say that they can't be invalidated.  For example, an open
       * cursor referencing a table/view that the user is attempting to
       * drop.) If no one objects, then invalidate any dependent objects.
       */
      dm.invalidateFor(this, DependencyManager.DROP_SCHEMA, lcc);
     
      dd.dropSchemaDescriptor(getSchemaName(), tc);
     
      /*
       ** If we have dropped the current default schema,
View Full Code Here

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

        DependencyManager dm = dd.getDependencyManager();
        TransactionController tc = lcc.getTransactionExecute();
       
        // invalidate any prepared statements that
        // depended on the index (including this one)
        dm.invalidateFor(this, DependencyManager.DROP_INDEX, lcc);
     
        // only drop the conglomerate if no similar index but with different
      // name. Get from dd in case we drop other dup indexes with a cascade operation     
      if (dd.getConglomerateDescriptors(getConglomerateNumber()).length == 1)
      {
View Full Code Here

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

    /* Prepare all dependents to invalidate.  (This is there chance
     * to say that they can't be invalidated.  For example, an open
     * cursor referencing a table/view that the user is attempting to
     * drop.) If no one objects, then invalidate any dependent objects.
     */
    dm.invalidateFor(td, DependencyManager.DROP_VIEW, lcc);

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

    /* Drop the view */
 
View Full Code Here

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

                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)
            {
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.