Rosetta Utilities  2014.35
Public Member Functions | Private Attributes | List of all members
basic::database::schema_generator::Column Class Reference

#include <Column.hh>

Public Member Functions

 Column (std::string name, DbDataTypeOP type)
 
 Column (std::string name, DbDataTypeOP type, bool allow_null)
 
 Column (std::string name, DbDataTypeOP type, bool allow_null, bool auto_increment, platform::Size auto_increment_base=0)
 
 Column (Column const &src)
 
virtual ~Column ()
 
std::string name () const
 
bool auto_increment () const
 
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::pointer::ReferenceCount
void ctor ()
 
virtual ~ReferenceCount ()
 Destructor. More...
 
Size ref_count () const
 Reference count. More...
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from utility::pointer::ReferenceCount
typedef platform::Size Size
 
typedef platform::Size size_type
 
- Protected Member Functions inherited from utility::pointer::ReferenceCount
 ReferenceCount ()
 Default constructor. More...
 
 ReferenceCount (ReferenceCount const &)
 Copy constructor. More...
 
ReferenceCountoperator= (ReferenceCount const &)
 Copy assignment. More...
 

Constructor & Destructor Documentation

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

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_
private

Referenced by print().

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

Referenced by auto_increment(), and print().

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

Referenced by auto_increment_base().

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

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

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

Referenced by print().


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