OmniSciDB  b24e664e58
 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 762 of file ParserNode.h.

Constructor & Destructor Documentation

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

Definition at line 764 of file ParserNode.h.

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

Definition at line 766 of file ParserNode.h.

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

Definition at line 768 of file ParserNode.h.

769  : notnull(false)
770  , unique(false)
771  , is_primarykey(false)
772  , foreign_table(t)
773  , foreign_column(c) {}
std::unique_ptr< std::string > foreign_column
Definition: ParserNode.h:789
std::unique_ptr< std::string > foreign_table
Definition: ParserNode.h:788

Member Function Documentation

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

Definition at line 778 of file ParserNode.h.

References check_condition.

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

Definition at line 777 of file ParserNode.h.

References defaultval.

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

Definition at line 780 of file ParserNode.h.

References foreign_column.

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

Definition at line 779 of file ParserNode.h.

References foreign_table.

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

Definition at line 776 of file ParserNode.h.

References is_primarykey.

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

Definition at line 774 of file ParserNode.h.

References notnull.

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

774 { return notnull; }

+ Here is the caller graph for this function:

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

Definition at line 775 of file ParserNode.h.

References unique.

775 { return unique; }

Member Data Documentation

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

Definition at line 787 of file ParserNode.h.

Referenced by get_check_condition().

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

Definition at line 786 of file ParserNode.h.

Referenced by get_defaultval().

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

Definition at line 789 of file ParserNode.h.

Referenced by get_foreign_column().

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

Definition at line 788 of file ParserNode.h.

Referenced by get_foreign_table().

bool Parser::ColumnConstraintDef::is_primarykey
private

Definition at line 785 of file ParserNode.h.

Referenced by get_is_primarykey().

bool Parser::ColumnConstraintDef::notnull
private

Definition at line 783 of file ParserNode.h.

Referenced by get_notnull().

bool Parser::ColumnConstraintDef::unique
private

Definition at line 784 of file ParserNode.h.

Referenced by get_unique().


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