1
/* sqlheavy-table-cursor.c generated by valac 0.12.1, the Vala compiler
2
* generated from sqlheavy-table-cursor.vala, do not modify */
6
#include <glib-object.h>
12
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
13
#define _g_free0(var) (var = (g_free (var), NULL))
14
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
16
struct _SQLHeavyTableCursorPrivate {
17
SQLHeavyTable* _table;
19
SQLHeavySortOrder _sort_order;
22
SQLHeavyQuery* _query;
26
static gpointer sql_heavy_table_cursor_parent_class = NULL;
27
static SQLHeavyRecordSetIface* sql_heavy_table_cursor_sql_heavy_record_set_parent_iface = NULL;
28
static SQLHeavyCursorIface* sql_heavy_table_cursor_sql_heavy_cursor_parent_iface = NULL;
30
#define SQL_HEAVY_TABLE_CURSOR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), SQL_HEAVY_TYPE_TABLE_CURSOR, SQLHeavyTableCursorPrivate))
32
SQL_HEAVY_TABLE_CURSOR_DUMMY_PROPERTY,
33
SQL_HEAVY_TABLE_CURSOR_TABLE,
34
SQL_HEAVY_TABLE_CURSOR_OFFSET,
35
SQL_HEAVY_TABLE_CURSOR_SORT_ORDER,
36
SQL_HEAVY_TABLE_CURSOR_SORT_COLUMN,
37
SQL_HEAVY_TABLE_CURSOR_FIELD_COUNT
39
static SQLHeavyRecord* sql_heavy_table_cursor_real_get (SQLHeavyCursor* base, GError** error);
40
const gchar* sql_heavy_sqlite_errstr (gint ec);
41
static gboolean sql_heavy_table_cursor_move_to_internal (SQLHeavyTableCursor* self, gint64 offset);
42
static SQLHeavyQuery* sql_heavy_table_cursor_get_query (SQLHeavyTableCursor* self);
43
static void sql_heavy_table_cursor_set_offset (SQLHeavyTableCursor* self, gint64 value);
44
static gboolean sql_heavy_table_cursor_real_move_to (SQLHeavyCursor* base, gint64 offset, GError** error);
45
static gboolean sql_heavy_table_cursor_real_next (SQLHeavyRecordSet* base, GError** error);
46
static gboolean sql_heavy_table_cursor_real_previous (SQLHeavyCursor* base, GError** error);
47
static GObject * sql_heavy_table_cursor_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
48
static void sql_heavy_table_cursor_finalize (GObject* obj);
49
static void _vala_sql_heavy_table_cursor_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
50
static void _vala_sql_heavy_table_cursor_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
56
static SQLHeavyRecord* sql_heavy_table_cursor_real_get (SQLHeavyCursor* base, GError** error) {
57
SQLHeavyTableCursor * self;
58
SQLHeavyRecord* result = NULL;
59
SQLHeavyRow* _tmp2_ = NULL;
60
GError * _inner_error_ = NULL;
61
self = (SQLHeavyTableCursor*) base;
62
if (self->priv->current_id <= 0) {
63
const gchar* _tmp0_ = NULL;
64
GError* _tmp1_ = NULL;
65
_tmp0_ = sql_heavy_sqlite_errstr (SQLITE_RANGE);
66
_tmp1_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_RANGE, _tmp0_);
67
_inner_error_ = _tmp1_;
68
if (_inner_error_->domain == SQL_HEAVY_ERROR) {
69
g_propagate_error (error, _inner_error_);
72
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
73
g_clear_error (&_inner_error_);
77
_tmp2_ = sql_heavy_row_new (self->priv->_table, self->priv->current_id);
78
result = (SQLHeavyRecord*) _tmp2_;
83
static gpointer _g_object_ref0 (gpointer self) {
84
return self ? g_object_ref (self) : NULL;
88
static gboolean sql_heavy_table_cursor_move_to_internal (SQLHeavyTableCursor* self, gint64 offset) {
89
gboolean result = FALSE;
91
SQLHeavyQuery* _tmp0_ = NULL;
92
SQLHeavyQuery* _tmp1_;
94
SQLHeavyQueryResult* _tmp2_ = NULL;
95
SQLHeavyQueryResult* res;
98
GError * _inner_error_ = NULL;
99
g_return_val_if_fail (self != NULL, FALSE);
101
_tmp0_ = sql_heavy_table_cursor_get_query (self);
102
_tmp1_ = _g_object_ref0 (_tmp0_);
104
sql_heavy_query_set_int64 (q, ":offset", offset, &_inner_error_);
105
if (_inner_error_ != NULL) {
106
_g_object_unref0 (q);
107
if (_inner_error_->domain == SQL_HEAVY_ERROR) {
108
goto __catch40_sql_heavy_error;
110
_g_object_unref0 (q);
111
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
112
g_clear_error (&_inner_error_);
115
_tmp2_ = sql_heavy_query_execute (q, NULL, &_inner_error_, NULL);
117
if (_inner_error_ != NULL) {
118
_g_object_unref0 (q);
119
if (_inner_error_->domain == SQL_HEAVY_ERROR) {
120
goto __catch40_sql_heavy_error;
122
_g_object_unref0 (q);
123
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
124
g_clear_error (&_inner_error_);
127
_tmp4_ = sql_heavy_query_result_get_finished (res);
129
_tmp3_ = (gint64) (-1);
132
_tmp5_ = sql_heavy_record_fetch_int64 ((SQLHeavyRecord*) res, 0, &_inner_error_);
134
if (_inner_error_ != NULL) {
135
_g_object_unref0 (res);
136
_g_object_unref0 (q);
137
if (_inner_error_->domain == SQL_HEAVY_ERROR) {
138
goto __catch40_sql_heavy_error;
140
_g_object_unref0 (res);
141
_g_object_unref0 (q);
142
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
143
g_clear_error (&_inner_error_);
148
_g_object_unref0 (res);
149
_g_object_unref0 (q);
151
__catch40_sql_heavy_error:
155
_inner_error_ = NULL;
156
g_critical ("sqlheavy-table-cursor.vala:67: Unable to move cursor: %s", e->message);
162
if (_inner_error_ != NULL) {
163
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
164
g_clear_error (&_inner_error_);
168
g_debug ("sqlheavy-table-cursor.vala:72: Offset: %lld", offset);
169
self->priv->current_id = id;
170
sql_heavy_table_cursor_set_offset (self, offset);
183
static gboolean sql_heavy_table_cursor_real_move_to (SQLHeavyCursor* base, gint64 offset, GError** error) {
184
SQLHeavyTableCursor * self;
185
gboolean result = FALSE;
187
GError * _inner_error_ = NULL;
188
self = (SQLHeavyTableCursor*) base;
189
_tmp0_ = sql_heavy_table_cursor_move_to_internal (self, offset);
191
const gchar* _tmp1_ = NULL;
192
GError* _tmp2_ = NULL;
193
_tmp1_ = sql_heavy_sqlite_errstr (SQLITE_RANGE);
194
_tmp2_ = g_error_new_literal (SQL_HEAVY_ERROR, SQL_HEAVY_ERROR_RANGE, _tmp1_);
195
_inner_error_ = _tmp2_;
196
if (_inner_error_->domain == SQL_HEAVY_ERROR) {
197
g_propagate_error (error, _inner_error_);
200
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
201
g_clear_error (&_inner_error_);
213
static gboolean sql_heavy_table_cursor_real_next (SQLHeavyRecordSet* base, GError** error) {
214
SQLHeavyTableCursor * self;
215
gboolean result = FALSE;
217
self = (SQLHeavyTableCursor*) base;
218
_tmp0_ = sql_heavy_table_cursor_move_to_internal (self, self->priv->_offset + 1);
227
static gboolean sql_heavy_table_cursor_real_previous (SQLHeavyCursor* base, GError** error) {
228
SQLHeavyTableCursor * self;
229
gboolean result = FALSE;
231
self = (SQLHeavyTableCursor*) base;
232
_tmp0_ = sql_heavy_table_cursor_move_to_internal (self, self->priv->_offset - 1);
239
* Create a new cursor for the table
241
* @param table the table to create the cursor for
243
SQLHeavyTableCursor* sql_heavy_table_cursor_construct (GType object_type, SQLHeavyTable* table) {
244
SQLHeavyTableCursor * self = NULL;
245
g_return_val_if_fail (table != NULL, NULL);
246
self = (SQLHeavyTableCursor*) g_object_new (object_type, "table", table, NULL);
251
SQLHeavyTableCursor* sql_heavy_table_cursor_new (SQLHeavyTable* table) {
252
return sql_heavy_table_cursor_construct (SQL_HEAVY_TYPE_TABLE_CURSOR, table);
256
SQLHeavyTable* sql_heavy_table_cursor_get_table (SQLHeavyTableCursor* self) {
257
SQLHeavyTable* result;
258
g_return_val_if_fail (self != NULL, NULL);
259
result = self->priv->_table;
264
static void sql_heavy_table_cursor_set_table (SQLHeavyTableCursor* self, SQLHeavyTable* value) {
265
SQLHeavyTable* _tmp0_;
266
g_return_if_fail (self != NULL);
267
_tmp0_ = _g_object_ref0 (value);
268
_g_object_unref0 (self->priv->_table);
269
self->priv->_table = _tmp0_;
270
g_object_notify ((GObject *) self, "table");
274
gint64 sql_heavy_table_cursor_get_offset (SQLHeavyTableCursor* self) {
276
g_return_val_if_fail (self != NULL, 0LL);
277
result = self->priv->_offset;
282
static void sql_heavy_table_cursor_set_offset (SQLHeavyTableCursor* self, gint64 value) {
283
g_return_if_fail (self != NULL);
284
self->priv->_offset = value;
285
g_object_notify ((GObject *) self, "offset");
289
SQLHeavySortOrder sql_heavy_table_cursor_get_sort_order (SQLHeavyTableCursor* self) {
290
SQLHeavySortOrder result;
291
g_return_val_if_fail (self != NULL, 0);
292
result = self->priv->_sort_order;
297
void sql_heavy_table_cursor_set_sort_order (SQLHeavyTableCursor* self, SQLHeavySortOrder value) {
298
g_return_if_fail (self != NULL);
299
self->priv->_sort_order = value;
300
g_object_notify ((GObject *) self, "sort-order");
304
const gchar* sql_heavy_table_cursor_get_sort_column (SQLHeavyTableCursor* self) {
306
g_return_val_if_fail (self != NULL, NULL);
307
result = self->priv->_sort_column;
312
void sql_heavy_table_cursor_set_sort_column (SQLHeavyTableCursor* self, const gchar* value) {
314
g_return_if_fail (self != NULL);
315
_tmp0_ = g_strdup (value);
316
_g_free0 (self->priv->_sort_column);
317
self->priv->_sort_column = _tmp0_;
318
g_object_notify ((GObject *) self, "sort-column");
322
gint sql_heavy_table_cursor_get_field_count (SQLHeavyTableCursor* self) {
325
g_return_val_if_fail (self != NULL, 0);
326
_tmp0_ = sql_heavy_table_get_field_count (self->priv->_table);
332
static SQLHeavyQuery* sql_heavy_table_cursor_get_query (SQLHeavyTableCursor* self) {
333
SQLHeavyQuery* result;
334
GError * _inner_error_ = NULL;
335
g_return_val_if_fail (self != NULL, NULL);
336
if (self->priv->_query == NULL) {
337
const gchar* _tmp0_ = NULL;
338
SQLHeavyQueryable* _tmp1_ = NULL;
339
const gchar* _tmp2_ = NULL;
340
gchar* _tmp3_ = NULL;
346
gchar* _tmp9_ = NULL;
356
SQLHeavyQuery* _tmp19_ = NULL;
357
SQLHeavyQuery* _tmp20_;
358
SQLHeavyQuery* _tmp21_;
359
if (self->priv->_sort_order == SQL_HEAVY_SORT_ORDER_ASCENDING) {
364
_tmp1_ = sql_heavy_table_get_queryable (self->priv->_table);
365
_tmp2_ = sql_heavy_table_get_name (self->priv->_table);
366
_tmp3_ = sql_heavy_escape_string (_tmp2_);
368
_tmp5_ = g_strconcat ("SELECT `ROWID` FROM `", _tmp4_, NULL);
370
_tmp7_ = g_strconcat (_tmp6_, "` ORDER BY `", NULL);
372
_tmp9_ = sql_heavy_escape_string (self->priv->_sort_column);
374
_tmp11_ = g_strconcat (_tmp8_, _tmp10_, NULL);
376
_tmp13_ = g_strconcat (_tmp12_, "` ", NULL);
378
_tmp15_ = g_strconcat (_tmp14_, _tmp0_, NULL);
380
_tmp17_ = g_strconcat (_tmp16_, " LIMIT 1 OFFSET :offset;", NULL);
382
_tmp19_ = sql_heavy_queryable_prepare (_tmp1_, _tmp18_, &_inner_error_);
393
if (_inner_error_ != NULL) {
394
if (_inner_error_->domain == SQL_HEAVY_ERROR) {
395
goto __catch41_sql_heavy_error;
397
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
398
g_clear_error (&_inner_error_);
401
_g_object_unref0 (self->priv->_query);
402
self->priv->_query = _tmp21_;
404
__catch41_sql_heavy_error:
408
_inner_error_ = NULL;
409
g_critical ("sqlheavy-table-cursor.vala:40: Unable to create table cursor: %s", e->message);
413
if (_inner_error_ != NULL) {
414
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
415
g_clear_error (&_inner_error_);
419
result = self->priv->_query;
424
static GObject * sql_heavy_table_cursor_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
426
GObjectClass * parent_class;
427
SQLHeavyTableCursor * self;
428
GError * _inner_error_ = NULL;
429
parent_class = G_OBJECT_CLASS (sql_heavy_table_cursor_parent_class);
430
obj = parent_class->constructor (type, n_construct_properties, construct_properties);
431
self = SQL_HEAVY_TABLE_CURSOR (obj);
432
sql_heavy_record_set_next ((SQLHeavyRecordSet*) self, &_inner_error_);
433
if (_inner_error_ != NULL) {
434
if (_inner_error_->domain == SQL_HEAVY_ERROR) {
435
goto __catch42_sql_heavy_error;
437
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
438
g_clear_error (&_inner_error_);
441
__catch42_sql_heavy_error:
445
_inner_error_ = NULL;
446
g_critical ("sqlheavy-table-cursor.vala:109: Unable to create table cursor: %s", e->message);
450
if (_inner_error_ != NULL) {
451
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
452
g_clear_error (&_inner_error_);
458
static void sql_heavy_table_cursor_class_init (SQLHeavyTableCursorClass * klass) {
459
sql_heavy_table_cursor_parent_class = g_type_class_peek_parent (klass);
460
g_type_class_add_private (klass, sizeof (SQLHeavyTableCursorPrivate));
461
G_OBJECT_CLASS (klass)->get_property = _vala_sql_heavy_table_cursor_get_property;
462
G_OBJECT_CLASS (klass)->set_property = _vala_sql_heavy_table_cursor_set_property;
463
G_OBJECT_CLASS (klass)->constructor = sql_heavy_table_cursor_constructor;
464
G_OBJECT_CLASS (klass)->finalize = sql_heavy_table_cursor_finalize;
468
g_object_class_install_property (G_OBJECT_CLASS (klass), SQL_HEAVY_TABLE_CURSOR_TABLE, g_param_spec_object ("table", "table", "table", SQL_HEAVY_TYPE_TABLE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
472
g_object_class_install_property (G_OBJECT_CLASS (klass), SQL_HEAVY_TABLE_CURSOR_OFFSET, g_param_spec_int64 ("offset", "offset", "offset", G_MININT64, G_MAXINT64, (gint64) 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
474
* The order to sort the result set in
476
g_object_class_install_property (G_OBJECT_CLASS (klass), SQL_HEAVY_TABLE_CURSOR_SORT_ORDER, g_param_spec_enum ("sort-order", "sort-order", "sort-order", SQL_HEAVY_TYPE_SORT_ORDER, SQL_HEAVY_SORT_ORDER_ASCENDING, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
478
* The column to sort the result set by
480
g_object_class_install_property (G_OBJECT_CLASS (klass), SQL_HEAVY_TABLE_CURSOR_SORT_COLUMN, g_param_spec_string ("sort-column", "sort-column", "sort-column", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
484
g_object_class_install_property (G_OBJECT_CLASS (klass), SQL_HEAVY_TABLE_CURSOR_FIELD_COUNT, g_param_spec_int ("field-count", "field-count", "field-count", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
488
static void sql_heavy_table_cursor_sql_heavy_record_set_interface_init (SQLHeavyRecordSetIface * iface) {
489
sql_heavy_table_cursor_sql_heavy_record_set_parent_iface = g_type_interface_peek_parent (iface);
490
iface->next = (gboolean (*)(SQLHeavyRecordSet* ,GError**)) sql_heavy_table_cursor_real_next;
494
static void sql_heavy_table_cursor_sql_heavy_cursor_interface_init (SQLHeavyCursorIface * iface) {
495
sql_heavy_table_cursor_sql_heavy_cursor_parent_iface = g_type_interface_peek_parent (iface);
496
iface->get = (SQLHeavyRecord* (*)(SQLHeavyCursor* ,GError**)) sql_heavy_table_cursor_real_get;
497
iface->move_to = (gboolean (*)(SQLHeavyCursor* ,gint64 ,GError**)) sql_heavy_table_cursor_real_move_to;
498
iface->previous = (gboolean (*)(SQLHeavyCursor* ,GError**)) sql_heavy_table_cursor_real_previous;
502
static void sql_heavy_table_cursor_instance_init (SQLHeavyTableCursor * self) {
504
self->priv = SQL_HEAVY_TABLE_CURSOR_GET_PRIVATE (self);
505
self->priv->_offset = (gint64) 0;
506
self->priv->_sort_order = SQL_HEAVY_SORT_ORDER_ASCENDING;
507
_tmp0_ = g_strdup ("ROWID");
508
self->priv->_sort_column = _tmp0_;
509
self->priv->current_id = (gint64) (-1);
510
self->priv->_query = NULL;
514
static void sql_heavy_table_cursor_finalize (GObject* obj) {
515
SQLHeavyTableCursor * self;
516
self = SQL_HEAVY_TABLE_CURSOR (obj);
517
_g_object_unref0 (self->priv->_table);
518
_g_free0 (self->priv->_sort_column);
519
_g_object_unref0 (self->priv->_query);
520
G_OBJECT_CLASS (sql_heavy_table_cursor_parent_class)->finalize (obj);
525
* Cursor for use with a {@link Table}
527
GType sql_heavy_table_cursor_get_type (void) {
528
static volatile gsize sql_heavy_table_cursor_type_id__volatile = 0;
529
if (g_once_init_enter (&sql_heavy_table_cursor_type_id__volatile)) {
530
static const GTypeInfo g_define_type_info = { sizeof (SQLHeavyTableCursorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sql_heavy_table_cursor_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SQLHeavyTableCursor), 0, (GInstanceInitFunc) sql_heavy_table_cursor_instance_init, NULL };
531
static const GInterfaceInfo sql_heavy_record_set_info = { (GInterfaceInitFunc) sql_heavy_table_cursor_sql_heavy_record_set_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
532
static const GInterfaceInfo sql_heavy_cursor_info = { (GInterfaceInitFunc) sql_heavy_table_cursor_sql_heavy_cursor_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
533
GType sql_heavy_table_cursor_type_id;
534
sql_heavy_table_cursor_type_id = g_type_register_static (G_TYPE_OBJECT, "SQLHeavyTableCursor", &g_define_type_info, 0);
535
g_type_add_interface_static (sql_heavy_table_cursor_type_id, SQL_HEAVY_TYPE_RECORD_SET, &sql_heavy_record_set_info);
536
g_type_add_interface_static (sql_heavy_table_cursor_type_id, SQL_HEAVY_TYPE_CURSOR, &sql_heavy_cursor_info);
537
g_once_init_leave (&sql_heavy_table_cursor_type_id__volatile, sql_heavy_table_cursor_type_id);
539
return sql_heavy_table_cursor_type_id__volatile;
543
static void _vala_sql_heavy_table_cursor_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
544
SQLHeavyTableCursor * self;
545
self = SQL_HEAVY_TABLE_CURSOR (object);
546
switch (property_id) {
547
case SQL_HEAVY_TABLE_CURSOR_TABLE:
548
g_value_set_object (value, sql_heavy_table_cursor_get_table (self));
550
case SQL_HEAVY_TABLE_CURSOR_OFFSET:
551
g_value_set_int64 (value, sql_heavy_table_cursor_get_offset (self));
553
case SQL_HEAVY_TABLE_CURSOR_SORT_ORDER:
554
g_value_set_enum (value, sql_heavy_table_cursor_get_sort_order (self));
556
case SQL_HEAVY_TABLE_CURSOR_SORT_COLUMN:
557
g_value_set_string (value, sql_heavy_table_cursor_get_sort_column (self));
559
case SQL_HEAVY_TABLE_CURSOR_FIELD_COUNT:
560
g_value_set_int (value, sql_heavy_table_cursor_get_field_count (self));
563
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
569
static void _vala_sql_heavy_table_cursor_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
570
SQLHeavyTableCursor * self;
571
self = SQL_HEAVY_TABLE_CURSOR (object);
572
switch (property_id) {
573
case SQL_HEAVY_TABLE_CURSOR_TABLE:
574
sql_heavy_table_cursor_set_table (self, g_value_get_object (value));
576
case SQL_HEAVY_TABLE_CURSOR_OFFSET:
577
sql_heavy_table_cursor_set_offset (self, g_value_get_int64 (value));
579
case SQL_HEAVY_TABLE_CURSOR_SORT_ORDER:
580
sql_heavy_table_cursor_set_sort_order (self, g_value_get_enum (value));
582
case SQL_HEAVY_TABLE_CURSOR_SORT_COLUMN:
583
sql_heavy_table_cursor_set_sort_column (self, g_value_get_string (value));
586
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);