blob: cc282e6795c3ef5726a3fdd38bba61638c750a31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include "column.h"
#include <QHash>
Column::Column() : Table()
{
}
Column::Column(const QString& database, const QString& table, const QString& column) :
Table(database, table)
{
setColumn(column);
}
Column::Column(const Column& other) :
Table(other.database, other.table)
{
column = other.column;
}
int Column::operator ==(const Column& other) const
{
return Table::operator==(other) && column == other.column;
}
QString Column::getColumn() const
{
return column;
}
void Column::setColumn(const QString& value)
{
column = value;
}
int qHash(Column column)
{
return qHash(column.getDatabase() + "." + column.getTable() + "." + column.getColumn());
}
|