/** * Return whether to use a transactional state. */ private boolean useTransactionalState(FetchConfiguration fetch) { return (_flags & FLAG_ACTIVE) != 0 && (!_optimistic || _autoClear == CLEAR_ALL || fetch.getReadLockLevel() != LOCK_NONE); }
/** * Return whether to use a transactional state. */ private boolean useTransactionalState(FetchConfiguration fetch) { return (_flags & FLAG_ACTIVE) != 0 && (!_optimistic || _autoClear == CLEAR_ALL || fetch.getReadLockLevel() != LOCK_NONE); }
/** * Return whether to use a transactional state. */ private boolean useTransactionalState(FetchConfiguration fetch) { return (_flags & FLAG_ACTIVE) != 0 && (!_optimistic || _autoClear == CLEAR_ALL || fetch.getReadLockLevel() != LOCK_NONE); }
/** * Return whether to use a transactional state. */ private boolean useTransactionalState(FetchConfiguration fetch) { return (_flags & FLAG_ACTIVE) != 0 && (!_optimistic || _autoClear == CLEAR_ALL || fetch.getReadLockLevel() != LOCK_NONE); }
/** * Return whether to use a transactional state. */ private boolean useTransactionalState(FetchConfiguration fetch) { return (_flags & FLAG_ACTIVE) != 0 && (!_optimistic || _autoClear == CLEAR_ALL || fetch.getReadLockLevel() != LOCK_NONE); }
public int getReadLockLevel() { try { return _fetch.getReadLockLevel(); } catch (RuntimeException re) { throw translate(re); } }
public int getReadLockLevel() { try { return _fetch.getReadLockLevel(); } catch (RuntimeException re) { throw translate(re); } }
/** * Return whether the context is locking loaded data. */ private boolean isLocking(FetchConfiguration fetch) { if (fetch == null) fetch = _ctx.getFetchConfiguration(); return fetch.getReadLockLevel() > LockLevels.LOCK_NONE; }
public int getReadLockLevel() { try { return _fetch.getReadLockLevel(); } catch (RuntimeException re) { throw translate(re); } }
/** * Return whether the context is locking loaded data. */ private boolean isLocking(FetchConfiguration fetch) { if (fetch == null) fetch = _ctx.getFetchConfiguration(); return fetch.getReadLockLevel() > LockLevels.LOCK_NONE; }
public int getReadLockLevel() { try { return _fetch.getReadLockLevel(); } catch (RuntimeException re) { throw translate(re); } }
/** * Return whether the context is locking loaded data. */ private boolean isLocking(FetchConfiguration fetch) { if (fetch == null) fetch = _ctx.getFetchConfiguration(); return fetch.getReadLockLevel() > LockLevels.LOCK_NONE; }
/** * Return whether the context is locking loaded data. */ private boolean isLocking(FetchConfiguration fetch) { if (fetch == null) fetch = _ctx.getFetchConfiguration(); return fetch.getReadLockLevel() > LockLevels.LOCK_NONE; }
/** * Return whether the context is locking loaded data. */ private boolean isLocking(FetchConfiguration fetch) { if (fetch == null) fetch = _ctx.getFetchConfiguration(); return fetch.getReadLockLevel() > LockLevels.LOCK_NONE; }
public int getReadLockLevel() { try { return _fetch.getReadLockLevel(); } catch (RuntimeException re) { throw translate(re); } }
/** * Return the lock level to use when loading state. */ private int calculateLockLevel(boolean active, boolean forWrite, FetchConfiguration fetch) { if (!active) return LockLevels.LOCK_NONE; if (fetch == null) fetch = _broker.getFetchConfiguration(); if (_readLockLevel == -1 || _readLockLevel < fetch.getReadLockLevel()) _readLockLevel = fetch.getReadLockLevel(); if (_writeLockLevel == -1 || _writeLockLevel < fetch.getWriteLockLevel()) _writeLockLevel = fetch.getWriteLockLevel(); return (forWrite) ? _writeLockLevel : _readLockLevel; }
public boolean initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object context) { ConnectionInfo info = (ConnectionInfo) context; try { return initializeState(sm, state, (JDBCFetchConfiguration) fetch, info); } catch (ClassNotFoundException cnfe) { throw new UserException(cnfe); } catch (SQLException se) { throw SQLExceptions.getStore(se, Exceptions.toString(sm.getPersistenceCapable()), _dict, fetch.getReadLockLevel()); } }
public boolean initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object context) { ConnectionInfo info = (ConnectionInfo) context; try { return initializeState(sm, state, (JDBCFetchConfiguration) fetch, info); } catch (ClassNotFoundException cnfe) { throw new UserException(cnfe); } catch (SQLException se) { throw SQLExceptions.getStore(se, Exceptions.toString(sm.getPersistenceCapable()), _dict, fetch.getReadLockLevel()); } }
public boolean initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object context) { ConnectionInfo info = (ConnectionInfo) context; try { return initializeState(sm, state, (JDBCFetchConfiguration) fetch, info); } catch (ClassNotFoundException cnfe) { throw new UserException(cnfe); } catch (SQLException se) { throw SQLExceptions.getStore(se, Exceptions.toString(sm.getPersistenceCapable()), _dict, fetch.getReadLockLevel()); } }
public boolean initialize(OpenJPAStateManager sm, PCState state, FetchConfiguration fetch, Object context) { ConnectionInfo info = (ConnectionInfo) context; try { return initializeState(sm, state, (JDBCFetchConfiguration) fetch, info); } catch (ClassNotFoundException cnfe) { throw new UserException(cnfe); } catch (SQLException se) { throw SQLExceptions.getStore(se, Exceptions.toString(sm.getPersistenceCapable()), _dict, fetch.getReadLockLevel()); } }