PSParameterParseNode Class Reference

This class models a dynamic parameter in a SQL statement. A dynamic parameter is indicated by a "?" mark. More...

Inherits Simba::SQLEngine::PSParseNode.

List of all members.

Public Member Functions

void AcceptVisitor (IParseTreeVisitor &in_visitor)
 Node's Accept method, used to pass a visitor.
virtual PSParameterParseNodeClone () const
 Creates a clone of this node object.
virtual PSDataType GetDataType () const
 Returns the data type of this node.
virtual simba_uint16 GetIndex () const
 Returns the index of the parameter. The index corresponds to the order of the parameters in the SQL statement. The first parameter that appears in the statement corresponds to index 0, the second parameter to index 1, the nth parameter to index (n - 1), etc...
virtual simba_wstring GetLogString () const
 Retrieves a string representation of this parse tree node.
virtual bool IsDefaultValue () const
 Indicates whether the default value for this parameter should be used.
 PSParameterParseNode (const PSParameterParseNode &in_other)
 Copy constructor.
 PSParameterParseNode (const simba_uint16 in_index, bool in_isDefaultValue)
 Constructor.
virtual const simba_wstringToString () const
 Returns a string representation of this node.
 ~PSParameterParseNode ()
 Destructor.

Detailed Description

This class models a dynamic parameter in a SQL statement. A dynamic parameter is indicated by a "?" mark.


Constructor & Destructor Documentation

PSParameterParseNode ( const simba_uint16  in_index,
bool  in_isDefaultValue 
)

Constructor.

Parameters:
in_index The index of the parameter.
in_isDefaultValue Indicates if this is a default parameter. This means that the default value for this parameter should be used.
PSParameterParseNode ( const PSParameterParseNode in_other  ) 

Copy constructor.

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

Parameters:
in_other The other node from which to create a copy.

Destructor.


Member Function Documentation

void AcceptVisitor ( IParseTreeVisitor in_visitor  )  [virtual]

Node's Accept method, used to pass a visitor.

Parameters:
in_visitor The visitor that is to be used to visit this node.

Implements PSParseNode.

virtual PSParameterParseNode* Clone (  )  const [virtual]

Creates a clone of this node object.

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

Implements PSParseNode.

virtual PSDataType GetDataType (  )  const [virtual]

Returns the data type of this node.

This implementation always returns PSDataType::PS_DT_IDENTIFIER.

Implements PSParseNode.

virtual simba_uint16 GetIndex (  )  const [virtual]

Returns the index of the parameter. The index corresponds to the order of the parameters in the SQL statement. The first parameter that appears in the statement corresponds to index 0, the second parameter to index 1, the nth parameter to index (n - 1), etc...

Returns:
The index of the parameter.
virtual simba_wstring GetLogString (  )  const [virtual]

Retrieves a string representation of this parse tree node.

For debugging purpose only.

Returns:
A string representation of this parse tree node.

Reimplemented from PSParseNode.

virtual bool IsDefaultValue (  )  const [virtual]

Indicates whether the default value for this parameter should be used.

A default parameter means that the default value for this parameter should be used.

Returns:
True if the default value for this parameter should be used; false otherwise.
virtual const simba_wstring& ToString (  )  const [virtual]

Returns a string representation of this node.

Returns:
The string representation of this node.

Reimplemented from PSParseNode.


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

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