Package org.objectweb.speedo.api

Examples of org.objectweb.speedo.api.SpeedoRuntimeException


                idx ++;
            }
        }
        for (int i = 0; i < newArray.length; i++) {
            if (newArray[i] == null) {
                throw new SpeedoRuntimeException("a null element found: " + i);
            }
        }
        return newArray;
    }
View Full Code Here


        if (pc != null) {
            pc.invalidatePrefetchBuffer(thisT);
        }
        logger.log(BasicLevel.DEBUG, "Ending beforeWSPrepare");
        if (exceptions != null) {
            throw new PersistenceException(new SpeedoRuntimeException(
                    "Impossible to prepare instances before flushing",
                    (Exception[]) exceptions.toArray(
                            new Exception[exceptions.size()])));
        }
    }
View Full Code Here

        if (txListener != null) {
            txListener.transactionPreValidate(this, oid2state.size());
        }
        logger.log(BasicLevel.DEBUG, "Ending onWSEnd");
        if (exceptions != null) {
            throw new SpeedoRuntimeException(
                    "Error when signal the close of working set on states:",
                    (Exception[]) exceptions.toArray(new Exception[exceptions.size()]));
        }
    }
View Full Code Here

            mapper = (PMapper) s;
        else if (COMPONENT_BINDING.equals(c)) {
            try {
                thisT = (TransactionItf) ((Component) s).getFcInterface("transaction");
            } catch (Exception e) {
                throw new SpeedoRuntimeException(
                        "Impossible to get self transaction",
                        ExceptionHelper.getNested(e));
            }
        } else
            super.bindFc(c, s);
View Full Code Here

            tpm.begin(thisT);
        } catch (PersistenceException e) {
            Exception ie = ExceptionHelper.getNested(e);
            logger.log(BasicLevel.ERROR,
                    "Error during the begin of the transaction:", ie);
            throw new SpeedoRuntimeException("", ie);
        }
        if (txListener != null) {
            txListener.transactionBegun(this);
        }
  }
View Full Code Here

        } catch (PersistenceException e) {
            Exception ie = ExceptionHelper.getNested(e);
            if (ie instanceof RuntimeException) {
                throw (RuntimeException) ie;
            } else {
                ie = new SpeedoRuntimeException(
                    "JDOTransactionItf rolledback due to an exception at commit time: ", ie);
                logger.log(BasicLevel.INFO, ie.getMessage(), ie);
                throw (SpeedoRuntimeException) ie;
            }
        } finally {
View Full Code Here

            tpm.rollback(thisT);
        } catch (PersistenceException e) {
            Exception ie = ExceptionHelper.getNested(e);
            logger.log(BasicLevel.ERROR,
                    "Error during the rollback of the transaction:", ie);
            throw new SpeedoRuntimeException("", ie);
        } finally {
            if (txListener != null) {
                txListener.transactionAborted(this, size);
            }
            if (synchronization != null) {
View Full Code Here

          listeners.add(l);
    }
    }

    public void speedoAdd(Object elem, int gcFieldNumber) {
    throw new SpeedoRuntimeException("Not supported in tuple class");
    }
View Full Code Here

                if (parameterValues instanceof Map) {
                    toRemoved = (Collection) qc.execute((Map) parameterValues, pm, this);
            } else if (parameterValues.getClass().isArray()) {
                    toRemoved = (Collection) qc.execute((Object[]) parameterValues, pm, this);
            } else {
              throw new SpeedoRuntimeException("Bad state: no param specified in query");
            }
                for (Iterator it = toRemoved.iterator(); it.hasNext();) {
                    Object o = it.next();
                    if (o instanceof PersistentObjectItf) {
                        pm.speedoDeletePersistent(o);
View Full Code Here

      sc.listenerClassName = null;
      sc.callbackName = null;
      sc.methodByteCodeSignature = null;
      sc.callbackType = -1;
    } else {
      throw new SpeedoRuntimeException("Unknown meta-info element to initialize: " +
          se.getClass().getName());
    }
  }
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.api.SpeedoRuntimeException

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.