/** * @throws TeiidProcessingException */ public boolean testCondition(ProcedurePlan procEnv) throws TeiidComponentException, TeiidProcessingException { return procEnv.evaluateCriteria(condition); }
/** * @throws TeiidProcessingException */ public boolean testCondition(ProcedurePlan procEnv) throws TeiidComponentException, TeiidProcessingException { return procEnv.evaluateCriteria(condition); }
/** * @throws TeiidProcessingException */ public boolean testCondition(ProcedurePlan procEnv) throws TeiidComponentException, TeiidProcessingException { return procEnv.evaluateCriteria(condition); }
/** * This instruction will evaluate it's criteria, if it evaluates * to true, it will push the corresponding sub Program on to the top of the * program stack, and break from the loop. Regardless if whether any criteria * evaluate to true, this instruction will increment the program counter of the * current program. * @throws TeiidProcessingException * @see ProgramInstruction#process(ProcedurePlan) */ public void process(ProcedurePlan procEnv) throws BlockedException, TeiidComponentException, TeiidProcessingException { boolean evalValue = procEnv.evaluateCriteria(condition); if(evalValue) { LogManager.logTrace(org.teiid.logging.LogConstants.CTX_DQP, new Object[]{"IFInstruction: "+ //$NON-NLS-1$ " The criteria on the if block evaluated to true, processing the if block"}); //$NON-NLS-1$ //push the "if" Program onto the stack procEnv.push(ifProgram); } else if(elseProgram != null) { LogManager.logTrace(org.teiid.logging.LogConstants.CTX_DQP, new Object[]{"IFInstruction: "+ //$NON-NLS-1$ " The criteria on the if block evaluated to false, processing the else block"}); //$NON-NLS-1$ //push the "else" Program onto the stack procEnv.push(elseProgram); } }
/** * This instruction will evaluate it's criteria, if it evaluates * to true, it will push the corresponding sub Program on to the top of the * program stack, and break from the loop. Regardless if whether any criteria * evaluate to true, this instruction will increment the program counter of the * current program. * @throws TeiidProcessingException * @see ProgramInstruction#process(ProcedurePlan) */ public void process(ProcedurePlan procEnv) throws BlockedException, TeiidComponentException, TeiidProcessingException { boolean evalValue = procEnv.evaluateCriteria(condition); if(evalValue) { LogManager.logTrace(org.teiid.logging.LogConstants.CTX_DQP, new Object[]{"IFInstruction: "+ //$NON-NLS-1$ " The criteria on the if block evaluated to true, processing the if block"}); //$NON-NLS-1$ //push the "if" Program onto the stack procEnv.push(ifProgram); } else if(elseProgram != null) { LogManager.logTrace(org.teiid.logging.LogConstants.CTX_DQP, new Object[]{"IFInstruction: "+ //$NON-NLS-1$ " The criteria on the if block evaluated to false, processing the else block"}); //$NON-NLS-1$ //push the "else" Program onto the stack procEnv.push(elseProgram); } }
/** * This instruction will evaluate it's criteria, if it evaluates * to true, it will push the corresponding sub Program on to the top of the * program stack, and break from the loop. Regardless if whether any criteria * evaluate to true, this instruction will increment the program counter of the * current program. * @throws TeiidProcessingException * @see ProgramInstruction#process(ProcedurePlan) */ public void process(ProcedurePlan procEnv) throws BlockedException, TeiidComponentException, TeiidProcessingException { boolean evalValue = procEnv.evaluateCriteria(condition); if(evalValue) { LogManager.logTrace(org.teiid.logging.LogConstants.CTX_DQP, new Object[]{"IFInstruction: "+ //$NON-NLS-1$ " The criteria on the if block evaluated to true, processing the if block"}); //$NON-NLS-1$ //push the "if" Program onto the stack procEnv.push(ifProgram); } else if(elseProgram != null) { LogManager.logTrace(org.teiid.logging.LogConstants.CTX_DQP, new Object[]{"IFInstruction: "+ //$NON-NLS-1$ " The criteria on the if block evaluated to false, processing the else block"}); //$NON-NLS-1$ //push the "else" Program onto the stack procEnv.push(elseProgram); } }