Initial revision
[csql.git] / include / Table.h
blobbd7b962cd54f149ac8f96c2bc2de37d848632909
1 /***************************************************************************
2 * Copyright (C) 2007 by Prabakaran Thirumalai *
3 * praba_tuty@yahoo.com *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 ***************************************************************************/
16 #ifndef TABLE_H
17 #define TABLE_H
18 #include<ErrorType.h>
19 class Predicate;
20 class Condition;
21 class Table
23 public:
24 // search predicate
25 virtual void setCondition(Condition c)=0;
27 //binding
28 virtual void bindFld(const char *name, void *val)=0;
29 virtual void markFldNull(const char *name)=0;
30 virtual void markFldNull(int colpos)=0;
31 virtual bool isFldNull(const char *name)=0;
32 virtual bool isFldNull(int colpos)=0;
34 //DML operations
35 virtual DbRetVal execute()=0;
36 virtual DbRetVal insertTuple()=0;
37 virtual DbRetVal updateTuple()=0;
38 virtual DbRetVal deleteTuple()=0;
39 //scan
40 virtual void* fetch()=0;
41 virtual DbRetVal close()=0;
43 virtual ~Table() { }
45 #endif