org.teiid.query.processor.relational
Class RelationalNodeUtil

java.lang.Object
  extended by org.teiid.query.processor.relational.RelationalNodeUtil

public class RelationalNodeUtil
extends java.lang.Object

Since:
4.2

Method Summary
static boolean isUpdate(Command command)
          Returns whether the relational command is an update.
static boolean shouldExecute(Command command, boolean simplifyCriteria)
          Decides whether a command needs to be executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 - wheter 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:
TeiidComponentException
ExpressionEvaluationException
Since:
4.2

isUpdate

public static boolean isUpdate(Command command)
Returns whether the relational command is an update.

Parameters:
command -
Returns:
Since:
4.2


Copyright © 2011. All Rights Reserved.