AECreateTableAsSelect Class Reference

The AECreateTableAsSelect class models the. More...

Inherits AEUnaryExprT< AERowCountStatement, AERelationalExpr >.

List of all members.

Public Member Functions

virtual void AcceptVisitor (AENodeVisitor &in_visitor)
 Calls the correct method on the visitor.
 AECreateTableAsSelect (const AECreateTableAsSelect &in_other)
 Copy constructor.
 AECreateTableAsSelect (const simba_wstring &in_schemaName, const simba_wstring &in_catalogName, const simba_wstring &in_tableName, const std::vector< simba_wstring > &in_columns, AutoPtr< AERelationalExpr > in_relExp)
 Constructor.
AECreateTableAsSelectClone () const
 Creates a clone of this node object.
virtual const
AECreateTableAsSelect
GetAsCreateTableAsSelect () const
 Gets the statement as an AECreateTableAsSelect object.
virtual AECreateTableAsSelectGetAsCreateTableAsSelect ()
 Gets the statement as an AECreateTableAsSelect object.
const simba_wstringGetCatalogName () const
 Gets the catalog name.
const std::vector
< simba_wstring > & 
GetColumns () const
 Gets the column names vector.
virtual const
Simba::DSI::ExecutedSQLInfo
GetExecutedSQLInfo () const
 Return information about this statement.
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.
const simba_wstringGetSchemaName () const
 Gets the schema name.
const simba_wstringGetTableName () const
 Gets the table name.
virtual void Validate ()
 Validates the node. If the function successfully returns, then the node is valid.
virtual ~AECreateTableAsSelect ()
 Destructor.

Detailed Description

The AECreateTableAsSelect class models the.

a <as subquery="" clause>=""> statement of the SQL-2003 spec. (Only WITH DATA is supported)

Example SQL: CREATE TABLE tablename AS (SELECT ....) CREATE TABLE tablename(<column name list>) AS (SELECT ....) Will always have one child, an AERelationalExpr (GetChildCount() returns 1).


Constructor & Destructor Documentation

AECreateTableAsSelect ( const simba_wstring in_schemaName,
const simba_wstring in_catalogName,
const simba_wstring in_tableName,
const std::vector< simba_wstring > &  in_columns,
AutoPtr< AERelationalExpr in_relExp 
)

Constructor.

Parameters:
in_schemaName The schema name for the table.
in_catalogName The catalog name for the table.
in_tableName The name for the table.
in_columns The vector containing column names(can be of size zero).
in_relExp The AERelationalExpr(AE_NT_RX_PROJECT).
AECreateTableAsSelect ( const AECreateTableAsSelect in_other  ) 

Copy constructor.

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

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

AECreateTableAsSelect* Clone (  )  const [virtual]

Creates a clone of this node object.

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

Implements AERowCountStatement.

virtual const AECreateTableAsSelect* GetAsCreateTableAsSelect (  )  const [inline, virtual]

Gets the statement as an AECreateTableAsSelect object.

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

Reimplemented from AEStatement.

virtual AECreateTableAsSelect* GetAsCreateTableAsSelect (  )  [inline, virtual]

Gets the statement as an AECreateTableAsSelect object.

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

Reimplemented from AEStatement.

const simba_wstring& GetCatalogName (  )  const

Gets the catalog name.

Returns:
A const reference to a simba_wstring
const std::vector<simba_wstring>& GetColumns (  )  const

Gets the column names vector.

Returns:
A pointer to simba_wstring vector
virtual const Simba::DSI::ExecutedSQLInfo& GetExecutedSQLInfo (  )  const [virtual]

Return information about this statement.

Returns:
The executed SQL information linked to this statement.

Implements AEStatement.

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.

const simba_wstring& GetSchemaName (  )  const

Gets the schema name.

Returns:
A const reference to a simba_wstring
const simba_wstring& GetTableName (  )  const

Gets the table name.

Returns:
A const reference to a simba_wstring
virtual void Validate (  )  [virtual]

Validates the node. If the function successfully returns, then the node is valid.

Exceptions:
AEInvalidAetException if the node is not valid.

Reimplemented from AENode.


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