Package org.objectweb.medor.eval.prefetch.api

Examples of org.objectweb.medor.eval.prefetch.api.IntermediaryPrefetchBuffer


        pnIndex,
        pm.getMultithreaded(),
        !isPolymorphic);
      //if the class is polymorphic, register an intermediary prefetch buffer
      if (isPolymorphic) {
        IntermediaryPrefetchBuffer ipb = new IntermediaryPrefetchBufferImpl(
                      prefetchBuffer,
                      pcm.getIndexesTable(pcm));
        if (!pcm.getPMapper().getPrefetchCache().registerPrefetchBuffer(
            ipb, pcm, pm.currentTransaction())) {
          throw new MedorException("No prefetch buffer registered for the pcm " + pcm.getClassName() + ".");
        }
        //register the prefetch buffer for all the subclasses
        try{
          //get the list of all the sub pclassmappings
          PClassMapping[] subPCMs = pcm.getSubPCMs();
          if (subPCMs != null) {
            for (int i = 0; i < subPCMs.length; i++) {
              //create an intermediary prefetchBuffer that has the prefetchBuffer
              //of the superclass as delegate prefetch buffer
              //and the association table for the pcm of the superclass
              IntermediaryPrefetchBuffer intermediaryPb = new IntermediaryPrefetchBufferImpl(
                                  prefetchBuffer,
                                  subPCMs[i].getIndexesTable(pcm));
              if (!subPCMs[i].getPMapper().getPrefetchCache().registerPrefetchBuffer(
                  intermediaryPb, subPCMs[i], pm.currentTransaction())) {
                throw new MedorException("No prefetch buffer registered for the pcm " + subPCMs[i].getClassName() + ".");
View Full Code Here

TOP

Related Classes of org.objectweb.medor.eval.prefetch.api.IntermediaryPrefetchBuffer

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.