OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Parser::ColumnConstraintDef Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::ColumnConstraintDef:
+ Collaboration diagram for Parser::ColumnConstraintDef:

Public Member Functions

 ColumnConstraintDef (bool n, bool u, bool p, Literal *d)
 
 ColumnConstraintDef (Expr *c)
 
 ColumnConstraintDef (std::string *t, std::string *c)
 
bool get_notnull () const
 
bool get_unique () const
 
bool get_is_primarykey () const
 
const Literalget_defaultval () const
 
const Exprget_check_condition () const
 
const std::string * get_foreign_table () const
 
const std::string * get_foreign_column () const
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

bool notnull_
 
bool unique_
 
bool is_primarykey_
 
std::unique_ptr< Literaldefaultval_
 
std::unique_ptr< Exprcheck_condition_
 
std::unique_ptr< std::string > foreign_table_
 
std::unique_ptr< std::string > foreign_column_
 

Detailed Description

Definition at line 776 of file ParserNode.h.

Constructor & Destructor Documentation

Parser::ColumnConstraintDef::ColumnConstraintDef ( bool  n,
bool  u,
bool  p,
Literal d 
)
inline

Definition at line 778 of file ParserNode.h.

Parser::ColumnConstraintDef::ColumnConstraintDef ( Expr c)
inline

Definition at line 780 of file ParserNode.h.

Parser::ColumnConstraintDef::ColumnConstraintDef ( std::string *  t,
std::string *  c 
)
inline

Definition at line 782 of file ParserNode.h.

783  : notnull_(false)
784  , unique_(false)
785  , is_primarykey_(false)
786  , foreign_table_(t)
787  , foreign_column_(c) {}
std::unique_ptr< std::string > foreign_table_
Definition: ParserNode.h:802
std::unique_ptr< std::string > foreign_column_
Definition: ParserNode.h:803
char * t

Member Function Documentation

const Expr* Parser::ColumnConstraintDef::get_check_condition ( ) const
inline

Definition at line 792 of file ParserNode.h.

References check_condition_.

792 { return check_condition_.get(); }
std::unique_ptr< Expr > check_condition_
Definition: ParserNode.h:801
const Literal* Parser::ColumnConstraintDef::get_defaultval ( ) const
inline

Definition at line 791 of file ParserNode.h.

References defaultval_.

Referenced by Parser::DDLStmt::setColumnDescriptor().

791 { return defaultval_.get(); }
std::unique_ptr< Literal > defaultval_
Definition: ParserNode.h:800

+ Here is the caller graph for this function:

const std::string* Parser::ColumnConstraintDef::get_foreign_column ( ) const
inline

Definition at line 794 of file ParserNode.h.

References foreign_column_.

794 { return foreign_column_.get(); }
std::unique_ptr< std::string > foreign_column_
Definition: ParserNode.h:803
const std::string* Parser::ColumnConstraintDef::get_foreign_table ( ) const
inline

Definition at line 793 of file ParserNode.h.

References foreign_table_.

793 { return foreign_table_.get(); }
std::unique_ptr< std::string > foreign_table_
Definition: ParserNode.h:802
bool Parser::ColumnConstraintDef::get_is_primarykey ( ) const
inline

Definition at line 790 of file ParserNode.h.

References is_primarykey_.

790 { return is_primarykey_; }
bool Parser::ColumnConstraintDef::get_notnull ( ) const
inline

Definition at line 788 of file ParserNode.h.

References notnull_.

Referenced by Parser::DDLStmt::setColumnDescriptor().

788 { return notnull_; }

+ Here is the caller graph for this function:

bool Parser::ColumnConstraintDef::get_unique ( ) const
inline

Definition at line 789 of file ParserNode.h.

References unique_.

789 { return unique_; }

Member Data Documentation

std::unique_ptr<Expr> Parser::ColumnConstraintDef::check_condition_
private

Definition at line 801 of file ParserNode.h.

Referenced by get_check_condition().

std::unique_ptr<Literal> Parser::ColumnConstraintDef::defaultval_
private

Definition at line 800 of file ParserNode.h.

Referenced by get_defaultval().

std::unique_ptr<std::string> Parser::ColumnConstraintDef::foreign_column_
private

Definition at line 803 of file ParserNode.h.

Referenced by get_foreign_column().

std::unique_ptr<std::string> Parser::ColumnConstraintDef::foreign_table_
private

Definition at line 802 of file ParserNode.h.

Referenced by get_foreign_table().

bool Parser::ColumnConstraintDef::is_primarykey_
private

Definition at line 799 of file ParserNode.h.

Referenced by get_is_primarykey().

bool Parser::ColumnConstraintDef::notnull_
private

Definition at line 797 of file ParserNode.h.

Referenced by get_notnull().

bool Parser::ColumnConstraintDef::unique_
private

Definition at line 798 of file ParserNode.h.

Referenced by get_unique().


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