全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド ページ
recordset.h
1 #ifndef BZS_DB_PROTOCOL_TDAP_CLIENT_RECORDSET_H
2 #define BZS_DB_PROTOCOL_TDAP_CLIENT_RECORDSET_H
3 /*=================================================================
4  Copyright (C) 2014 BizStation Corp All rights reserved.
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License
8  as published by the Free Software Foundation; either version 2
9  of the License, or (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19  02111-1307, USA.
20 =================================================================*/
21 #include "groupQuery.h"
22 
23 namespace bzs
24 {
25 namespace db
26 {
27 namespace protocol
28 {
29 namespace tdap
30 {
31 namespace client
32 {
33 
34 class DLLLIB recordset
35 {
36 
37  friend class activeTable;
38  class recordsetImple* m_imple;
39 
40 public:
41  typedef std::vector<row_ptr>::iterator iterator;
42 
43  recordset();
44  recordset(const recordset& r);
45  recordset& operator=(const recordset& r);
46  ~recordset();
47  recordset* clone() const;
48  row& operator[](size_t index) const;
49  row& first() const;
50  row& last() const;
51  size_t size() const;
52  size_t count() const;
53  void clearRecords();
54  const fielddefs* fieldDefs() const;
55  void clear();
56  recordset& top(recordset& c, int n) const;
57  iterator begin();
58  iterator end();
59  iterator erase(size_t index);
60  iterator erase(const iterator& it);
61  void removeField(int index);
62  recordset& matchBy(recordsetQuery& rq);
63  recordset& groupBy(groupQuery& gq);
64  recordset& orderBy(const _TCHAR* name1, const _TCHAR* name2 = NULL,
65  const _TCHAR* name3 = NULL, const _TCHAR* name4 = NULL,
66  const _TCHAR* name5 = NULL, const _TCHAR* name6 = NULL,
67  const _TCHAR* name7 = NULL, const _TCHAR* name8 = NULL);
68  recordset& orderBy(const sortFields& orders);
69  recordset& reverse();
70  void appendField(const _TCHAR* name, int type, short len);
71  recordset& operator+=(const recordset& r);
72  void release();
73  static recordset* create();
74 
75 #ifdef _DEBUG
76  void dump();
77 #endif
78 };
79 
80 } // namespace client
81 } // namespace tdap
82 } // namespace protocol
83 } // namespace db
84 } // namespace bzs
85 
86 #endif // BZS_DB_PROTOCOL_TDAP_CLIENT_RECORDSET_H
const _TCHAR * protocol(const _TCHAR *uri)
Definition: uri.h:42
activeTableの読み取りクエリー 結果セットクラス
Definition: recordset.h:34
グルーピング Firstクラス
Definition: groupQuery.h:301
std::vector< row_ptr >::iterator iterator
Definition: recordset.h:41
グルーピング条件を指定するクラス
Definition: groupQuery.h:190
fielddef のコレクションクラス
Definition: field.h:73
recordset のソートパラメータコレクションクラス
Definition: groupQuery.h:72
グルーピング レコード数カウンター
Definition: groupQuery.h:229
recordset フィルタリングクエリー
Definition: groupQuery.h:95
フィールドコレクションのベースクラス
Definition: fields.h:123
グルーピング Lastクラス
Definition: groupQuery.h:287
recordset 用テーブルアクセスクラス
Definition: activeTable.h:80

Transactd SDK 2015年09月08日(火) 19時13分35秒 doxygen