public OptimisticException(Object failed) { this(_loc.get("opt-lock", Exceptions.toString(failed))); setFailedObject(failed); }
public OptimisticException(Object failed) { this(_loc.get("opt-lock", Exceptions.toString(failed))); setFailedObject(failed); }
public OptimisticException(Object failed) { this(_loc.get("opt-lock", Exceptions.toString(failed))); setFailedObject(failed); }
public OptimisticException(Object failed) { this(_loc.get("opt-lock", Exceptions.toString(failed))); setFailedObject(failed); }
public OptimisticException(Object failed) { this(_loc.get("opt-lock", Exceptions.toString(failed))); setFailedObject(failed); }
protected void optimisticLockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata, boolean postLockVersionCheck) { super.optimisticLockInternal(sm, level, timeout, sdata, postLockVersionCheck); if (postLockVersionCheck) { if (level >= MixedLockLevels.LOCK_PESSIMISTIC_READ) { ClassMapping mapping = (ClassMapping) sm.getMetaData(); try { if (!mapping.getVersion().checkVersion(sm, this.getStore(), false)) { throw (new OptimisticException(_loc.get( "optimistic-violation-lock").getMessage())) .setFailedObject(sm.getObjectId()); } } catch (SQLException se) { throw SQLExceptions.getStore(se, sm.getObjectId(), getStore().getDBDictionary()); } } } }
protected void optimisticLockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata, boolean postLockVersionCheck) { super.optimisticLockInternal(sm, level, timeout, sdata, postLockVersionCheck); if (postLockVersionCheck) { if (level >= MixedLockLevels.LOCK_PESSIMISTIC_READ) { ClassMapping mapping = (ClassMapping) sm.getMetaData(); try { if (!mapping.getVersion().checkVersion(sm, this.getStore(), false)) { throw (new OptimisticException(_loc.get( "optimistic-violation-lock").getMessage())) .setFailedObject(sm.getObjectId()); } } catch (SQLException se) { throw SQLExceptions.getStore(se, sm.getObjectId(), getStore().getDBDictionary()); } } } }
protected void optimisticLockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata, boolean postLockVersionCheck) { super.optimisticLockInternal(sm, level, timeout, sdata, postLockVersionCheck); if (postLockVersionCheck) { if (level >= MixedLockLevels.LOCK_PESSIMISTIC_READ) { ClassMapping mapping = (ClassMapping) sm.getMetaData(); try { if (!mapping.getVersion().checkVersion(sm, this.getStore(), false)) { throw (new OptimisticException(_loc.get( "optimistic-violation-lock").getMessage())) .setFailedObject(sm.getObjectId()); } } catch (SQLException se) { throw SQLExceptions.getStore(se, sm.getObjectId(), getStore().getDBDictionary()); } } } }
protected void optimisticLockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata, boolean postLockVersionCheck) { super.optimisticLockInternal(sm, level, timeout, sdata, postLockVersionCheck); if (postLockVersionCheck) { if (level >= MixedLockLevels.LOCK_PESSIMISTIC_READ) { ClassMapping mapping = (ClassMapping) sm.getMetaData(); try { if (!mapping.getVersion().checkVersion(sm, this.getStore(), false)) { throw (new OptimisticException(_loc.get( "optimistic-violation-lock").getMessage())) .setFailedObject(sm.getObjectId()); } } catch (SQLException se) { throw SQLExceptions.getStore(se, sm.getObjectId(), getStore().getDBDictionary()); } } } }
throw new OptimisticException(_loc.get("attach-deleted", ImplHelper.getManagedInstance(pc).getClass(), id)) .setFailedObject(id);
throw new OptimisticException(_loc.get("attach-deleted", ImplHelper.getManagedInstance(pc).getClass(), id)) .setFailedObject(id);
throw new OptimisticException(_loc.get("attach-deleted", ImplHelper.getManagedInstance(pc).getClass(), id)) .setFailedObject(id);
throw new OptimisticException(_loc.get("attach-deleted", ImplHelper.getManagedInstance(pc).getClass(), id)) .setFailedObject(id);
throw new OptimisticException(_loc.get("attach-deleted", ImplHelper.getManagedInstance(pc).getClass(), id)) .setFailedObject(id);
throw new OptimisticException(_loc.get("attach-version-del", ImplHelper.getManagedInstance(pc).getClass(), id, version)) .setFailedObject(toAttach);
throw new OptimisticException(_loc.get("attach-version-del", ImplHelper.getManagedInstance(pc).getClass(), id, version)) .setFailedObject(toAttach);
throw new OptimisticException(_loc.get("attach-version-del", ImplHelper.getManagedInstance(pc).getClass(), id, version)) .setFailedObject(toAttach);
throw new OptimisticException(_loc.get("attach-version-del", ImplHelper.getManagedInstance(pc).getClass(), id, version)) .setFailedObject(toAttach);
throw new OptimisticException(_loc.get("attach-version-del", ImplHelper.getManagedInstance(pc).getClass(), id, version)) .setFailedObject(toAttach);