public DetachManagerLite(OpenJPAConfiguration conf) { _detachProxies = conf.getDetachStateInstance().getDetachProxyFields(); _tsm = new TransferFieldManager(); }
public DetachManagerLite(OpenJPAConfiguration conf) { _detachProxies = conf.getDetachStateInstance().getDetachProxyFields(); _tsm = new TransferFieldManager(); }
public DetachManagerLite(OpenJPAConfiguration conf) { _detachProxies = conf.getDetachStateInstance().getDetachProxyFields(); _tsm = new TransferFieldManager(); }
public DetachManagerLite(OpenJPAConfiguration conf) { _detachProxies = conf.getDetachStateInstance().getDetachProxyFields(); _tsm = new TransferFieldManager(); }
/** * Whether the class being enhanced should externalize to a detached * instance rather than serialize. */ private boolean externalizeDetached() { return ClassMetaData.SYNTHETIC.equals(_meta.getDetachedState()) && Serializable.class.isAssignableFrom(_meta.getDescribedType()) && !_repos.getConfiguration().getDetachStateInstance(). isDetachedStateTransient(); }
/** * Whether the class being enhanced should externalize to a detached * instance rather than serialize. */ private boolean externalizeDetached() { return ClassMetaData.SYNTHETIC.equals(_meta.getDetachedState()) && Serializable.class.isAssignableFrom(_meta.getDescribedType()) && !_repos.getConfiguration().getDetachStateInstance(). isDetachedStateTransient(); }
/** * Whether the class being enhanced should externalize to a detached * instance rather than serialize. */ private boolean externalizeDetached() { return ClassMetaData.SYNTHETIC.equals(_meta.getDetachedState()) && Serializable.class.isAssignableFrom(_meta.getDescribedType()) && !_repos.getConfiguration().getDetachStateInstance(). isDetachedStateTransient(); }
/** * Whether the class being enhanced should externalize to a detached * instance rather than serialize. */ private boolean externalizeDetached() { return ClassMetaData.SYNTHETIC.equals(_meta.getDetachedState()) && Serializable.class.isAssignableFrom(_meta.getDescribedType()) && !_repos.getConfiguration().getDetachStateInstance(). isDetachedStateTransient(); }
/** * Whether the class being enhanced should externalize to a detached * instance rather than serialize. */ private boolean externalizeDetached() { return ClassMetaData.SYNTHETIC.equals(_meta.getDetachedState()) && Serializable.class.isAssignableFrom(_meta.getDescribedType()) && !_repos.getConfiguration().getDetachStateInstance(). isDetachedStateTransient(); }
/** * Whether an instance of this type has detached state, assuming the given * detached state field. * * @return true if a detached instance must have detached state, false * if it does not, and null if it may use a * manually-constructed instance without detached state */ private Boolean usesDetachedState(String detachedField, boolean confDisallows) { if (!isDetachable()) return Boolean.FALSE; // if we declare a detached state field, have to use it if (detachedField == null) return Boolean.FALSE; if (!SYNTHETIC.equals(detachedField)) return Boolean.TRUE; // allow conf to disallow if (confDisallows && !_repos.getConfiguration(). getDetachStateInstance().getDetachedStateField()) return Boolean.FALSE; // have to use detached state to store datastore id if (getIdentityType() == ID_DATASTORE) return Boolean.TRUE; // allow detached state use, but don't require return null; }
/** * Whether an instance of this type has detached state, assuming the given * detached state field. * * @return true if a detached instance must have detached state, false * if it does not, and null if it may use a * manually-constructed instance without detached state */ private Boolean usesDetachedState(String detachedField, boolean confDisallows) { if (!isDetachable()) return Boolean.FALSE; // if we declare a detached state field, have to use it if (detachedField == null) return Boolean.FALSE; if (!SYNTHETIC.equals(detachedField)) return Boolean.TRUE; // allow conf to disallow if (confDisallows && !_repos.getConfiguration(). getDetachStateInstance().getDetachedStateField()) return Boolean.FALSE; // have to use detached state to store datastore id if (getIdentityType() == ID_DATASTORE) return Boolean.TRUE; // allow detached state use, but don't require return null; }
/** * Whether an instance of this type has detached state, assuming the given * detached state field. * * @return true if a detached instance must have detached state, false * if it does not, and null if it may use a * manually-constructed instance without detached state */ private Boolean usesDetachedState(String detachedField, boolean confDisallows) { if (!isDetachable()) return Boolean.FALSE; // if we declare a detached state field, have to use it if (detachedField == null) return Boolean.FALSE; if (!SYNTHETIC.equals(detachedField)) return Boolean.TRUE; // allow conf to disallow if (confDisallows && !_repos.getConfiguration(). getDetachStateInstance().getDetachedStateField()) return Boolean.FALSE; // have to use detached state to store datastore id if (getIdentityType() == ID_DATASTORE) return Boolean.TRUE; // allow detached state use, but don't require return null; }
/** * Whether an instance of this type has detached state, assuming the given * detached state field. * * @return true if a detached instance must have detached state, false * if it does not, and null if it may use a * manually-constructed instance without detached state */ private Boolean usesDetachedState(String detachedField, boolean confDisallows) { if (!isDetachable()) return Boolean.FALSE; // if we declare a detached state field, have to use it if (detachedField == null) return Boolean.FALSE; if (!SYNTHETIC.equals(detachedField)) return Boolean.TRUE; // allow conf to disallow if (confDisallows && !_repos.getConfiguration(). getDetachStateInstance().getDetachedStateField()) return Boolean.FALSE; // have to use detached state to store datastore id if (getIdentityType() == ID_DATASTORE) return Boolean.TRUE; // allow detached state use, but don't require return null; }
getDetachStateInstance(); if (!opts.getDetachedStateManager() || !useDetachedStateManager(sm, opts)) {
getDetachStateInstance(); if (!opts.getDetachedStateManager() || !useDetachedStateManager(sm, opts)) {
/** * Configures the given broker with the current factory option settings. */ protected void configureBroker(BrokerImpl broker) { broker.setOptimistic(_conf.getOptimistic()); broker.setNontransactionalRead(_conf.getNontransactionalRead()); broker.setNontransactionalWrite(_conf.getNontransactionalWrite()); broker.setRetainState(_conf.getRetainState()); broker.setRestoreState(_conf.getRestoreStateConstant()); broker.setAutoClear(_conf.getAutoClearConstant()); broker.setIgnoreChanges(_conf.getIgnoreChanges()); broker.setMultithreaded(_conf.getMultithreaded()); broker.setAutoDetach(_conf.getAutoDetachConstant()); broker.setDetachState(_conf.getDetachStateInstance(). getDetachState()); }
/** * Configures the given broker with the current factory option settings. */ protected void configureBroker(BrokerImpl broker) { broker.setOptimistic(_conf.getOptimistic()); broker.setNontransactionalRead(_conf.getNontransactionalRead()); broker.setNontransactionalWrite(_conf.getNontransactionalWrite()); broker.setRetainState(_conf.getRetainState()); broker.setRestoreState(_conf.getRestoreStateConstant()); broker.setAutoClear(_conf.getAutoClearConstant()); broker.setIgnoreChanges(_conf.getIgnoreChanges()); broker.setMultithreaded(_conf.getMultithreaded()); broker.setAutoDetach(_conf.getAutoDetachConstant()); broker.setDetachState(_conf.getDetachStateInstance().getDetachState()); broker.setPostLoadOnMerge(_conf.getPostLoadOnMerge()); }
/** * Configures the given broker with the current factory option settings. */ protected void configureBroker(BrokerImpl broker) { broker.setOptimistic(_conf.getOptimistic()); broker.setNontransactionalRead(_conf.getNontransactionalRead()); broker.setNontransactionalWrite(_conf.getNontransactionalWrite()); broker.setRetainState(_conf.getRetainState()); broker.setRestoreState(_conf.getRestoreStateConstant()); broker.setAutoClear(_conf.getAutoClearConstant()); broker.setIgnoreChanges(_conf.getIgnoreChanges()); broker.setMultithreaded(_conf.getMultithreaded()); broker.setAutoDetach(_conf.getAutoDetachConstant()); broker.setDetachState(_conf.getDetachStateInstance().getDetachState()); broker.setPostLoadOnMerge(_conf.getPostLoadOnMerge()); }
/** * Configures the given broker with the current factory option settings. */ protected void configureBroker(BrokerImpl broker) { broker.setOptimistic(_conf.getOptimistic()); broker.setNontransactionalRead(_conf.getNontransactionalRead()); broker.setNontransactionalWrite(_conf.getNontransactionalWrite()); broker.setRetainState(_conf.getRetainState()); broker.setRestoreState(_conf.getRestoreStateConstant()); broker.setAutoClear(_conf.getAutoClearConstant()); broker.setIgnoreChanges(_conf.getIgnoreChanges()); broker.setMultithreaded(_conf.getMultithreaded()); broker.setAutoDetach(_conf.getAutoDetachConstant()); broker.setDetachState(_conf.getDetachStateInstance().getDetachState()); broker.setPostLoadOnMerge(_conf.getPostLoadOnMerge()); }
/** * Configures the given broker with the current factory option settings. */ protected void configureBroker(BrokerImpl broker) { broker.setOptimistic(_conf.getOptimistic()); broker.setNontransactionalRead(_conf.getNontransactionalRead()); broker.setNontransactionalWrite(_conf.getNontransactionalWrite()); broker.setRetainState(_conf.getRetainState()); broker.setRestoreState(_conf.getRestoreStateConstant()); broker.setAutoClear(_conf.getAutoClearConstant()); broker.setIgnoreChanges(_conf.getIgnoreChanges()); broker.setMultithreaded(_conf.getMultithreaded()); broker.setAutoDetach(_conf.getAutoDetachConstant()); broker.setDetachState(_conf.getDetachStateInstance().getDetachState()); broker.setPostLoadOnMerge(_conf.getPostLoadOnMerge()); }