AEInPredicate Class Reference

This class models the <in predicate> in the SQL-92: More...

Inherits AEBinaryExprT< AEBooleanExpr, AEValueList, AENode >.

List of all members.

Public Member Functions

virtual void AcceptVisitor (AENodeVisitor &in_visitor)
 Calls the correct method on the visitor.
 AEInPredicate (const AEInPredicate &in_other)
 Copy constructor.
 AEInPredicate (DSIExtDataEngineContext *in_deContext, AutoPtr< AEValueList > in_rowValue, AutoPtr< AENode > in_predicateValue)
 Constructor.
virtual AEInPredicateClone () const
 Creates a clone of this node object.
virtual const AEInPredicateGetAsInPredicate () const
 Gets the object as an AEInPredicate object.
virtual AEInPredicateGetAsInPredicate ()
 Gets the object as an AEInPredicate object.
virtual simba_wstring GetLogString () const
 Returns a string name for this node for the purpose of logging.
virtual AENodeType GetNodeType () const
 Returns an integer that uniquely identifies the node class. See the definition of AENodeType for values defined.
virtual bool IsPredicate () const
 Determines if this is a predicate node.
 ~AEInPredicate ()
 Destructor.

Detailed Description

This class models the <in predicate> in the SQL-92:

<in predicate> ::= <row value constructor> [ NOT ] IN <in predicate value>

<in predicate value> ::= <table subquery> | <left paren> <in value list> <right paren>

<in value list> ::= <value expression> { <comma> <value expression> }...

NOTE: Since <in predicate value> can either be a subquery or a list of values, it is declared in this class as of type AENode. This, however, does not mean any AENode can be used as <in predicate value>.

Will always have two children (GetChildCount() returns 2):


Constructor & Destructor Documentation

AEInPredicate ( DSIExtDataEngineContext in_deContext,
AutoPtr< AEValueList in_rowValue,
AutoPtr< AENode in_predicateValue 
)

Constructor.

Parameters:
in_deContext The DataEngine context for the statement. (NOT OWN)
in_rowValue The <row value constructor> in <in predicate>.
in_predicateValue The <in predicate value> in <in predicate>.
Exceptions:
InvalidArgumenException when one of the following conditions holds,

  • in_value does not own an object
  • in_valueList does not own an object
  • the object wrapped in in_predicateValue is neither an AESubQuery nor an AEValueList
AEInPredicate ( const AEInPredicate in_other  ) 

Copy constructor.

To support "cloning". See Clone() method.

Parameters:
in_other The other node to create copy from.
~AEInPredicate (  ) 

Destructor.


Member Function Documentation

virtual void AcceptVisitor ( AENodeVisitor in_visitor  )  [virtual]

Calls the correct method on the visitor.

Parameters:
in_visitor The visiting object.

Implements AENode.

virtual AEInPredicate* Clone (  )  const [virtual]

Creates a clone of this node object.

Returns:
A clone of this node object. (OWN)

Implements AEBooleanExpr.

virtual const AEInPredicate* GetAsInPredicate (  )  const [virtual]

Gets the object as an AEInPredicate object.

Overrides the method defined in AEBooleanExpr.

Returns:
this object as an AEInPredicate object. (NOT OWN)

Reimplemented from AEBooleanExpr.

virtual AEInPredicate* GetAsInPredicate (  )  [virtual]

Gets the object as an AEInPredicate object.

Overrides the method defined in AEBooleanExpr.

Returns:
this object as an AEInPredicate object. (NOT OWN)

Reimplemented from AEBooleanExpr.

virtual simba_wstring GetLogString (  )  const [virtual]

Returns a string name for this node for the purpose of logging.

Returns:
A string representation of this node for logging purposes.

Implements AENode.

virtual AENodeType GetNodeType (  )  const [virtual]

Returns an integer that uniquely identifies the node class. See the definition of AENodeType for values defined.

Returns:
The ID that uniquely identifies this type of nodes.

Implements AENode.

virtual bool IsPredicate (  )  const [virtual]

Determines if this is a predicate node.

This default implementation always returns false. All predicate node must override it.

Returns:
True if this is a predicate node, false otherwise.

Reimplemented from AEBooleanExpr.


The documentation for this class was generated from the following file:

Generated on Wed May 17 14:21:16 2017 for SimbaEngine 10.1.3.1011 by simba