public boolean checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws SQLException { return vers.getClassMapping().getPCSuperclassMapping().getVersion(). checkVersion(sm, store, updateVersion); }
public boolean checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws SQLException { return vers.getClassMapping().getPCSuperclassMapping().getVersion(). checkVersion(sm, store, updateVersion); }
public boolean checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws SQLException { return vers.getClassMapping().getPCSuperclassMapping().getVersion(). checkVersion(sm, store, updateVersion); }
public boolean syncVersion(OpenJPAStateManager sm, Object context) { ClassMapping mapping = (ClassMapping) sm.getMetaData(); try { return mapping.getVersion().checkVersion(sm, this, true); } catch (SQLException se) { throw SQLExceptions.getStore(se, _dict); } }
public boolean checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws SQLException { return vers.getClassMapping().getPCSuperclassMapping().getVersion(). checkVersion(sm, store, updateVersion); }
public boolean checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws SQLException { return vers.getClassMapping().getPCSuperclassMapping().getVersion(). checkVersion(sm, store, updateVersion); }
public boolean syncVersion(OpenJPAStateManager sm, Object context) { ClassMapping mapping = (ClassMapping) sm.getMetaData(); try { return mapping.getVersion().checkVersion(sm, this, true); } catch (SQLException se) { throw SQLExceptions.getStore(se, _dict, getReadLockLevel()); } }
public boolean syncVersion(OpenJPAStateManager sm, Object context) { ClassMapping mapping = (ClassMapping) sm.getMetaData(); try { return mapping.getVersion().checkVersion(sm, this, true); } catch (SQLException se) { throw SQLExceptions.getStore(se, _dict, getReadLockLevel()); } }
public boolean syncVersion(OpenJPAStateManager sm, Object context) { ClassMapping mapping = (ClassMapping) sm.getMetaData(); try { return mapping.getVersion().checkVersion(sm, this, true); } catch (SQLException se) { throw SQLExceptions.getStore(se, _dict, getReadLockLevel()); } }
public boolean syncVersion(OpenJPAStateManager sm, Object context) { ClassMapping mapping = (ClassMapping) sm.getMetaData(); try { return mapping.getVersion().checkVersion(sm, this, true); } catch (SQLException se) { throw SQLExceptions.getStore(se, _dict, getReadLockLevel()); } }
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()); } } } }
} else if (sm.isVersionCheckRequired()) { if (!((ClassMapping) sm.getMetaData()).getVersion(). checkVersion(sm, store, false)) exceps = addException(exceps, new OptimisticException(sm. getManagedInstance()));
} else if (sm.isVersionCheckRequired()) { if (!((ClassMapping) sm.getMetaData()).getVersion(). checkVersion(sm, store, false)) exceps = addException(exceps, new OptimisticException(sm. getManagedInstance()));
} else if (sm.isVersionCheckRequired()) { if (!((ClassMapping) sm.getMetaData()).getVersion(). checkVersion(sm, store, false)) exceps = addException(exceps, new OptimisticException(sm. getManagedInstance()));
} else if (sm.isVersionCheckRequired()) { if (!((ClassMapping) sm.getMetaData()).getVersion(). checkVersion(sm, store, false)) exceps = addException(exceps, new OptimisticException(sm. getManagedInstance()));
} else if (sm.isVersionCheckRequired()) { if (!((ClassMapping) sm.getMetaData()).getVersion(). checkVersion(sm, store, false)) exceps = addException(exceps, new OptimisticException(sm. getManagedInstance()));