aboutsummaryrefslogtreecommitdiff
path: root/qt/oracle/basic/test.hxx
blob: 979e11ff65c620840fb5d91d60abc4a79dfbf947 (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
// file      : qt/oracle/basic/test.hxx
// author    : Constantin Michael <constantin@codesynthesis.com>
// copyright : Copyright (c) 2009-2011 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
      varchar == x.varchar &&
      clob == x.clob &&
      nclob == x.nclob &&
      blob == x.blob &&
      raw == x.raw;
  }

  #pragma db id
  QString varchar;

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

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

  QByteArray blob;

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

#endif // TEST_HXX