AEExistsPredicate Class Reference

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

Inherits AEUnaryExprT< AEBooleanExpr, AERelationalExpr >.

List of all members.

Public Member Functions

virtual void AcceptVisitor (AENodeVisitor &in_visitor)
 Calls the correct method on the visitor.
 AEExistsPredicate (const AEExistsPredicate &in_other)
 Copy constructor.
 AEExistsPredicate (AutoPtr< AERelationalExpr > in_subquery)
 Constructor.
virtual AEExistsPredicateClone () const
 Creates a clone of this node object.
virtual const AEExistsPredicateGetAsExistsPredicate () const
 Retrieves the object as an AEExistsPredicate object.
virtual AEExistsPredicateGetAsExistsPredicate ()
 Retrieves the object as an AEExistsPredicate 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.
virtual bool IsPredicate () const
 Determines if this is a predicate node.
virtual ~AEExistsPredicate ()
 Destructor.

Detailed Description

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

<exists predicate> ::= EXISTS <table sub-query>

For practical purpose, an <exists predicate> is considered as a "unary" operation since it only takes a sub-query as the operand.

According to the SQL-92 spec, more than one expression is allowed in the select list of the sub-query. This is the only case where more than one expression is allowed in the sub-query when the sub-query is not in the FROM list.

Will always have one child (GetChildCount() returns 1):


Constructor & Destructor Documentation

AEExistsPredicate ( AutoPtr< AERelationalExpr in_subquery  ) 

Constructor.

Parameters:
in_subquery The sub-query for the predicate.
Exceptions:
SEInvalidArgumentException when in_subquery does not own a sub-query object
AEExistsPredicate ( const AEExistsPredicate in_other  ) 

Copy constructor.

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

Parameters:
in_other The other node to create copy from.
virtual ~AEExistsPredicate (  )  [virtual]

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 AEExistsPredicate* Clone (  )  const [virtual]

Creates a clone of this node object.

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

Implements AEBooleanExpr.

virtual const AEExistsPredicate* GetAsExistsPredicate (  )  const [virtual]

Retrieves the object as an AEExistsPredicate object.

Overrides the method defined in AEBooleanExpr.

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

Reimplemented from AEBooleanExpr.

virtual AEExistsPredicate* GetAsExistsPredicate (  )  [virtual]

Retrieves the object as an AEExistsPredicate object.

Overrides the method defined in AEBooleanExpr.

Returns:
this object as an AEExistsPredicate 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