Examples of MedorException


Examples of org.objectweb.medor.api.MedorException

                logger.log(BasicLevel.DEBUG, "Query optimized");
                QueryTreePrinter.printQueryTree(optimizedQT, logger);
            }
            optimizedQT = indexesGenerator.transform(optimizedQT);
        } catch (Exception e) {
            throw new MedorException("Impossible to optimize the query", e);
        }

        pncParams = JormQueryTreeHelper.getRequiredPNameManagers(optimizedQT);
        for (Iterator it = pncParams.iterator(); it.hasNext();) {
            ParameterOperand po = (ParameterOperand) it.next();
View Full Code Here

Examples of org.objectweb.medor.api.MedorException

        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() + ".");
              }
            }
          }
        }
        catch(Exception e){
          throw new MedorException("Error while trying to register the prefetchBuffer with the subclasses. ", e);
        }
      }
    }
    // Launching Medor Evaluator...
    if (sqc.getLogger().isLoggable(BasicLevel.DEBUG)) {
View Full Code Here

Examples of org.objectweb.medor.api.MedorException

    }
  }

  public Tuple getTuple() throws MedorException {
    if (currentTC == null) {
      throw new MedorException("No more result");
    }
    return currentTC.getTuple();
  }
View Full Code Here

Examples of org.objectweb.medor.api.MedorException

  public TupleStructure getMetaData() throws MedorException {
    return currentTC.getMetaData();
  }

  public boolean isLast() throws MedorException {
    throw new MedorException("IsLast not yet suuported");
  }
View Full Code Here

Examples of org.objectweb.medor.api.MedorException

  public boolean isLast() throws MedorException {
    throw new MedorException("IsLast not yet suuported");
  }

  public Tuple getTuple(int row) throws MedorException {
    throw new MedorException("getTuple(int) not yet suuported");
  }
View Full Code Here

Examples of org.objectweb.medor.api.MedorException

  public Tuple getTuple(int row) throws MedorException {
    throw new MedorException("getTuple(int) not yet suuported");
  }

  public boolean row(int row) throws MedorException {
    throw new MedorException("row(int) not yet suuported");
  }
View Full Code Here

Examples of org.objectweb.medor.api.MedorException

  public boolean row(int row) throws MedorException {
    throw new MedorException("row(int) not yet suuported");
  }
  public int getRow() throws MedorException {
    throw new MedorException("getRow not yet suuported");
  }
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.