private void initTransactionState(TransactionContext tc) { transactionContext = tc; if (this.transactionContext != null && this.transactionContext.getTransactionType() != Scope.NONE) { if (this.requestMsg.getRequestOptions().isContinuous()) { throw new IllegalStateException("Continuous requests are not allowed to be transactional."); //$NON-NLS-1$ } this.transactionState = TransactionState.ACTIVE; } }
private void initTransactionState(TransactionContext tc) { transactionContext = tc; if (this.transactionContext != null && this.transactionContext.getTransactionType() != Scope.NONE) { if (this.requestMsg.getRequestOptions().isContinuous()) { throw new IllegalStateException("Continuous requests are not allowed to be transactional."); //$NON-NLS-1$ } this.transactionState = TransactionState.ACTIVE; } }
private void initTransactionState(TransactionContext tc) { transactionContext = tc; if (this.transactionContext != null && this.transactionContext.getTransactionType() != Scope.NONE) { if (this.requestMsg.getRequestOptions().isContinuous()) { throw new IllegalStateException("Continuous requests are not allowed to be transactional."); //$NON-NLS-1$ } this.transactionState = TransactionState.ACTIVE; } }
private void startActivePlan(RequestWorkItem workItem, boolean addToQueue) { boolean continuous = workItem.requestMsg.getRequestOptions().isContinuous(); workItem.active = !continuous; if (addToQueue) { this.addWork(workItem); } if (!continuous) { this.currentlyActivePlans++; } }
private void startActivePlan(RequestWorkItem workItem, boolean addToQueue) { boolean continuous = workItem.requestMsg.getRequestOptions().isContinuous(); workItem.active = !continuous; if (addToQueue) { this.addWork(workItem); } if (!continuous) { this.currentlyActivePlans++; } }
private void startActivePlan(RequestWorkItem workItem, boolean addToQueue) { boolean continuous = workItem.requestMsg.getRequestOptions().isContinuous(); workItem.active = !continuous; if (addToQueue) { this.addWork(workItem); } if (!continuous) { this.currentlyActivePlans++; } }
private boolean cursorRequestExpected() { return this.transactionState != TransactionState.ACTIVE && (requestMsg.getRequestOptions().isContinuous() || (useCallingThread && isForwardOnly())); }
private boolean cursorRequestExpected() { return this.transactionState != TransactionState.ACTIVE && (requestMsg.getRequestOptions().isContinuous() || (useCallingThread && isForwardOnly())); }
private boolean cursorRequestExpected() { return this.transactionState != TransactionState.ACTIVE && (requestMsg.getRequestOptions().isContinuous() || (useCallingThread && isForwardOnly())); }
@Override public void processRequest() throws TeiidComponentException, TeiidProcessingException { super.processRequest(); if (this.requestMsg.getRequestOptions().isContinuous()) { this.processor.setContinuous(this.prepPlan, this.requestMsg.getCommandString()); } } }
@Override public void processRequest() throws TeiidComponentException, TeiidProcessingException { super.processRequest(); if (this.requestMsg.getRequestOptions().isContinuous()) { this.processor.setContinuous(this.prepPlan, this.requestMsg.getCommandString()); } } }
@Override public void processRequest() throws TeiidComponentException, TeiidProcessingException { super.processRequest(); if (this.requestMsg.getRequestOptions().isContinuous()) { this.processor.setContinuous(this.prepPlan, this.requestMsg.getCommandString()); } } }
resetExecutionState(); if (options != null) { if (options.isContinuous()) { if (!this.driverConnection.getServerConnection().supportsContinuous()) { throw new TeiidSQLException(JDBCPlugin.Util.getString("JDBC.continuous")); //$NON-NLS-1$
resetExecutionState(); if (options != null) { if (options.isContinuous()) { if (!this.driverConnection.getServerConnection().supportsContinuous()) { throw new TeiidSQLException(JDBCPlugin.Util.getString("JDBC.continuous")); //$NON-NLS-1$
resultsBuffer.setRowCount(batch.getEndRow()); if (transactionState != TransactionState.ACTIVE && (requestMsg.getRequestOptions().isContinuous() || (useCallingThread && isForwardOnly()))) { synchronized (this) { if (resultsReceiver == null) {
resultsBuffer.setRowCount(batch.getEndRow()); if (transactionState != TransactionState.ACTIVE && (requestMsg.getRequestOptions().isContinuous() || (useCallingThread && isForwardOnly()))) { synchronized (this) { if (resultsReceiver == null) {
resultsBuffer.setRowCount(batch.getEndRow()); if (transactionState != TransactionState.ACTIVE && (requestMsg.getRequestOptions().isContinuous() || (useCallingThread && isForwardOnly()))) { synchronized (this) { if (resultsReceiver == null) {
requestMsg.setFetchSize(Math.min(requestMsg.getFetchSize(), this.config.getMaxRowsFetchSize())); Request request = null; if ( requestMsg.isPreparedStatement() || requestMsg.isCallableStatement() || requestMsg.getRequestOptions().isContinuous()) { request = new PreparedStatementRequest(prepPlanCache); } else {
requestMsg.setFetchSize(Math.min(requestMsg.getFetchSize(), this.config.getMaxRowsFetchSize())); Request request = null; if ( requestMsg.isPreparedStatement() || requestMsg.isCallableStatement() || requestMsg.getRequestOptions().isContinuous()) { request = new PreparedStatementRequest(prepPlanCache); } else {
requestMsg.setFetchSize(Math.min(requestMsg.getFetchSize(), this.config.getMaxRowsFetchSize())); Request request = null; if ( requestMsg.isPreparedStatement() || requestMsg.isCallableStatement() || requestMsg.getRequestOptions().isContinuous()) { request = new PreparedStatementRequest(prepPlanCache); } else {