Class RelationalNodeUtil
- java.lang.Object
-
- org.teiid.query.processor.relational.RelationalNodeUtil
-
public class RelationalNodeUtil extends Object
- Since:
- 4.2
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasOutputParams(Command command)static booleanisUpdate(Command command)Returns whether the relational command is an update.static booleanshouldExecute(Command command, boolean simplifyCriteria)Decides whether a command needs to be executed.static booleanshouldExecute(Command command, boolean simplifyCriteria, boolean duringPlanning)
-
-
-
Method Detail
-
shouldExecute
public static boolean shouldExecute(Command command, boolean simplifyCriteria) throws TeiidComponentException, ExpressionEvaluationException
Decides whether a command needs to be executed.
NOTE: This method has a side-effect. If the criteria of this command always evaluate to true, and the simplifyCriteria flag is true, then the command criteria are set to null.- Parameters:
command-simplifyCriteria- whether to simplify the criteria of the command if they always evaluate to true- Returns:
- true if this command should be executed by the connector; false otherwise.
- Throws:
TeiidComponentExceptionExpressionEvaluationException- Since:
- 4.2
-
shouldExecute
public static boolean shouldExecute(Command command, boolean simplifyCriteria, boolean duringPlanning) throws TeiidComponentException, ExpressionEvaluationException
-
isUpdate
public static boolean isUpdate(Command command)
Returns whether the relational command is an update.- Parameters:
command-- Returns:
- Since:
- 4.2
-
hasOutputParams
public static boolean hasOutputParams(Command command)
-
-