COOPY » Guide
version 0.6.5
|
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 ColumnType & | getColumnType () 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") |
Name and type of column, when available.
Definition at line 86 of file ColumnInfo.h.
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.
const ColumnType& coopy::store::ColumnInfo::getColumnType | ( | ) | const [inline] |
Definition at line 111 of file ColumnInfo.h.
Referenced by cellToJson(), coopy::store::SheetSchema::clone(), coopy::store::TextBook::copy(), coopy::store::SimpleSheetSchema::copy(), coopy::store::sqlite::SqliteSheet::create(), coopy::store::SimpleSheetSchema::insertColumn(), and coopy::store::NameSniffer::sniff().
virtual std::string coopy::store::ColumnInfo::getName | ( | ) | const [inline, virtual] |
Definition at line 101 of file ColumnInfo.h.
Referenced by coopy::cmp::Patcher::addPoolsFromFlags(), coopy::app::Diff::apply(), assertColumn(), coopy::store::SheetSchema::clone(), coopy::store::TextBook::copy(), coopy::store::SimpleSheetSchema::copy(), coopy::store::sqlite::SqliteSheet::create(), coopy::store::PolySheet::createHeaders(), coopy::store::TextBook::fixSchema(), coopy::fold::FoldTool::fold(), coopy::store::SqlTable::getAllButPrimaryKey(), coopy::store::SheetSchema::getColumnIndexByName(), coopy::store::SqlTable::getColumnNames(), coopy::store::SqlTable::getPrimaryKey(), coopy::store::sqlite::SqliteSheet::insertColumn(), coopy::store::gnumeric::GnumericSheet::insertColumn(), coopy::store::SimpleSheetSchema::insertColumn(), coopy::store::gnumeric::GnumericSheet::modifyColumn(), coopy::store::SimpleSheetSchema::modifyColumn(), coopy::store::sqlite::SqliteSheet::moveColumn(), readPart(), CsvRender::renderHtml(), coopy::cmp::BookCompare::resolve(), coopy::store::NameSniffer::sniff(), and writePart().
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] |
Definition at line 105 of file ColumnInfo.h.
References coopy::store::ColumnType::primaryKey.
Referenced by coopy::store::sqlite::SqliteSheet::create(), coopy::store::SqlTable::getAllButPrimaryKey(), coopy::store::SqlTable::getPrimaryKey(), and coopy::store::IndexSniffer::sniff().
void coopy::store::ColumnInfo::setAutoIncrement | ( | bool | ai | ) | [inline] |
Definition at line 125 of file ColumnInfo.h.
References coopy::store::ColumnType::autoIncrement, and coopy::store::ColumnType::autoIncrementSet.
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] |
Definition at line 120 of file ColumnInfo.h.
References coopy::store::ColumnType::primaryKey, and coopy::store::ColumnType::primaryKeySet.
void coopy::store::ColumnInfo::setReference | ( | std::string | t, |
std::string | c | ||
) | [inline] |
Definition at line 130 of file ColumnInfo.h.
References coopy::store::ColumnType::foreignKey, coopy::store::ColumnType::foreignKeySet, and coopy::store::ColumnType::foreignTable.
void coopy::store::ColumnInfo::setType | ( | const std::string | name, |
const std::string | lang = "unknown" |
||
) | [inline] |
Definition at line 136 of file ColumnInfo.h.
References coopy::store::ColumnType::setType().
Referenced by coopy::store::sqlite::SqliteSheet::connect(), and coopy::cmp::SheetPatcher::handleConflicts().