/** * Notify the persistence manager that the given state manager should * be removed from the set of instances involved in the next transaction. */ void removeFromPendingTransaction(StateManagerImpl sm) { lock(); try { if (_pending != null) _pending.remove(sm); if (_derefCache != null && !sm.isPersistent()) _derefCache.remove(sm); } finally { unlock(); } }
/** * Notify the persistence manager that the given state manager should * be removed from the set of instances involved in the next transaction. */ void removeFromPendingTransaction(StateManagerImpl sm) { lock(); try { if (_pending != null) _pending.remove(sm); if (_derefCache != null && !sm.isPersistent()) _derefCache.remove(sm); } finally { unlock(); } }
/** * Notify the persistence manager that the given state manager should * be removed from the set of instances involved in the next transaction. */ void removeFromPendingTransaction(StateManagerImpl sm) { lock(); try { if (_pending != null) _pending.remove(sm); if (_derefCache != null && !sm.isPersistent()) _derefCache.remove(sm); } finally { unlock(); } }
/** * Notify the persistence manager that the given state manager should * be removed from the set of instances involved in the next transaction. */ void removeFromPendingTransaction(StateManagerImpl sm) { lock(); try { if (_pending != null) _pending.remove(sm); if (_derefCache != null && !sm.isPersistent()) _derefCache.remove(sm); } finally { unlock(); } }
/** * Notify the persistence manager that the given state manager should * be removed from the set of instances involved in the next transaction. */ void removeFromPendingTransaction(StateManagerImpl sm) { lock(); try { if (_pending != null) _pending.remove(sm); if (_derefCache != null && !sm.isPersistent()) _derefCache.remove(sm); } finally { unlock(); } }
/** * Notify the persistence manager that the given state manager should * be removed from the set of instances involved in the current transaction. */ void removeFromTransaction(StateManagerImpl sm) { lock(); try { if (_transCache != null) // intentional direct access; we don't want to recompute // dirtiness while removing instances from the transaction _transCache.remove(sm); if (_derefCache != null && !sm.isPersistent()) _derefCache.remove(sm); } finally { unlock(); } }
/** * Notify the persistence manager that the given state manager should * be removed from the set of instances involved in the current transaction. */ void removeFromTransaction(StateManagerImpl sm) { lock(); try { if (_transCache != null) // intentional direct access; we don't want to recompute // dirtiness while removing instances from the transaction _transCache.remove(sm); if (_derefCache != null && !sm.isPersistent()) _derefCache.remove(sm); } finally { unlock(); } }
/** * Notify the persistence manager that the given state manager should * be removed from the set of instances involved in the current transaction. */ void removeFromTransaction(StateManagerImpl sm) { lock(); try { if (_transCache != null) // intentional direct access; we don't want to recompute // dirtiness while removing instances from the transaction _transCache.remove(sm); if (_derefCache != null && !sm.isPersistent()) _derefCache.remove(sm); } finally { unlock(); } }
/** * Notify the persistence manager that the given state manager should * be removed from the set of instances involved in the current transaction. */ void removeFromTransaction(StateManagerImpl sm) { lock(); try { if (_transCache != null) // intentional direct access; we don't want to recompute // dirtiness while removing instances from the transaction _transCache.remove(sm); if (_derefCache != null && !sm.isPersistent()) _derefCache.remove(sm); } finally { unlock(); } }
/** * Notify the persistence manager that the given state manager should * be removed from the set of instances involved in the current transaction. */ void removeFromTransaction(StateManagerImpl sm) { lock(); try { if (_transCache != null) // intentional direct access; we don't want to recompute // dirtiness while removing instances from the transaction _transCache.remove(sm); if (_derefCache != null && !sm.isPersistent()) _derefCache.remove(sm); } finally { unlock(); } }
public void evictAll(OpCallbacks call) { beginOperation(false); try { // evict all PClean and PNonTrans objects Collection<StateManagerImpl> c = getManagedStates(); StateManagerImpl sm; for (Iterator<StateManagerImpl> itr = c.iterator(); itr.hasNext();) { sm = itr.next(); if (sm.isPersistent() && !sm.isDirty()) evict(sm.getManagedInstance(), call); } } finally { endOperation(); } }
public void evictAll(OpCallbacks call) { beginOperation(false); try { // evict all PClean and PNonTrans objects Collection<StateManagerImpl> c = getManagedStates(); StateManagerImpl sm; for (Iterator<StateManagerImpl> itr = c.iterator(); itr.hasNext();) { sm = itr.next(); if (sm.isPersistent() && !sm.isDirty()) evict(sm.getManagedInstance(), call); } } finally { endOperation(); } }
public void evictAll(OpCallbacks call) { beginOperation(false); try { // evict all PClean and PNonTrans objects Collection c = getManagedStates(); StateManagerImpl sm; for (Iterator itr = c.iterator(); itr.hasNext();) { sm = (StateManagerImpl) itr.next(); if (sm.isPersistent() && !sm.isDirty()) evict(sm.getManagedInstance(), call); } } finally { endOperation(); } }
public void evictAll(OpCallbacks call) { beginOperation(false); try { // evict all PClean and PNonTrans objects Collection<StateManagerImpl> c = getManagedStates(); StateManagerImpl sm; for (Iterator<StateManagerImpl> itr = c.iterator(); itr.hasNext();) { sm = itr.next(); if (sm.isPersistent() && !sm.isDirty()) evict(sm.getManagedInstance(), call); } } finally { endOperation(); } }
public void evictAll(OpCallbacks call) { beginOperation(false); try { // evict all PClean and PNonTrans objects Collection<StateManagerImpl> c = getManagedStates(); StateManagerImpl sm; for (Iterator<StateManagerImpl> itr = c.iterator(); itr.hasNext();) { sm = itr.next(); if (sm.isPersistent() && !sm.isDirty()) evict(sm.getManagedInstance(), call); } } finally { endOperation(); } }
/** * Ask store manager to assign our oid, optionally flushing and * optionally recaching on the new oid. */ private boolean assignObjectId(boolean flush, boolean preFlushing) { if (_oid != null || isEmbedded() || !isPersistent()) return true; if (_broker.getStoreManager().assignObjectId(this, preFlushing)) { if (!preFlushing) assertObjectIdAssigned(true); } else if (flush) _broker.flush(); else return false; return true; }
/** * Ask store manager to assign our oid, optionally flushing and * optionally recaching on the new oid. */ boolean assignObjectId(boolean flush, boolean preFlushing) { if (_oid != null || isEmbedded() || !isPersistent()) return true; if (_broker.getStoreManager().assignObjectId(this, preFlushing)) { if (!preFlushing) assertObjectIdAssigned(true); } else if (flush) _broker.flush(); else return false; return true; }
/** * Ask store manager to assign our oid, optionally flushing and * optionally recaching on the new oid. */ boolean assignObjectId(boolean flush, boolean preFlushing) { if (_oid != null || isEmbedded() || !isPersistent()) return true; if (_broker.getStoreManager().assignObjectId(this, preFlushing)) { if (!preFlushing) assertObjectIdAssigned(true); } else if (flush) _broker.flush(); else return false; return true; }
/** * Ask store manager to assign our oid, optionally flushing and * optionally recaching on the new oid. */ boolean assignObjectId(boolean flush, boolean preFlushing) { if (_oid != null || isEmbedded() || !isPersistent()) return true; if (_broker.getStoreManager().assignObjectId(this, preFlushing)) { if (!preFlushing) assertObjectIdAssigned(true); } else if (flush) _broker.flush(); else return false; return true; }
/** * Ask store manager to assign our oid, optionally flushing and * optionally recaching on the new oid. */ boolean assignObjectId(boolean flush, boolean preFlushing) { if (_oid != null || isEmbedded() || !isPersistent()) return true; if (_broker.getStoreManager().assignObjectId(this, preFlushing)) { if (!preFlushing) assertObjectIdAssigned(true); } else if (flush) _broker.flush(); else return false; return true; }