AESimpleWhenClause Class Reference

This node class represents a Simple When Clause. More...

Inherits Simba::SQLEngine::AEBinaryExprT< AEValueExpr,AEValueExpr,AEValueExpr,SharedPtr< AEValueExpr >,SharedPtr< AEValueExpr > >.

List of all members.

Public Member Functions

virtual void AcceptVisitor (AENodeVisitor &in_visitor)
 Calls the correct method on the visitor.
 AESimpleWhenClause (const AESimpleWhenClause &in_other)
 Copy constructor.
 AESimpleWhenClause (SharedPtr< AEValueExpr > in_whenOperand, SharedPtr< AEValueExpr > in_thenOperand)
 Constructor.
virtual AESimpleWhenClauseClone () const
 Creates a clone of this node object.
virtual const AESimpleWhenClauseGetAsSimpleWhenClause () const
 Retrieves the object as an AESimpleWhenClause object.
virtual AESimpleWhenClauseGetAsSimpleWhenClause ()
 Retrieves the object as an AESimpleWhenClause object.
virtual const
Simba::DSI::DSIColumnMetadata
GetColumnMetadata () const
 Gets a reference to the DSIColumnMetadata describing the 'Then' clause.
virtual SqlTypeMetadataGetComparisonMetadata ()
 Get the type metadata for the comparison to the case operand.
virtual simba_wstring GetLogString () const
 Returns a string name for this node for the purpose of logging.
SqlTypeMetadataGetMetadata () const
 Returns a SqlTypeMetadata* describing the 'Then' clause.
virtual AENodeType GetNodeType () const
 Returns an integer that uniquely identifies the node class. See the definition of AENodeType for values defined.
void SetComparisonMetadata (SqlTypeMetadata *in_metadata)
 Set the type metadata for the comparison to the case operand.
virtual ~AESimpleWhenClause ()
 Destructor.

Detailed Description

This node class represents a Simple When Clause.

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


Constructor & Destructor Documentation

AESimpleWhenClause ( SharedPtr< AEValueExpr in_whenOperand,
SharedPtr< AEValueExpr in_thenOperand 
)

Constructor.

Parameters:
in_whenOperand The When operand.
in_thenOperand The Then operand.
AESimpleWhenClause ( const AESimpleWhenClause in_other  ) 

Copy constructor.

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

Parameters:
in_other The other node to create copy from.
virtual ~AESimpleWhenClause (  )  [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.
virtual AESimpleWhenClause* Clone (  )  const [virtual]

Creates a clone of this node object.

Returns:
A clone of this node object. (OWN)
virtual const AESimpleWhenClause* GetAsSimpleWhenClause (  )  const [inline, virtual]

Retrieves the object as an AESimpleWhenClause object.

Returns:
this object as an AESimpleWhenClause object. (NOT OWN)
virtual AESimpleWhenClause* GetAsSimpleWhenClause (  )  [inline, virtual]

Retrieves the object as an AESimpleWhenClause object.

Returns:
this object as an AESimpleWhenClause object. (NOT OWN)
virtual const Simba::DSI::DSIColumnMetadata& GetColumnMetadata (  )  const [virtual]

Gets a reference to the DSIColumnMetadata describing the 'Then' clause.

Returns:
Reference to the DSIColumnMetadata describing the column.
virtual SqlTypeMetadata* GetComparisonMetadata (  )  [virtual]

Get the type metadata for the comparison to the case operand.

Note: This is only available after the AESimpleCase initializes metadata.

Returns:
The type metadata for the comparison. (NOT OWN)
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.
SqlTypeMetadata* GetMetadata (  )  const

Returns a SqlTypeMetadata* describing the 'Then' clause.

Exceptions:
throws SEInvalidOperationException when SqlTypeMetadata is null.
Returns:
The SqlTypeMetadata for the child 'then' node. (NOT OWN)
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.
void SetComparisonMetadata ( SqlTypeMetadata in_metadata  ) 

Set the type metadata for the comparison to the case operand.

Note: This is only available after the AESimpleCase initializes metadata.

Parameters:
in_metadata Pointer to the metadata. (NOT OWN)

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

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