1 /*
2  * Copyright (C) 2002 Rodrigo Moya <rodrigo@src.gnome.org>
3  * Copyright (C) 2002 Tim Coleman <tim@timcoleman.com>
4  * Copyright (C) 2005 - 2011 Vivien Malerba <malerba@gnome-db.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19  * Boston, MA  02110-1301, USA.
20  */
21 
22 #ifndef __GDA_ORACLE_RECORDSET_H__
23 #define __GDA_ORACLE_RECORDSET_H__
24 
25 #include <libgda/libgda.h>
26 #include <providers-support/gda-data-select-priv.h>
27 #include "gda-oracle-pstmt.h"
28 
29 G_BEGIN_DECLS
30 
31 #define GDA_TYPE_ORACLE_RECORDSET            (gda_oracle_recordset_get_type())
32 #define GDA_ORACLE_RECORDSET(obj)            (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_ORACLE_RECORDSET, GdaOracleRecordset))
33 #define GDA_ORACLE_RECORDSET_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE_ORACLE_RECORDSET, GdaOracleRecordsetClass))
34 #define GDA_IS_ORACLE_RECORDSET(obj)         (G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TYPE_ORACLE_RECORDSET))
35 #define GDA_IS_ORACLE_RECORDSET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDA_TYPE_ORACLE_RECORDSET))
36 
37 typedef struct _GdaOracleRecordset        GdaOracleRecordset;
38 typedef struct _GdaOracleRecordsetClass   GdaOracleRecordsetClass;
39 typedef struct _GdaOracleRecordsetPrivate GdaOracleRecordsetPrivate;
40 
41 struct _GdaOracleRecordset {
42 	GdaDataSelect                model;
43 	GdaOracleRecordsetPrivate *priv;
44 };
45 
46 struct _GdaOracleRecordsetClass {
47 	GdaDataSelectClass             parent_class;
48 };
49 
50 GType         gda_oracle_recordset_get_type  (void) G_GNUC_CONST;
51 GdaDataModel *gda_oracle_recordset_new       (GdaConnection *cnc, GdaOraclePStmt *ps, GdaSet *exec_params,
52 					      GdaDataModelAccessFlags flags, GType *col_types);
53 
54 G_END_DECLS
55 
56 #endif
57