1 /* 2 * Copyright (C) 2008 - 2011 Vivien Malerba <malerba@gnome-db.org> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the 16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 17 * Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef __GDA_JDBC_RECORDSET_H__ 21 #define __GDA_JDBC_RECORDSET_H__ 22 23 #include <libgda/libgda.h> 24 #include <providers-support/gda-data-select-priv.h> 25 #include "gda-jdbc-pstmt.h" 26 27 G_BEGIN_DECLS 28 29 #define GDA_TYPE_JDBC_RECORDSET (gda_jdbc_recordset_get_type()) 30 #define GDA_JDBC_RECORDSET(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_JDBC_RECORDSET, GdaJdbcRecordset)) 31 #define GDA_JDBC_RECORDSET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE_JDBC_RECORDSET, GdaJdbcRecordsetClass)) 32 #define GDA_IS_JDBC_RECORDSET(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TYPE_JDBC_RECORDSET)) 33 #define GDA_IS_JDBC_RECORDSET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDA_TYPE_JDBC_RECORDSET)) 34 35 typedef struct _GdaJdbcRecordset GdaJdbcRecordset; 36 typedef struct _GdaJdbcRecordsetClass GdaJdbcRecordsetClass; 37 typedef struct _GdaJdbcRecordsetPrivate GdaJdbcRecordsetPrivate; 38 39 struct _GdaJdbcRecordset { 40 GdaDataSelect model; 41 GdaJdbcRecordsetPrivate *priv; 42 }; 43 44 struct _GdaJdbcRecordsetClass { 45 GdaDataSelectClass parent_class; 46 }; 47 48 GType gda_jdbc_recordset_get_type (void) G_GNUC_CONST; 49 GdaDataModel *gda_jdbc_recordset_new (GdaConnection *cnc, GdaJdbcPStmt *ps, GdaSet *exec_params, 50 JNIEnv *jenv, GValue *rs_value, 51 GdaDataModelAccessFlags flags, GType *col_types); 52 53 G_END_DECLS 54 55 #endif 56