aboutsummaryrefslogtreecommitdiff
path: root/qt/oracle/basic/test.hxx
blob: 274fcda1fc9efc5a61da79115535b14922bfc3f3 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// file      : qt/oracle/basic/test.hxx
// copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

#ifndef TEST_HXX
#define TEST_HXX

#include <QtCore/QString>
#include <QtCore/QByteArray>

#pragma db object
struct object
{
  bool
  operator== (const object& x) const
  {
    return
      varchar2 == x.varchar2 &&
      char_ == x.char_ &&
      nchar == x.nchar &&
      nvarchar2 == x.nvarchar2 &&
      clob == x.clob &&
      nclob == x.nclob &&
      blob == x.blob &&
      raw == x.raw;
  }

  #pragma db id
  QString varchar2;

  #pragma db type ("CHAR(13)")
  QString char_;

  #pragma db type ("NCHAR(13)")
  QString nchar;

  #pragma db type ("NVARCHAR2(512)")
  QString nvarchar2;

  #pragma db type ("CLOB")
  QString clob;

  #pragma db type ("NCLOB")
  QString nclob;

  QByteArray blob;

  #pragma db type ("RAW(128)")
  QByteArray raw;
};

#endif // TEST_HXX