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

Examples of org.apache.derby.iapi.sql.depend.Provider


            for ( int px = 0; px < providerCount; px++ )
            {
                ProviderInfo            pi = providers[ px ];
                DependableFinder    finder = pi.getDependableFinder();
                UUID                        providerID = pi.getObjectId();
                Provider                    provider = (Provider) finder.getDependable( dd, providerID );

                dm.addDependency( defDesc, provider, cm );
            }   // end loop through providers
        }
    }
View Full Code Here


    this.descriptorList = new ArrayList<Provider>();
         
    int siz = pis.length;
    for (int i=0; i < siz; i++)
    {
        Provider provider = (Provider) pis[i].getDependableFinder().getDependable(dd, pis[i].getObjectId());
             
        if (provider instanceof TableDescriptor ||
          provider instanceof ViewDescriptor ||
          provider instanceof AliasDescriptor)
        {
View Full Code Here

    ** We make 2 passes - the first to count the number of persistent
     ** providers and the second to populate the array of ProviderInfos.
    */
    while (e != null && e.hasMoreElements())
    {
      Provider prov = (Provider) e.nextElement();

      if (prov.isPersistent())
      {
        numProviders++;
      }
    }

    e = pl.elements();
    retval = new ProviderInfo[numProviders];
    int piCtr = 0;
    while (e != null && e.hasMoreElements())
    {
      Provider prov = (Provider) e.nextElement();

      if (prov.isPersistent())
      {
        retval[piCtr++] = new BasicProviderInfo(
                  prov.getObjectID(),
                  prov.getDependableFinder(),
                  prov.getObjectName()
                  );
      }
    }

    return retval;
View Full Code Here

          throws StandardException
  {
    Enumeration e = pl.elements();
    while (e.hasMoreElements())
    {
      Provider pro = (Provider) e.nextElement();
      if (pro instanceof TableDescriptor)
        ((TableDescriptor) pro).setReferencedColumnMap(null);
    }
  }
View Full Code Here

  {

    List list = getProviders(copy_From);
        Iterator depsIter = list.iterator();
        while (depsIter.hasNext()) {
            Provider provider = (Provider)depsIter.next();
      if (!persistentOnly || provider.isPersistent())
      {
        this.addDependency(copyTo, provider, cm, tc);
      }
    }
  }
View Full Code Here

       * so that the call gets an enumerations of Dependencys.
       */
            for (DependencyDescriptor depDesc : storedList)
      {
        Dependent       tempD;
        Provider        tempP;
                DependableFinder    finder = depDesc.getDependentFinder();
                tempD = (Dependent) finder.getDependable(dd, depDesc.getUUID());

                if (providerForList != null)
                {
                    // Use the provider being passed in.
                    tempP = providerForList;

                    // Sanity check the object identifiers match.
                    if (SanityManager.DEBUG) {
                        if (!tempP.getObjectID().equals(depDesc.getProviderID()))
                        {
                            SanityManager.THROWASSERT("mismatch providers");
                        }
                    }
                }
View Full Code Here

    dm.addDependency(triggerd, triggerTable, lcc.getContextManager());

        // Make the TriggerDescriptor dependent on all objects referenced
        // from the triggered statement or the WHEN clause.
        for (ProviderInfo info : providerInfo) {
            Provider provider = (Provider) info.getDependableFinder()
                    .getDependable(dd, info.getObjectId());
            dm.addDependency(triggerd, provider, lcc.getContextManager());
        }

    //store trigger's dependency on various privileges in the dependeny system
View Full Code Here

                    compSchemaId);

    for (int ix = 0; ix < providerInfo.length; ix++)
    {
      /* We should always be able to find the Provider */
        Provider provider = (Provider) providerInfo[ix].
                    getDependableFinder().
                      getDependable(dd,
                        providerInfo[ix].getObjectId());
        dm.addDependency(vd, provider, lcc.getContextManager());
    }
View Full Code Here

            for ( int px = 0; px < providerCount; px++ )
            {
                ProviderInfo            pi = providers[ px ];
                DependableFinder    finder = pi.getDependableFinder();
                UUID                        providerID = pi.getObjectId();
                Provider                    provider = (Provider) finder.getDependable( dd, providerID );

                dm.addDependency( defDesc, provider, cm );
            }   // end loop through providers
        }
    }
View Full Code Here

    /* Create stored dependencies for each provider */
    if (providerInfo != null)
    {
      for (int ix = 0; ix < providerInfo.length; ix++)
      {
        Provider provider = null;
 
        /* We should always be able to find the Provider */
          provider = (Provider) providerInfo[ix].
                      getDependableFinder().
                        getDependable(dd,
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.depend.Provider

Copyright © 2018 www.massapicom. 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.