public Object getUserObject(Object key) { beginOperation(false); try { return (_userObjects == null) ? null : _userObjects.get(key); } finally { endOperation(); } }
public boolean isActive() { beginOperation(true); try { return (_flags & FLAG_ACTIVE) != 0; } finally { endOperation(); } }
public void setLifecycleListenerCallbackMode(int mode) { beginOperation(false); try { _lifeCallbackMode = mode; _lifeEventManager.setFailFast((mode & CALLBACK_FAIL_FAST) != 0); } finally { endOperation(); } }
public void addTransactionListener(Object tl) { beginOperation(false); try { _transEventManager.addListener(tl); if (tl instanceof RemoteCommitEventManager) _flags |= FLAG_REMOTE_LISTENER; } finally { endOperation(); } }
public void setTransactionListenerCallbackMode(int mode) { beginOperation(false); try { _transCallbackMode = mode; _transEventManager.setFailFast((mode & CALLBACK_FAIL_FAST) != 0); } finally { endOperation(); } }
public void removeLifecycleListener(Object listener) { beginOperation(false); try { _lifeEventManager.removeListener(listener); } finally { endOperation(); } }
public void setLifecycleListenerCallbackMode(int mode) { beginOperation(false); try { _lifeCallbackMode = mode; _lifeEventManager.setFailFast((mode & CALLBACK_FAIL_FAST) != 0); } finally { endOperation(); } }
public void setLifecycleListenerCallbackMode(int mode) { beginOperation(false); try { _lifeCallbackMode = mode; _lifeEventManager.setFailFast((mode & CALLBACK_FAIL_FAST) != 0); } finally { endOperation(); } }
public void addLifecycleListener(Object listener, Class[] classes) { beginOperation(false); try { _lifeEventManager.addListener(listener, classes); } finally { endOperation(); } }
public Collection getTransactionalObjects() { beginOperation(false); try { return new ManagedObjectCollection(getTransactionalStates()); } finally { endOperation(); } }
public Collection getDirtyObjects() { beginOperation(false); try { return new ManagedObjectCollection(getDirtyStates()); } finally { endOperation(); } }
public Collection getDirtyObjects() { beginOperation(false); try { return new ManagedObjectCollection(getDirtyStates()); } finally { endOperation(); } }
public Collection getManagedObjects() { beginOperation(false); try { return new ManagedObjectCollection(getManagedStates()); } finally { endOperation(); } }
public Collection getPendingTransactionalObjects() { beginOperation(false); try { return new ManagedObjectCollection (getPendingTransactionalStates()); } finally { endOperation(); } }
public void lock(Object obj, OpCallbacks call) { if (obj == null) return; beginOperation(true); // have to sync or lock level always NONE try { lock(obj, _fc.getWriteLockLevel(), _fc.getLockTimeout(), call); } finally { endOperation(); } }
public void begin() { beginOperation(true); try { if ((_flags & FLAG_ACTIVE) != 0) throw new InvalidStateException(_loc.get("active")); _factory.syncWithManagedTransaction(this, true); beginInternal(); } finally { endOperation(); } }
public void begin() { beginOperation(true); try { if ((_flags & FLAG_ACTIVE) != 0) throw new InvalidStateException(_loc.get("active")); _factory.syncWithManagedTransaction(this, true); beginInternal(); } finally { endOperation(); } }
public void releaseSavepoint() { beginOperation(false); try { if (_savepoints == null || _savepoints.isEmpty()) throw new UserException(_loc.get("no-lastsavepoint")); releaseSavepoint((String) _savepoints.get (_savepoints.size() - 1)); } finally { endOperation(); } }
public void rollbackToSavepoint() { beginOperation(false); try { if (_savepoints == null || _savepoints.isEmpty()) throw new UserException(_loc.get("no-lastsavepoint")); rollbackToSavepoint((String) _savepoints.get (_savepoints.size() - 1)); } finally { endOperation(); } }
public void releaseSavepoint() { beginOperation(false); try { if (_savepoints == null || _savepoints.isEmpty()) throw new UserException(_loc.get("no-lastsavepoint")); releaseSavepoint((String) _savepoints.get (_savepoints.size() - 1)); } finally { endOperation(); } }