Package javax.jdo

Examples of javax.jdo.JDOFatalDataStoreException


            if (jpe.isFatal())
            {
                //sadly JDOFatalDataStoreException dont allow nested exceptions and failed objects together
                if (jpe.getFailedObject() != null)
                {
                    return new JDOFatalDataStoreException(jpe.getMessage(), jpe.getFailedObject());
                }
                else if (jpe.getNestedExceptions() != null)
                {
                    return new JDOFatalDataStoreException(jpe.getMessage(), jpe.getNestedExceptions());
                }
                else
                {
                    return new JDOFatalDataStoreException(jpe.getMessage(), jpe);
                }
            }
            else
            {
                if (jpe.getNestedExceptions() != null)
                {
                    if (jpe.getFailedObject() != null)
                    {
                        return new JDODataStoreException(jpe.getMessage(), jpe.getNestedExceptions(), jpe.getFailedObject());
                    }
                    return new JDODataStoreException(jpe.getMessage(), jpe.getNestedExceptions());
                }
                else if (jpe.getFailedObject() != null)
                {
                    return new JDODataStoreException(jpe.getMessage(), jpe.getFailedObject());
                }
                else
                {
                    return new JDODataStoreException(jpe.getMessage(), jpe);
                }
            }
        }
        else if (jpe instanceof JPOXObjectNotFoundException)
        {           
            //sadly JDOObjectNotFoundException dont allow nested exceptions and failed objects together
            if (jpe.getFailedObject() != null)
            {
                return new JDOObjectNotFoundException(jpe.getMessage(), jpe.getFailedObject());
            }
            else if (jpe.getNestedExceptions() != null)
            {
                return new JDOObjectNotFoundException(jpe.getMessage(), jpe.getNestedExceptions());
            }
            else
            {
                return new JDOFatalDataStoreException(jpe.getMessage(), jpe);
            }
        }
        else if (jpe instanceof JPOXUserException)
        {
            if (jpe.isFatal())
View Full Code Here


        try {
            driver.rollback();
            //} catch (DriverException e) {
        } catch (Throwable e) {
            e.printStackTrace();
            throw new JDOFatalDataStoreException("Rollback failed", e);
        }
        notifyExit(false);
        reset();
        if (synchronization != null) {
            synchronization.afterCompletion(Status.STATUS_ROLLEDBACK);
View Full Code Here

            e.printStackTrace();
            try {
                rollback();
                throw new JDODataStoreException("Commit failed, rolled back instead", e);
            } catch (JDOFatalDataStoreException e2) {
                throw new JDOFatalDataStoreException("Commit failed, could not rollback", e);
            }
        }
       
        // Tell the contained objects to perform state transitions
        notifyExit(true);
View Full Code Here

    }
    public Class getFatalRuntimeExceptionClass() {
      return JDOFatalException.class;
    }
  public RuntimeException newFatalDataStoreRuntimeException() {
    return new JDOFatalDataStoreException();
  }
View Full Code Here

    }
  public RuntimeException newFatalDataStoreRuntimeException() {
    return new JDOFatalDataStoreException();
  }
  public RuntimeException newFatalDataStoreRuntimeException(String msg, Object failed) {
    return new JDOFatalDataStoreException(msg, failed);
  }
View Full Code Here

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

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

  }
  public RuntimeException newFatalDataStoreRuntimeException(String msg, Throwable nested) {
    return new JDOFatalDataStoreException(msg, nested);
  }
  public RuntimeException newFatalDataStoreRuntimeException(String msg, Throwable[] nested, Object failed) {
    return new JDOFatalDataStoreException(msg, nested);
  }
View Full Code Here

  }
  public RuntimeException newFatalDataStoreRuntimeException(String msg, Throwable[] nested, Object failed) {
    return new JDOFatalDataStoreException(msg, nested);
  }
  public RuntimeException newFatalDataStoreRuntimeException(String msg, Throwable[] nested) {
    return new JDOFatalDataStoreException(msg, nested);
  }
View Full Code Here

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

TOP

Related Classes of javax.jdo.JDOFatalDataStoreException

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.