public boolean supportsDataStoreExecution() { return _query.supportsDataStoreExecution(); }
public boolean supportsDataStoreExecution() { return _query.supportsDataStoreExecution(); }
public boolean supportsDataStoreExecution() { return _query.supportsDataStoreExecution(); }
public boolean supportsDataStoreExecution() { return _query.supportsDataStoreExecution(); }
public boolean supportsDataStoreExecution() { return _query.supportsDataStoreExecution(); }
/** * Compile for execution, choosing between datastore and in-mem * compilation based on what we support and our settings. */ private StoreQuery.Executor compileForExecutor() { Compilation comp = compileForCompilation(); if (_collection == null) { if (comp.datastore != null) return comp.datastore; if (comp.memory != null) return comp.memory; if (_storeQuery.supportsDataStoreExecution()) return compileForDataStore(comp); return compileForInMemory(comp); } if (comp.memory != null) return comp.memory; if (comp.datastore != null) return comp.datastore; if (_storeQuery.supportsInMemoryExecution()) return compileForInMemory(comp); return compileForDataStore(comp); }
/** * Compile for execution, choosing between datastore and in-mem * compilation based on what we support and our settings. */ private StoreQuery.Executor compileForExecutor() { Compilation comp = compileForCompilation(); if (_collection == null) { if (comp.datastore != null) return comp.datastore; if (comp.memory != null) return comp.memory; if (_storeQuery.supportsDataStoreExecution()) return compileForDataStore(comp); return compileForInMemory(comp); } if (comp.memory != null) return comp.memory; if (comp.datastore != null) return comp.datastore; if (_storeQuery.supportsInMemoryExecution()) return compileForInMemory(comp); return compileForDataStore(comp); }
/** * Compile for execution, choosing between datastore and in-mem * compilation based on what we support and our settings. */ private StoreQuery.Executor compileForExecutor() { Compilation comp = compileForCompilation(); if (_collection == null) { if (comp.datastore != null) return comp.datastore; if (comp.memory != null) return comp.memory; if (_storeQuery.supportsDataStoreExecution()) return compileForDataStore(comp); return compileForInMemory(comp); } if (comp.memory != null) return comp.memory; if (comp.datastore != null) return comp.datastore; if (_storeQuery.supportsInMemoryExecution()) return compileForInMemory(comp); return compileForDataStore(comp); }
/** * Compile for execution, choosing between datastore and in-mem * compilation based on what we support and our settings. */ private StoreQuery.Executor compileForExecutor() { Compilation comp = compileForCompilation(); if (_collection == null) { if (comp.datastore != null) return comp.datastore; if (comp.memory != null) return comp.memory; if (_storeQuery.supportsDataStoreExecution()) return compileForDataStore(comp); return compileForInMemory(comp); } if (comp.memory != null) return comp.memory; if (comp.datastore != null) return comp.datastore; if (_storeQuery.supportsInMemoryExecution()) return compileForInMemory(comp); return compileForDataStore(comp); }
/** * Compile for execution, choosing between datastore and in-mem * compilation based on what we support and our settings. */ private StoreQuery.Executor compileForExecutor() { Compilation comp = compileForCompilation(); if (_collection == null) { if (comp.datastore != null) return comp.datastore; if (comp.memory != null) return comp.memory; if (_storeQuery.supportsDataStoreExecution()) return compileForDataStore(comp); return compileForInMemory(comp); } if (comp.memory != null) return comp.memory; if (comp.datastore != null) return comp.datastore; if (_storeQuery.supportsInMemoryExecution()) return compileForInMemory(comp); return compileForDataStore(comp); }
/** * Return whether we should execute this query in memory. */ private boolean isInMemory(int operation) { // if there are any dirty instances in the current trans that are // involved in this query, we have to execute in memory or flush boolean inMem = !_storeQuery.supportsDataStoreExecution() || _collection != null; if (!inMem && (!_ignoreChanges || operation != OP_SELECT) && _broker.isActive() && isAccessPathDirty()) { int flush = _fc.getFlushBeforeQueries(); if ((flush == FLUSH_TRUE || (flush == FLUSH_WITH_CONNECTION && _broker.hasConnection()) || operation != OP_SELECT || !_storeQuery.supportsInMemoryExecution()) && _broker.getConfiguration().supportedOptions(). contains(OpenJPAConfiguration.OPTION_INC_FLUSH)) { _broker.flush(); } else { if (_log.isInfoEnabled()) _log.info(_loc.get("force-in-mem", _class)); inMem = true; } } if (inMem && !_storeQuery.supportsInMemoryExecution()) throw new InvalidStateException(_loc.get("cant-exec-inmem", _language)); return inMem; }
/** * Return whether we should execute this query in memory. */ private boolean isInMemory(int operation) { // if there are any dirty instances in the current trans that are // involved in this query, we have to execute in memory or flush boolean inMem = !_storeQuery.supportsDataStoreExecution() || _collection != null; if (!inMem && (!_ignoreChanges || operation != OP_SELECT) && _broker.isActive() && isAccessPathDirty()) { int flush = _fc.getFlushBeforeQueries(); if ((flush == FLUSH_TRUE || (flush == FLUSH_WITH_CONNECTION && _broker.hasConnection()) || operation != OP_SELECT || !_storeQuery.supportsInMemoryExecution()) && _broker.getConfiguration().supportedOptions(). contains(OpenJPAConfiguration.OPTION_INC_FLUSH)) { _broker.flush(); } else { if (_log.isInfoEnabled()) _log.info(_loc.get("force-in-mem", _class)); inMem = true; } } if (inMem && !_storeQuery.supportsInMemoryExecution()) throw new InvalidStateException(_loc.get("cant-exec-inmem", _language)); return inMem; }
/** * Return whether we should execute this query in memory. */ private boolean isInMemory(int operation) { // if there are any dirty instances in the current trans that are // involved in this query, we have to execute in memory or flush boolean inMem = !_storeQuery.supportsDataStoreExecution() || _collection != null; if (!inMem && (!_ignoreChanges || operation != OP_SELECT) && _broker.isActive() && isAccessPathDirty()) { int flush = _fc.getFlushBeforeQueries(); if ((flush == FLUSH_TRUE || (flush == FLUSH_WITH_CONNECTION && _broker.hasConnection()) || operation != OP_SELECT || !_storeQuery.supportsInMemoryExecution()) && _broker.getConfiguration().supportedOptions(). contains(OpenJPAConfiguration.OPTION_INC_FLUSH)) { _broker.flush(); } else { if (_log.isInfoEnabled()) _log.info(_loc.get("force-in-mem", _class)); inMem = true; } } if (inMem && !_storeQuery.supportsInMemoryExecution()) throw new InvalidStateException(_loc.get("cant-exec-inmem", _language)); return inMem; }
/** * Return whether we should execute this query in memory. */ private boolean isInMemory(int operation) { // if there are any dirty instances in the current trans that are // involved in this query, we have to execute in memory or flush boolean inMem = !_storeQuery.supportsDataStoreExecution() || _collection != null; if (!inMem && (!_ignoreChanges || operation != OP_SELECT) && _broker.isActive() && isAccessPathDirty()) { int flush = _fc.getFlushBeforeQueries(); if ((flush == FLUSH_TRUE || (flush == FLUSH_WITH_CONNECTION && _broker.hasConnection()) || operation != OP_SELECT || !_storeQuery.supportsInMemoryExecution()) && _broker.getConfiguration().supportedOptions(). contains(OpenJPAConfiguration.OPTION_INC_FLUSH)) { _broker.flush(); } else { if (_log.isInfoEnabled()) _log.info(_loc.get("force-in-mem", _class)); inMem = true; } } if (inMem && !_storeQuery.supportsInMemoryExecution()) throw new InvalidStateException(_loc.get("cant-exec-inmem", _language)); return inMem; }
/** * Return whether we should execute this query in memory. */ private boolean isInMemory(int operation) { // if there are any dirty instances in the current trans that are // involved in this query, we have to execute in memory or flush boolean inMem = !_storeQuery.supportsDataStoreExecution() || _collection != null; if (!inMem && (!_ignoreChanges || operation != OP_SELECT) && _broker.isActive() && isAccessPathDirty()) { int flush = _fc.getFlushBeforeQueries(); if ((flush == FLUSH_TRUE || (flush == FLUSH_WITH_CONNECTION && _broker.hasConnection()) || operation != OP_SELECT || !_storeQuery.supportsInMemoryExecution()) && _broker.getConfiguration().supportedOptions(). contains(OpenJPAConfiguration.OPTION_INC_FLUSH)) { _broker.flush(); } else { if (_log.isInfoEnabled()) _log.info(_loc.get("force-in-mem", _class)); inMem = true; } } if (inMem && !_storeQuery.supportsInMemoryExecution()) throw new InvalidStateException(_loc.get("cant-exec-inmem", _language)); return inMem; }