Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
basic::database::schema_generator::Column Class Reference

#include <Column.hh>

Inheritance diagram for basic::database::schema_generator::Column:
Inheritance graph

Public Member Functions

 Column (std::string const &name, DbDataTypeOP type)
 Column (std::string const &name, DbDataTypeOP type, bool allow_null)
 Column (std::string const &name, DbDataTypeOP type, bool allow_null, bool auto_increment, platform::Size auto_increment_base=0)
std::string name () const
bool auto_increment () const
platform::Size auto_increment_base () const
std::string print (utility::sql_database::sessionOP db_session) const
bool operator== (const Column &other) const
- Public Member Functions inherited from utility::VirtualBase
 VirtualBase ()=default
 Default constructor. More...
virtual ~VirtualBase ()=default
 The virtual destructor is one of the main reasons for the VirtualBase class. More...
 VirtualBase (VirtualBase const &)=default
 VirtualBase (VirtualBase &&)=default
VirtualBaseoperator= (VirtualBase const &)=default
VirtualBaseoperator= (VirtualBase &&)=default

Private Attributes

std::string name_
DbDataTypeOP type_
bool allow_null_
bool auto_increment_
platform::Size auto_increment_base_

Constructor & Destructor Documentation

basic::database::schema_generator::Column::Column ( std::string const &  name,
DbDataTypeOP  type 
basic::database::schema_generator::Column::Column ( std::string const &  name,
DbDataTypeOP  type,
bool  allow_null 
basic::database::schema_generator::Column::Column ( std::string const &  name,
DbDataTypeOP  type,
bool  allow_null,
bool  auto_increment,
platform::Size  auto_increment_base = 0 

Member Function Documentation

bool basic::database::schema_generator::Column::auto_increment ( ) const

References auto_increment_.

platform::Size basic::database::schema_generator::Column::auto_increment_base ( ) const

References auto_increment_base_.

std::string basic::database::schema_generator::Column::name ( ) const

References name_.

Referenced by operator==().

bool basic::database::schema_generator::Column::operator== ( const Column other) const

References name(), and name_.

std::string basic::database::schema_generator::Column::print ( utility::sql_database::sessionOP  db_session) const

Member Data Documentation

bool basic::database::schema_generator::Column::allow_null_

Referenced by print().

bool basic::database::schema_generator::Column::auto_increment_

Referenced by auto_increment(), and print().

platform::Size basic::database::schema_generator::Column::auto_increment_base_

Referenced by auto_increment_base().

std::string basic::database::schema_generator::Column::name_

Referenced by name(), operator==(), and print().

DbDataTypeOP basic::database::schema_generator::Column::type_

Referenced by print().

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