Examples of clearDependencies()


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

      /*
      ** 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.clearDependencies()

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

    // need to deal with triggers if has referencedColumns
    GenericDescriptorList tdl = dd.getTriggerDescriptors(td);
View Full Code Here

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

                            fkcd.getTableDescriptor().getName()));
        }
      }

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

        /*
         * The work we've done above, specifically the possible
         * dropping of primary key, foreign key, and unique constraints
View Full Code Here

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

   
      dm.invalidateFor(defaultDescriptor, DependencyManager.MODIFY_COLUMN_DEFAULT, lcc);
   
      // Drop any dependencies
      dm.clearDependencies(lcc, defaultDescriptor);
    }

    UUID defaultUUID = columnInfo[ix].newDefaultUUID;

    /* Generate a UUID for the default, if one exists
View Full Code Here

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

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

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

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

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

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

    // need to deal with triggers if has referencedColumns
    GenericDescriptorList tdl = dd.getTriggerDescriptors(td);
View Full Code Here

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

                            fkcd.getTableDescriptor().getName()));
        }
      }

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

    /* If there are new backing conglomerates which must be
     * created to replace a dropped shared conglomerate
     * (where the shared conglomerate was dropped as part
View Full Code Here

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

   
      dm.invalidateFor(defaultDescriptor, DependencyManager.MODIFY_COLUMN_DEFAULT, lcc);
   
      // Drop any dependencies
      dm.clearDependencies(lcc, defaultDescriptor);
    }

    UUID defaultUUID = columnInfo[ix].newDefaultUUID;

    /* Generate a UUID for the default, if one exists
View Full Code Here

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