/** * Return the proxy manager. */ private ProxyManager getProxyManager () { return _broker.getConfiguration ().getProxyManagerInstance (); } }
/** * Return the proxy manager. */ private ProxyManager getProxyManager () { return _broker.getConfiguration ().getProxyManagerInstance (); } }
/** * Return the proxy manager. */ private ProxyManager getProxyManager () { return _broker.getConfiguration ().getProxyManagerInstance (); } }
/** * Return the proxy manager. */ private ProxyManager getProxyManager () { return _broker.getConfiguration ().getProxyManagerInstance (); } }
public SingleFieldManager(StateManagerImpl sm, BrokerImpl broker) { _sm = sm; _broker = broker; _checkDbOnCascadePersist = _broker.getConfiguration().getCompatibilityInstance().getCheckDatabaseForCascadePersistToDetachedEntity(); }
public SingleFieldManager(StateManagerImpl sm, BrokerImpl broker) { _sm = sm; _broker = broker; _checkDbOnCascadePersist = _broker.getConfiguration().getCompatibilityInstance().getCheckDatabaseForCascadePersistToDetachedEntity(); }
/** * Constructor. Supply broker attaching to. */ public AttachManager(BrokerImpl broker, boolean copyNew, OpCallbacks call) { _broker = broker; _proxy = broker.getConfiguration().getProxyManagerInstance(); _call = call; _copyNew = copyNew; _failFast = (broker.getConfiguration().getMetaDataRepositoryInstance(). getMetaDataFactory().getDefaults().getCallbackMode() & CallbackModes.CALLBACK_FAIL_FAST) != 0; }
/** * Constructor. Supply broker attaching to. */ public AttachManager(BrokerImpl broker, boolean copyNew, OpCallbacks call) { _broker = broker; _proxy = broker.getConfiguration().getProxyManagerInstance(); _call = call; _copyNew = copyNew; _failFast = (broker.getConfiguration().getMetaDataRepositoryInstance(). getMetaDataFactory().getDefaults().getCallbackMode() & CallbackModes.CALLBACK_FAIL_FAST) != 0; }
/** * Constructor. Supply broker attaching to. */ public AttachManager(BrokerImpl broker, boolean copyNew, OpCallbacks call) { _broker = broker; _proxy = broker.getConfiguration().getProxyManagerInstance(); _call = call; _copyNew = copyNew; _failFast = (broker.getConfiguration().getMetaDataRepositoryInstance(). getMetaDataFactory().getDefaults().getCallbackMode() & CallbackModes.CALLBACK_FAIL_FAST) != 0; }
/** * Constructor. Supply broker attaching to. */ public AttachManager(BrokerImpl broker, boolean copyNew, OpCallbacks call) { _broker = broker; _proxy = broker.getConfiguration().getProxyManagerInstance(); _call = call; _copyNew = copyNew; _failFast = (broker.getConfiguration().getMetaDataRepositoryInstance(). getMetaDataFactory().getDefaults().getCallbackMode() & CallbackModes.CALLBACK_FAIL_FAST) != 0; }
/** * If the passed in argument has already been attached, return * the (cached) attached copy. */ PersistenceCapable getAttachedCopy(Object pc) { return ImplHelper.toPersistenceCapable(_attached.get(pc), getBroker().getConfiguration()); }
/** * If the passed in argument has already been attached, return * the (cached) attached copy. */ PersistenceCapable getAttachedCopy(Object pc) { return ImplHelper.toPersistenceCapable(_attached.get(pc), getBroker().getConfiguration()); }
/** * If the passed in argument has already been attached, return * the (cached) attached copy. */ PersistenceCapable getAttachedCopy(Object pc) { return ImplHelper.toPersistenceCapable(_attached.get(pc), getBroker().getConfiguration()); }
/** * If the passed in argument has already been attached, return * the (cached) attached copy. */ PersistenceCapable getAttachedCopy(Object pc) { return ImplHelper.toPersistenceCapable(_attached.get(pc), getBroker().getConfiguration()); }
/** * Returns whether this instance needs a version check. */ public boolean isVersionCheckRequired() { // explicit flag for version check if ((_flags & FLAG_VERSION_CHECK) != 0) return true; if (!_broker.getOptimistic() && !_broker.getConfiguration(). getCompatibilityInstance().getNonOptimisticVersionCheck()) return false; return _state.isVersionCheckRequired(this); }
/** * Returns whether this instance needs a version check. */ public boolean isVersionCheckRequired() { // explicit flag for version check if ((_flags & FLAG_VERSION_CHECK) != 0) return true; if (!_broker.getOptimistic() && !_broker.getConfiguration(). getCompatibilityInstance().getNonOptimisticVersionCheck()) return false; return _state.isVersionCheckRequired(this); }
/** * Returns whether this instance needs a version check. */ public boolean isVersionCheckRequired() { // explicit flag for version check if ((_flags & FLAG_VERSION_CHECK) != 0) return true; if (!_broker.getOptimistic() && !_broker.getConfiguration(). getCompatibilityInstance().getNonOptimisticVersionCheck()) return false; return _state.isVersionCheckRequired(this); }
/** * Returns whether this instance needs a version check. */ public boolean isVersionCheckRequired() { // explicit flag for version check if ((_flags & FLAG_VERSION_CHECK) != 0) return true; if (!_broker.getOptimistic() && !_broker.getConfiguration(). getCompatibilityInstance().getNonOptimisticVersionCheck()) return false; return _state.isVersionCheckRequired(this); }
/** * Fire the given lifecycle event to all listeners. */ private boolean fireLifecycleEvent(int type) { if (type == LifecycleEvent.AFTER_PERSIST && _broker.getConfiguration().getCallbackOptionsInstance().getPostPersistCallbackImmediate()) { fetchObjectId(); } return _broker.fireLifecycleEvent(getManagedInstance(), null, _meta, type); }
/** * Fire the given lifecycle event to all listeners. */ private boolean fireLifecycleEvent(int type) { if (type == LifecycleEvent.AFTER_PERSIST && _broker.getConfiguration().getCallbackOptionsInstance().getPostPersistCallbackImmediate()) { fetchObjectId(); } return _broker.fireLifecycleEvent(getManagedInstance(), null, _meta, type); }