OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 746 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 748 of file ParserNode.h.

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

Definition at line 750 of file ParserNode.h.

751  : notnull(false), unique(false), is_primarykey(false), check_condition(c) {}
std::unique_ptr< Expr > check_condition
Definition: ParserNode.h:771
Parser::ColumnConstraintDef::ColumnConstraintDef ( std::string *  t,
std::string *  c 
)
inline

Definition at line 752 of file ParserNode.h.

753  : notnull(false)
754  , unique(false)
755  , is_primarykey(false)
756  , foreign_table(t)
757  , foreign_column(c) {}
std::unique_ptr< std::string > foreign_column
Definition: ParserNode.h:773
std::unique_ptr< std::string > foreign_table
Definition: ParserNode.h:772

Member Function Documentation

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

Definition at line 762 of file ParserNode.h.

References check_condition.

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

Definition at line 761 of file ParserNode.h.

References defaultval.

761 { return defaultval.get(); }
std::unique_ptr< Literal > defaultval
Definition: ParserNode.h:770
const std::string* Parser::ColumnConstraintDef::get_foreign_column ( ) const
inline

Definition at line 764 of file ParserNode.h.

References foreign_column.

764 { return foreign_column.get(); }
std::unique_ptr< std::string > foreign_column
Definition: ParserNode.h:773
const std::string* Parser::ColumnConstraintDef::get_foreign_table ( ) const
inline

Definition at line 763 of file ParserNode.h.

References foreign_table.

763 { return foreign_table.get(); }
std::unique_ptr< std::string > foreign_table
Definition: ParserNode.h:772
bool Parser::ColumnConstraintDef::get_is_primarykey ( ) const
inline

Definition at line 760 of file ParserNode.h.

References is_primarykey.

760 { return is_primarykey; }
bool Parser::ColumnConstraintDef::get_notnull ( ) const
inline

Definition at line 758 of file ParserNode.h.

References notnull.

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

758 { return notnull; }

+ Here is the caller graph for this function:

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

Definition at line 759 of file ParserNode.h.

References unique.

759 { return unique; }

Member Data Documentation

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

Definition at line 771 of file ParserNode.h.

Referenced by get_check_condition().

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

Definition at line 770 of file ParserNode.h.

Referenced by get_defaultval().

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

Definition at line 773 of file ParserNode.h.

Referenced by get_foreign_column().

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

Definition at line 772 of file ParserNode.h.

Referenced by get_foreign_table().

bool Parser::ColumnConstraintDef::is_primarykey
private

Definition at line 769 of file ParserNode.h.

Referenced by get_is_primarykey().

bool Parser::ColumnConstraintDef::notnull
private

Definition at line 767 of file ParserNode.h.

Referenced by get_notnull().

bool Parser::ColumnConstraintDef::unique
private

Definition at line 768 of file ParserNode.h.

Referenced by get_unique().


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