Examples of JDOFatalDataStoreException


Examples of com.sun.jdo.api.persistence.support.JDOFatalDataStoreException

        if (updateLockRequired) {
            // Check if vendor actually supports updatelock
            if (!vendorType.isUpdateLockSupported() ) {
                // Throw an exception user wanted to have update lock
                // But vendor is not supporting it. Do not allow user to proceed
                throw new JDOFatalDataStoreException(I18NHelper.getMessage(messages,
                        "sqlstore.selectstatement.noupdatelocksupport"));// NOI18N
            }

            // generating the ForUpdate Clause
            String vendorForUpdate = vendorType.getForUpdate().trim();
View Full Code Here

Examples of com.sun.jdo.api.persistence.support.JDOFatalDataStoreException

                ois = new HelperObjectInputStream(bis, cl);
                serializableObject = (Serializable) ois.readObject();
            }
            catch (ClassNotFoundException e)
            {
                throw new JDOFatalDataStoreException(I18NHelper.getMessage(messages,
                        "EXC_CNFReadSerializableObject"), e);// NOI18N
            }
            catch(java.io.IOException e)
            {
                throw new JDOFatalDataStoreException(I18NHelper.getMessage(messages,
                        "EXC_IOReadSerializableObject"), e);// NOI18N
            }
        }
        return serializableObject;
    }
View Full Code Here

Examples of com.sun.jdo.api.persistence.support.JDOFatalDataStoreException

        if (updateLockRequired) {
            // Check if vendor actually supports updatelock
            if (!vendorType.isUpdateLockSupported() ) {
                // Throw an exception user wanted to have update lock
                // But vendor is not supporting it. Do not allow user to proceed
                throw new JDOFatalDataStoreException(I18NHelper.getMessage(messages,
                        "sqlstore.selectstatement.noupdatelocksupport"));// NOI18N
            }

            // generating the ForUpdate Clause
            String vendorForUpdate = vendorType.getForUpdate().trim();
View Full Code Here

Examples of com.sun.jdo.api.persistence.support.JDOFatalDataStoreException

                ois = new HelperObjectInputStream(bis, cl);
                serializableObject = (Serializable) ois.readObject();
            }
            catch (ClassNotFoundException e)
            {
                throw new JDOFatalDataStoreException(I18NHelper.getMessage(messages,
                        "EXC_CNFReadSerializableObject"), e);// NOI18N
            }
            catch(java.io.IOException e)
            {
                throw new JDOFatalDataStoreException(I18NHelper.getMessage(messages,
                        "EXC_IOReadSerializableObject"), e);// NOI18N
            }
        }
        return serializableObject;
    }
View Full Code Here

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

Examples of javax.jdo.JDOFatalDataStoreException

        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

Examples of javax.jdo.JDOFatalDataStoreException

            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

Examples of javax.jdo.JDOFatalDataStoreException

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

Examples of javax.jdo.JDOFatalDataStoreException

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

Examples of javax.jdo.JDOFatalDataStoreException

  }
  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
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.