Package javax.jdo

Examples of javax.jdo.JDODataStoreException


            pm.open(cs);
            bindPM2Thread(pm);
            pm.addUse();
            return pm;
        } catch (Exception e) {
            throw new JDODataStoreException(
                    "Cannot provides a PersistenceManager ", new Exception[]{e});
        }
    }
View Full Code Here


  }
  public RuntimeException newFatalDataStoreRuntimeException(Throwable nested) {
    return new JDOFatalDataStoreException("", nested);
  }
  public RuntimeException newDataStoreRuntimeException(String msg) {
    return new JDODataStoreException(msg);
  }
View Full Code Here

  }
  public RuntimeException newDataStoreRuntimeException(String msg) {
    return new JDODataStoreException(msg);
  }
  public RuntimeException newDataStoreRuntimeException(String msg, Throwable nested) {
    return new JDODataStoreException(msg, nested);
  }
View Full Code Here

        started = true;
    }
   
    protected POManagerFactoryItf getThis() {
        if (_this == null) {
            throw new JDODataStoreException(
                    "Cannot provides a PersistenceManager without a reference to the component");
        } else if (_this instanceof Component) {
            try {
                _this = ((Component)_this).getFcInterface("po-manager-factory");
            } catch (NoSuchInterfaceException e) {
                throw new JDODataStoreException(
                        "Cannot provides a PersistenceManager ", new Exception[]{e});
            }
        }
        return (POManagerFactoryItf) _this;
    }
View Full Code Here

                return new DSConnectionFilter(
                        tx.getConnectionHolder().getCHConnectionForWrite(),
                        false);
            }
        } catch(PersistenceException e) {
            throw new JDODataStoreException("Impossible to allocate a native connection:", e);
        }
    }
View Full Code Here

    }
    public void flush() {
        try {
          speedoFlush();
        } catch (PersistenceException e) {
            throw new JDODataStoreException("Impossible to flush the working set");
        }
    }
View Full Code Here

                    logger.log(BasicLevel.WARN, "Error during unbinding:", e1);
                }
                if (e instanceof RolledBackPersistenceException) {
                    throw ((JDOTransactionItf) tx).rollBackOnInternalError(e);
                } else {
                    throw new JDODataStoreException(
                        "Problem while making persistent.",
                        new Exception[]{ExceptionHelper.getNested(e)});
                }
            }
        }
View Full Code Here

        if(!sa.hasBeenFlush()){
          //flush
          tpm.flush(tx, sa);
        }
      } catch (Exception e) {
        throw new JDODataStoreException(
        "Problem while flushing a persistent object in order to detach a copy.",
        new Exception[]{ExceptionHelper.getNested(e)});
      }
    }
    //the core processing
View Full Code Here

    }

    try {
      createTemplate().execute(new JdoCallback() {
        public Object doInJdo(PersistenceManager pm) {
          throw new JDODataStoreException();
        }
      });
      fail("Should have thrown JdoResourceFailureException");
    }
    catch (JdoResourceFailureException ex) {
View Full Code Here

    private void assertNotRollbackOnly()
    {
        if (rollbackOnlyFlag)
        {
            throw new JDODataStoreException("Rollback Only !");
        }
    }
View Full Code Here

TOP

Related Classes of javax.jdo.JDODataStoreException

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.