Nemiver  0.3
nmv-insert-statement.h
Go to the documentation of this file.
1 /* -*- Mode: C++; indent-tabs-mode:nil; c-basic-offset:4; -*- */
2 
3 /*
4  *This file is part of the Nemiver Project.
5  *
6  *Nemiver is free software; you can redistribute
7  *it and/or modify it under the terms of
8  *the GNU General Public License as published by the
9  *Free Software Foundation; either version 2,
10  *or (at your option) any later version.
11  *
12  *Nemiver is distributed in the hope that it will
13  *be useful, but WITHOUT ANY WARRANTY;
14  *without even the implied warranty of
15  *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *See the GNU General Public License for more details.
17  *
18  *You should have received a copy of the
19  *GNU General Public License along with Nemiver;
20  *see the file COPYING.
21  *If not, write to the Free Software Foundation,
22  *Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23  *
24  *See COPYRIGHT file copyright information.
25  */
26 #ifndef __NMV_INSERT_STATEMENT_H__
27 #define __NMV_INSERT_STATEMENT_H__
28 
29 #include "nmv-sql-statement.h"
30 
31 namespace nemiver {
32 namespace common {
33 
34 struct InsertStatementPriv;
36 {
37  friend struct InsertStatementPriv;
38  InsertStatementPriv *m_priv;
39 
40  //forbid copy
42  InsertStatement& operator= (const InsertStatement &);
43 
44 public:
45 
46  InsertStatement (const common::UString &a_table_name,
47  ColumnList &a_columns);
48  ~InsertStatement ();
49 
50  const common::UString& to_string () const;
51 
52  const ColumnList& get_columns () const;
53 
54  const common::UString& get_table_name () const;
55 
56  void set (const common::UString &a_table_name, ColumnList &a_columns);
57 };//end InsertStatement
58 
59 }// end namespace common
60 }//end namespace nemiver
61 #endif //__NMV_INSERT_STATEMENT_H__
62 
nemiver
Definition: nmv-address.h:31
NEMIVER_API
#define NEMIVER_API
Definition: nmv-api-macros.h:53
nemiver::common::UString
Definition: nmv-ustring.h:45
nemiver::common::InsertStatement
Definition: nmv-insert-statement.h:35
nmv-sql-statement.h
nemiver::common::SQLStatement
Definition: nmv-sql-statement.h:98
nemiver::common::ColumnList
vector< Column > ColumnList
Definition: nmv-sql-statement.h:95
common
Definition: nmv-proc-list-dialog.h:32