Package org.jpox.exceptions

Examples of org.jpox.exceptions.JPOXOptimisticException


                    tx.flush();
                }
                if (optimisticFailures != null)
                {
                    // Throw a single JPOXOptimisticException containing all optimistic failures
                    throw new JPOXOptimisticException(LOCALISER.msg("010031"),
                        (Throwable[])optimisticFailures.toArray(new Throwable[optimisticFailures.size()]));
                }
            }
            finally
            {
View Full Code Here


        if (!valid)
        {
            String msg = LOCALISER.msg("032016",
                StringUtils.toJVMIDString(sm.getObject()), sm.getInternalObjectId(), "" + versionDatastore, "" + versionObject);
            JPOXLogger.PERSISTENCE.error(msg);
            throw new JPOXOptimisticException(msg, sm.getObject());
        }
    }
View Full Code Here

                            // TODO Batching : when we use batching here we need to process these somehow
                            String msg = LOCALISER.msg("052203",
                                StringUtils.toJVMIDString(sm.getObject()), sm.getInternalObjectId(),
                                "" + sm.getTransactionalVersion(sm.getObject()));
                            JPOXLogger.PERSISTENCE.error(msg);
                            throw new JPOXOptimisticException(msg, sm.getObject());
                        }
                    }
                    finally
                    {
                        sqlControl.closeStatement(mconn, ps);
View Full Code Here

                        // No object deleted so either object disappeared or failed optimistic version checks
                        String msg = LOCALISER.msg("052203",
                            StringUtils.toJVMIDString(sm.getObject()), sm.getInternalObjectId(),
                            "" + sm.getTransactionalVersion(sm.getObject()));
                        JPOXLogger.DATASTORE.error(msg);
                        throw new JPOXOptimisticException(msg, sm.getObject());
                    }
                }
                finally
                {
                    sqlControl.closeStatement(mconn, ps);
View Full Code Here

TOP

Related Classes of org.jpox.exceptions.JPOXOptimisticException

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.