TreeFrogFramework: src/tsqljoin.h Source File

Go to the documentation of this file.

1#pragma once

2#include <TCriteria>

3#include <TGlobal>

4

13template <class T>

15public:

20

23 int joinColumn() const { return _joinColumn; }

25

26private:

28 int _joinColumn;

30};

31

32

33template <class T>

35 _mode(TSql::InnerJoin), _joinColumn(-1), _criteria()

36{

37}

38

39template <class T>

41 _mode(TSql::InnerJoin), _joinColumn(joinColumn), _criteria(criteria)

42{

43}

44

45template <class T>

47 _mode(joinMode), _joinColumn(joinColumn), _criteria(criteria)

48{

49}

50

51template <class T>

53 _mode(other.mode), _joinColumn(other._joinColumn), _criteria(other._criteria)

54{

55}

56

57template <class T>

59{

60 _mode = other._mode;

61 _joinColumn = other._joinColumn;

62 _criteria = other._criteria;

63}

64

The TCriteria class represents a WHERE clause without SQL for the sake of database abstraction.

Definition tcriteria.h:6

The TSqlJoin class represents JOIN clause for combination to a record of other table.

Definition tsqljoin.h:14

TSql::JoinMode joinMode() const

Definition tsqljoin.h:22

TCriteria criteria() const

Definition tsqljoin.h:24

int joinColumn() const

Definition tsqljoin.h:23

TSqlJoin & operator=(const TSqlJoin &other)

Definition tsqljoin.h:58

TSqlJoin()

Definition tsqljoin.h:34

The TSql namespace contains miscellaneous identifiers used throughout the SQL library.

JoinMode

Definition tfnamespace.h:297