public DataCacheRetrieveMode getCacheRetrieveMode() { try { return _fetch.getCacheRetrieveMode(); } catch (RuntimeException re) { throw translate(re); } }
public DataCacheRetrieveMode getCacheRetrieveMode() { try { return _fetch.getCacheRetrieveMode(); } catch (RuntimeException re) { throw translate(re); } }
public DataCacheRetrieveMode getCacheRetrieveMode() { try { return _fetch.getCacheRetrieveMode(); } catch (RuntimeException re) { throw translate(re); } }
public DataCacheRetrieveMode getCacheRetrieveMode() { try { return _fetch.getCacheRetrieveMode(); } catch (RuntimeException re) { throw translate(re); } }
/** * Affirms if a load operation must bypass the L2 cache. * If lock is active, always bypass. * */ boolean bypass(FetchConfiguration fetch, int load) { // Order of checks are important if (isLocking(fetch)) return true; if (_ctx.getConfiguration().getRefreshFromDataCache()) return false; if (fetch.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS) return true; if (load == StoreManager.FORCE_LOAD_REFRESH) return true; return false; }
/** * Affirms if a load operation must bypass the L2 cache. * If lock is active, always bypass. * */ boolean bypass(FetchConfiguration fetch, int load) { // Order of checks are important if (isLocking(fetch)) return true; if (_ctx.getConfiguration().getRefreshFromDataCache()) return false; if (fetch.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS) return true; if (load == StoreManager.FORCE_LOAD_REFRESH) return true; return false; }
/** * Affirms if a load operation must bypass the L2 cache. * If lock is active, always bypass. * */ boolean bypass(FetchConfiguration fetch, int load) { // Order of checks are important if (isLocking(fetch)) return true; if (_ctx.getConfiguration().getRefreshFromDataCache()) return false; if (fetch.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS) return true; if (load == StoreManager.FORCE_LOAD_REFRESH) return true; return false; }
/** * Affirms if a load operation must bypass the L2 cache. * If lock is active, always bypass. * */ boolean bypass(FetchConfiguration fetch, int load) { // Order of checks are important if (isLocking(fetch)) return true; if (_ctx.getConfiguration().getRefreshFromDataCache()) return false; if (fetch.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS) return true; if (load == StoreManager.FORCE_LOAD_REFRESH) return true; return false; }
FetchConfiguration fc = sm.getContext().getFetchConfiguration(); CacheStatistics stats = (cache == null) ? null : cache.getStatistics(); if (cache == null || sm.isEmbedded() || fc.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS) { if (stats != null && stats.isEnabled()) { ((CacheStatisticsSPI) stats).newGet(sm.getMetaData().getDescribedType(), false);
FetchConfiguration fc = sm.getContext().getFetchConfiguration(); CacheStatistics stats = (cache == null) ? null : cache.getStatistics(); if (cache == null || sm.isEmbedded() || fc.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS) { if (stats != null && stats.isEnabled()) { ((CacheStatisticsSPI) stats).newGet(sm.getMetaData().getDescribedType(), false);
FetchConfiguration fc = sm.getContext().getFetchConfiguration(); CacheStatistics stats = (cache == null) ? null : cache.getStatistics(); if (cache == null || sm.isEmbedded() || fc.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS) { if (stats != null && stats.isEnabled()) { ((CacheStatisticsSPI) stats).newGet(sm.getMetaData().getDescribedType(), false);
FetchConfiguration fc = sm.getContext().getFetchConfiguration(); CacheStatistics stats = (cache == null) ? null : cache.getStatistics(); if (cache == null || sm.isEmbedded() || fc.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS) { if (stats != null && stats.isEnabled()) { ((CacheStatisticsSPI) stats).newGet(sm.getMetaData().getDescribedType(), false);
public void copy(FetchConfiguration fetch) { setFetchBatchSize(fetch.getFetchBatchSize()); setMaxFetchDepth(fetch.getMaxFetchDepth()); setQueryCacheEnabled(fetch.getQueryCacheEnabled()); setFlushBeforeQueries(fetch.getFlushBeforeQueries()); setExtendedPathLookup(fetch.getExtendedPathLookup()); setLockTimeout(fetch.getLockTimeout()); setQueryTimeout(fetch.getQueryTimeout()); setLockScope(fetch.getLockScope()); clearFetchGroups(false); addFetchGroups(fetch.getFetchGroups()); clearFields(); copyHints(fetch); setCacheRetrieveMode(fetch.getCacheRetrieveMode()); setCacheStoreMode(fetch.getCacheStoreMode()); addFields(fetch.getFields()); // don't use setters because require active transaction _state.readLockLevel = fetch.getReadLockLevel(); _state.writeLockLevel = fetch.getWriteLockLevel(); }
public void copy(FetchConfiguration fetch) { setFetchBatchSize(fetch.getFetchBatchSize()); setMaxFetchDepth(fetch.getMaxFetchDepth()); setQueryCacheEnabled(fetch.getQueryCacheEnabled()); setFlushBeforeQueries(fetch.getFlushBeforeQueries()); setExtendedPathLookup(fetch.getExtendedPathLookup()); setLockTimeout(fetch.getLockTimeout()); setQueryTimeout(fetch.getQueryTimeout()); setLockScope(fetch.getLockScope()); clearFetchGroups(false); addFetchGroups(fetch.getFetchGroups()); clearFields(); copyHints(fetch); setCacheRetrieveMode(fetch.getCacheRetrieveMode()); setCacheStoreMode(fetch.getCacheStoreMode()); addFields(fetch.getFields()); // don't use setters because require active transaction _state.readLockLevel = fetch.getReadLockLevel(); _state.writeLockLevel = fetch.getWriteLockLevel(); }
public void copy(FetchConfiguration fetch) { setFetchBatchSize(fetch.getFetchBatchSize()); setMaxFetchDepth(fetch.getMaxFetchDepth()); setQueryCacheEnabled(fetch.getQueryCacheEnabled()); setFlushBeforeQueries(fetch.getFlushBeforeQueries()); setExtendedPathLookup(fetch.getExtendedPathLookup()); setLockTimeout(fetch.getLockTimeout()); setQueryTimeout(fetch.getQueryTimeout()); setLockScope(fetch.getLockScope()); clearFetchGroups(false); addFetchGroups(fetch.getFetchGroups()); clearFields(); copyHints(fetch); setCacheRetrieveMode(fetch.getCacheRetrieveMode()); setCacheStoreMode(fetch.getCacheStoreMode()); addFields(fetch.getFields()); // don't use setters because require active transaction _state.readLockLevel = fetch.getReadLockLevel(); _state.writeLockLevel = fetch.getWriteLockLevel(); }
public void copy(FetchConfiguration fetch) { setFetchBatchSize(fetch.getFetchBatchSize()); setMaxFetchDepth(fetch.getMaxFetchDepth()); setQueryCacheEnabled(fetch.getQueryCacheEnabled()); setFlushBeforeQueries(fetch.getFlushBeforeQueries()); setExtendedPathLookup(fetch.getExtendedPathLookup()); setLockTimeout(fetch.getLockTimeout()); setQueryTimeout(fetch.getQueryTimeout()); setLockScope(fetch.getLockScope()); clearFetchGroups(false); addFetchGroups(fetch.getFetchGroups()); clearFields(); copyHints(fetch); setCacheRetrieveMode(fetch.getCacheRetrieveMode()); setCacheStoreMode(fetch.getCacheStoreMode()); addFields(fetch.getFields()); // don't use setters because require active transaction _state.readLockLevel = fetch.getReadLockLevel(); _state.writeLockLevel = fetch.getWriteLockLevel(); }
boolean alreadyCached = data != null; if (sm.isEmbedded() || fetch.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS || fetch.getCacheStoreMode() == DataCacheStoreMode.REFRESH) {
boolean alreadyCached = data != null; if (sm.isEmbedded() || fetch.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS || fetch.getCacheStoreMode() == DataCacheStoreMode.REFRESH) {
boolean alreadyCached = data != null; if (sm.isEmbedded() || fetch.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS || fetch.getCacheStoreMode() == DataCacheStoreMode.REFRESH) {
boolean alreadyCached = data != null; if (sm.isEmbedded() || fetch.getCacheRetrieveMode() == DataCacheRetrieveMode.BYPASS || fetch.getCacheStoreMode() == DataCacheStoreMode.REFRESH) {