1 /* 2 * Copyright (C) 2002 Rodrigo Moya <rodrigo@gnome-db.org> 3 * Copyright (C) 2004 Jeronimo Albi <jeronimoalbi@yahoo.com.ar> 4 * Copyright (C) 2007 - 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_JDBC_PROVIDER_H__ 23 #define __GDA_JDBC_PROVIDER_H__ 24 25 #include <libgda/gda-server-provider.h> 26 27 #define GDA_TYPE_JDBC_PROVIDER (gda_jdbc_provider_get_type()) 28 #define GDA_JDBC_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GDA_TYPE_JDBC_PROVIDER, GdaJdbcProvider)) 29 #define GDA_JDBC_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, GDA_TYPE_JDBC_PROVIDER, GdaJdbcProviderClass)) 30 #define GDA_IS_JDBC_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GDA_TYPE_JDBC_PROVIDER)) 31 #define GDA_IS_JDBC_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDA_TYPE_JDBC_PROVIDER)) 32 33 typedef struct _GdaJdbcProvider GdaJdbcProvider; 34 typedef struct _GdaJdbcProviderClass GdaJdbcProviderClass; 35 36 struct _GdaJdbcProvider { 37 GdaServerProvider provider; 38 gchar *jdbc_driver; 39 GValue *jprov_obj; /* JAVA GdaJProvider object */ 40 }; 41 42 struct _GdaJdbcProviderClass { 43 GdaServerProviderClass parent_class; 44 }; 45 46 G_BEGIN_DECLS 47 48 GType gda_jdbc_provider_get_type (void) G_GNUC_CONST; 49 GdaServerProvider *gda_jdbc_provider_new (const gchar *jdbc_driver, GError **error); 50 51 G_END_DECLS 52 53 #endif 54