@Override public CqQuery newCq(String cqName, String queryString, CqAttributes cqAttributes) throws QueryInvalidException, CqExistsException, CqException { preOp(true); try { if (cqName == null) { throw new IllegalArgumentException( "cqName must not be null"); } ClientCQ cq = ((DefaultQueryService) realQueryService).getCqService().newCq(cqName, queryString, cqAttributes, ((DefaultQueryService) realQueryService).getPool(), false); cq.setProxyCache(proxyCache); this.cqNames.add(cq.getName()); return cq; } finally { postOp(); } }
@Override public CqQuery newCq(String cqName, String queryString, CqAttributes cqAttributes, boolean isDurable) throws QueryInvalidException, CqExistsException, CqException { preOp(true); try { if (cqName == null) { throw new IllegalArgumentException( "cqName must not be null"); } ClientCQ cq = ((DefaultQueryService) realQueryService).getCqService().newCq(cqName, queryString, cqAttributes, ((DefaultQueryService) realQueryService).getPool(), isDurable); cq.setProxyCache(proxyCache); this.cqNames.add(cq.getName()); return cq; } finally { postOp(); } }
@Override public CqQuery newCq(String queryString, CqAttributes cqAttributes, boolean isDurable) throws QueryInvalidException, CqException { preOp(true); ClientCQ cq = null; try { cq = ((DefaultQueryService) realQueryService).getCqService().newCq(null, queryString, cqAttributes, ((DefaultQueryService) realQueryService).getPool(), isDurable); cq.setProxyCache(this.proxyCache); this.cqNames.add(cq.getName()); } catch (CqExistsException cqe) { // Should not throw in here. if (logger.isDebugEnabled()) { logger.debug("Unable to createCq. Error: {}", cqe.getMessage(), cqe); } } finally { postOp(); } return cq; }
@Override public CqQuery newCq(String queryString, CqAttributes cqAttributes) throws QueryInvalidException, CqException { preOp(true); ClientCQ cq = null; try { cq = ((DefaultQueryService) realQueryService).getCqService().newCq(null, queryString, cqAttributes, ((DefaultQueryService) realQueryService).getPool(), false); cq.setProxyCache(this.proxyCache); this.cqNames.add(cq.getName()); } catch (CqExistsException cqe) { // Should not throw in here. if (logger.isDebugEnabled()) { logger.debug("Unable to createCq. Error: {}", cqe.getMessage(), cqe); } } finally { postOp(); } return cq; }