public OpenJPAConfiguration getConfiguration() { return ctx.getStoreContext().getConfiguration(); }
public OpenJPAConfiguration getConfiguration() { return ctx.getStoreContext().getConfiguration(); }
public OpenJPAConfiguration getConfiguration() { return ctx.getStoreContext().getConfiguration(); }
/** * Return a key for the given query, or null if it is not cacheable. */ static QueryKey newInstance(QueryContext q, boolean packed, Map<Object,Object> args, Class<?> candidate, boolean subs, long startIdx, long endIdx, Object parsed) { QueryKey key = createKey(q, packed, candidate, subs, startIdx, endIdx, parsed); if (key != null && (args == null || args.isEmpty() || setParams(key, q.getStoreContext(), new HashMap<Object,Object>(args)))) return key; return null; }
/** * Return a key for the given query, or null if it is not cacheable. */ static QueryKey newInstance(QueryContext q, boolean packed, Map<Object,Object> args, Class<?> candidate, boolean subs, long startIdx, long endIdx, Object parsed) { QueryKey key = createKey(q, packed, candidate, subs, startIdx, endIdx, parsed); if (key != null && (args == null || args.isEmpty() || setParams(key, q.getStoreContext(), new HashMap<Object,Object>(args)))) return key; return null; }
/** * Return a key for the given query, or null if it is not cacheable. */ static QueryKey newInstance(QueryContext q, boolean packed, Map<Object,Object> args, Class<?> candidate, boolean subs, long startIdx, long endIdx, Object parsed) { QueryKey key = createKey(q, packed, candidate, subs, startIdx, endIdx, parsed); if (key != null && (args == null || args.isEmpty() || setParams(key, q.getStoreContext(), new HashMap<Object,Object>(args)))) return key; return null; }
/** * Return a key for the given query, or null if it is not cacheable. */ static QueryKey newInstance(QueryContext q, boolean packed, Map<Object,Object> args, Class<?> candidate, boolean subs, long startIdx, long endIdx, Object parsed) { QueryKey key = createKey(q, packed, candidate, subs, startIdx, endIdx, parsed); if (key != null && (args == null || args.isEmpty() || setParams(key, q.getStoreContext(), new HashMap<Object,Object>(args)))) return key; return null; }
/** * Return a key for the given query, or null if it is not cacheable. */ static QueryKey newInstance(QueryContext q, boolean packed, Map args, Class candidate, boolean subs, long startIdx, long endIdx) { QueryKey key = createKey(q, packed, candidate, subs, startIdx, endIdx); if (key != null && (args == null || args.isEmpty() || setParams(key, q.getStoreContext(), new HashMap(args)))) return key; return null; }
public void setContext(QueryContext qctx) { _query.setContext(qctx); _sctx = qctx.getStoreContext(); _repos = _sctx.getConfiguration().getMetaDataRepositoryInstance(); }
public void setContext(QueryContext qctx) { _query.setContext(qctx); _sctx = qctx.getStoreContext(); _repos = _sctx.getConfiguration().getMetaDataRepositoryInstance(); }
public void setContext(QueryContext qctx) { _query.setContext(qctx); _sctx = qctx.getStoreContext(); _repos = _sctx.getConfiguration().getMetaDataRepositoryInstance(); }
public void setContext(QueryContext qctx) { _query.setContext(qctx); _sctx = qctx.getStoreContext(); _repos = _sctx.getConfiguration().getMetaDataRepositoryInstance(); }
public void setContext(QueryContext qctx) { _query.setContext(qctx); _sctx = qctx.getStoreContext(); _repos = _sctx.getConfiguration().getMetaDataRepositoryInstance(); }
public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) { boolean parallel = !getContext().getStoreContext().getBroker() .getMultithreaded(); ParallelExecutor ex = new ParallelExecutor(this, meta, parallel); for (StoreQuery q : _queries) { ex.addExecutor(q.newDataStoreExecutor(meta, subs)); } return ex; }
public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) { boolean parallel = !getContext().getStoreContext().getBroker() .getMultithreaded(); ParallelExecutor ex = new ParallelExecutor(this, meta, parallel); for (StoreQuery q : _queries) { ex.addExecutor(q.newDataStoreExecutor(meta, subs)); } return ex; }
public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) { boolean parallel = !getContext().getStoreContext().getBroker() .getMultithreaded(); ParallelExecutor ex = new ParallelExecutor(this, meta, parallel); for (StoreQuery q : _queries) { ex.addExecutor(q.newDataStoreExecutor(meta, subs)); } return ex; }
public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) { boolean parallel = !getContext().getStoreContext().getBroker() .getMultithreaded(); ParallelExecutor ex = new ParallelExecutor(this, meta, subs, _parser, ctx.getCompilation(), parallel); for (StoreQuery q : _queries) { ex.addExecutor(q.newDataStoreExecutor(meta, subs)); } return ex; }
public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) { boolean parallel = !getContext().getStoreContext().getBroker() .getMultithreaded(); ParallelExecutor ex = new ParallelExecutor(this, meta, subs, _parser, ctx.getCompilation(), parallel); for (StoreQuery q : _queries) { ex.addExecutor(q.newDataStoreExecutor(meta, subs)); } return ex; }
public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) { boolean parallel = !getContext().getStoreContext().getBroker() .getMultithreaded(); ParallelExecutor ex = new ParallelExecutor(this, meta, subs, _parser, ctx.getCompilation(), parallel); for (StoreQuery q : _queries) { ex.addExecutor(q.newDataStoreExecutor(meta, subs)); } return ex; }
public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) { ParallelExecutor ex = new ParallelExecutor(this, meta, subs, _parser, ctx.getCompilation()); FetchConfiguration fetch = getContext().getFetchConfiguration(); DistributedStoreManager store = (DistributedStoreManager)getContext() .getStoreContext().getStoreManager().getInnermostDelegate(); List<SliceStoreManager> targets = store.getTargets(fetch); for (StoreQuery q:_queries) { if (targets.contains(((JDBCStoreQuery)q).getStore())) ex.addExecutor(q.newDataStoreExecutor(meta, subs)); } return ex; }