QOF 0.8.4
qofsql-p.h
Go to the documentation of this file.
00001 /* ***************************************************************
00002  *            qofsql-p.h
00003  *
00004  *  Mon Mar 17 11:26:49 GMT 2008
00005  *  Copyright  2008  Neil Williams
00006  *  linux@codehelp.co.uk
00007  *************************************************************** */
00008 /*
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  * 
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU Library General Public License for more details.
00018  * 
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
00022  */
00023 
00033 #ifndef QOFSQL_P_H
00034 #define QOFSQL_P_H
00035 
00036 #include <glib.h>
00037 #include "qof.h"
00038 
00054 typedef enum
00055 {
00057     SQL_NONE = 0,
00059     SQL_CREATE,
00061     SQL_LOAD,
00063     SQL_WRITE,
00065     SQL_INSERT,
00067     SQL_DELETE,
00069     SQL_UPDATE
00070 } QsqlStatementType;
00071 
00079 void qof_sql_entity_set_kvp_tablename (const gchar * name);
00080 
00090 void qof_sql_entity_set_kvp_id (gulong id);
00091 
00101 gulong qof_sql_entity_get_kvp_id (void);
00102 
00113 void qof_sql_entity_set_kvp_exists (gboolean exist);
00114 
00120 gchar *
00121 qof_sql_entity_create_table (QofEntity * ent);
00122 
00128 gchar *
00129 qof_sql_entity_insert (QofEntity * ent);
00130 
00137 gchar *
00138 qof_sql_entity_update (QofEntity * ent);
00139 
00151 gchar *
00152 qof_sql_entity_update_kvp (QofEntity * ent);
00153 
00162 gchar *
00163 qof_sql_entity_update_list (QofEntity * ent, GList **params);
00164 
00173 gchar *
00174 qof_sql_entity_delete (QofEntity * ent);
00175 
00182 gchar *
00183 qof_sql_entity_drop_table (QofEntity * ent);
00184 
00190 gchar *
00191 qof_sql_object_create_table (QofObject * obj);
00192 
00193 
00196 #endif /* QOFSQL_P_H */