COOPY » Guide  version 0.6.5
Public Member Functions
coopy::store::ColumnInfo Class Reference

Name and type of column, when available. More...

#include <ColumnInfo.h>

Public Member Functions

 ColumnInfo ()
 ColumnInfo (std::string name)
 ColumnInfo (std::string name, const ColumnType &t)
virtual ~ColumnInfo ()
virtual bool hasName () const
virtual std::string getName () const
virtual bool hasPrimaryKey () const
virtual bool isPrimaryKey () const
virtual bool hasForeignKey () const
virtual bool isForeignKey () const
const ColumnTypegetColumnType () const
virtual bool hasType () const
void setName (std::string name)
void setPk (bool pk)
void setAutoIncrement (bool ai)
void setReference (std::string t, std::string c)
void setType (const std::string name, const std::string lang="unknown")

Detailed Description

Name and type of column, when available.

Definition at line 86 of file ColumnInfo.h.


Constructor & Destructor Documentation

coopy::store::ColumnInfo::ColumnInfo ( ) [inline]

Definition at line 93 of file ColumnInfo.h.

coopy::store::ColumnInfo::ColumnInfo ( std::string  name) [inline]

Definition at line 94 of file ColumnInfo.h.

coopy::store::ColumnInfo::ColumnInfo ( std::string  name,
const ColumnType t 
) [inline]

Definition at line 95 of file ColumnInfo.h.

virtual coopy::store::ColumnInfo::~ColumnInfo ( ) [inline, virtual]

Definition at line 97 of file ColumnInfo.h.


Member Function Documentation

const ColumnType& coopy::store::ColumnInfo::getColumnType ( ) const [inline]
virtual std::string coopy::store::ColumnInfo::getName ( ) const [inline, virtual]
virtual bool coopy::store::ColumnInfo::hasForeignKey ( ) const [inline, virtual]

Definition at line 107 of file ColumnInfo.h.

References coopy::store::ColumnType::foreignKeySet.

virtual bool coopy::store::ColumnInfo::hasName ( ) const [inline, virtual]
virtual bool coopy::store::ColumnInfo::hasPrimaryKey ( ) const [inline, virtual]

Definition at line 103 of file ColumnInfo.h.

References coopy::store::ColumnType::primaryKeySet.

virtual bool coopy::store::ColumnInfo::hasType ( ) const [inline, virtual]

Definition at line 113 of file ColumnInfo.h.

Referenced by coopy::store::sqlite::SqliteSheet::create().

virtual bool coopy::store::ColumnInfo::isForeignKey ( ) const [inline, virtual]

Definition at line 109 of file ColumnInfo.h.

References coopy::store::ColumnType::foreignKey.

virtual bool coopy::store::ColumnInfo::isPrimaryKey ( ) const [inline, virtual]
void coopy::store::ColumnInfo::setAutoIncrement ( bool  ai) [inline]
void coopy::store::ColumnInfo::setName ( std::string  name) [inline]

Definition at line 115 of file ColumnInfo.h.

Referenced by coopy::store::sqlite::SqliteSheet::insertColumn().

void coopy::store::ColumnInfo::setPk ( bool  pk) [inline]
void coopy::store::ColumnInfo::setReference ( std::string  t,
std::string  c 
) [inline]
void coopy::store::ColumnInfo::setType ( const std::string  name,
const std::string  lang = "unknown" 
) [inline]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines