/** * Return a cache key for the given query. */ private QueryKey toQueryKey(Query q) { QueryImpl impl = (QueryImpl) q; if (impl.hasPositionalParameters()) return QueryKey.newInstance(impl.getDelegate(), impl.getPositionalParameters()); return QueryKey.newInstance(impl.getDelegate(), impl.getNamedParameters()); }
/** * Return a cache key for the given query. */ private QueryKey toQueryKey(Query q) { QueryImpl impl = (QueryImpl) q; if (impl.hasPositionalParameters()) return QueryKey.newInstance(impl.getDelegate(), impl.getPositionalParameters()); return QueryKey.newInstance(impl.getDelegate(), impl.getNamedParameters()); }
/** * Return a cache key for the given query. */ private QueryKey toQueryKey(Query q) { QueryImpl impl = (QueryImpl) q; if (impl.hasPositionalParameters()) return QueryKey.newInstance(impl.getDelegate(), impl.getPositionalParameters()); return QueryKey.newInstance(impl.getDelegate(), impl.getNamedParameters()); }
/** * Return a cache key for the given query. */ private QueryKey toQueryKey(Query q) { QueryImpl impl = (QueryImpl) q; if (impl.hasPositionalParameters()) return QueryKey.newInstance(impl.getDelegate(), impl.getPositionalParameters()); return QueryKey.newInstance(impl.getDelegate(), impl.getNamedParameters()); }
/** * Return a cache key for the given query. */ private QueryKey toQueryKey(Query q) { QueryImpl impl = (QueryImpl) q; if (impl.hasPositionalParameters()) return QueryKey.newInstance(impl.getDelegate(), impl.getPositionalParameters()); return QueryKey.newInstance(impl.getDelegate(), impl.getNamedParameters()); }