Packages
libgda-5.0
Gda
DataComparator
new_model
old_model
error_quark
DataComparator
compute_diff
get_diff
get_n_diffs
set_key_columns
diff_computed
DataComparator
Object Hierarchy:
Gda.DataComparator
Gda.DataComparator
Gda.DataComparator
GLib.Object
GLib.Object
GLib.Object->Gda.DataComparator
Description:
[
CCode
( type_id =
"gda_data_comparator_get_type ()"
) ]
public
class
DataComparator
:
Object
Namespace:
Gda
Package:
libgda-5.0
Content:
Properties:
public
DataModel
new_model
{
owned
get
;
set
; }
public
DataModel
old_model
{
owned
get
;
set
; }
Static methods:
public
static
Quark
error_quark
()
Creation methods:
public
DataComparator
(
DataModel
old_model,
DataModel
new_model)
Creates a new comparator to compute the differences from
old_model
to
new_model
: if one applies all the computed differences (as
Diff
structures) to
old_model
, the resulting data model should have the same contents as
new_model
.
Methods:
public
bool
compute_diff
()
throws
Error
Actually computes the differences between the data models for which
this
is defined.
public
unowned
Diff
?
get_diff
(
int
pos)
Get a pointer to the
Diff
structure representing the difference which number is
pos
public
int
get_n_diffs
()
Get the number of differences as computed by the last time
compute_diff
was called.
public
void
set_key_columns
(
int
[] col_numbers)
Defines the columns which will be used as a key when searching data.
Signals:
public
virtual
signal
bool
diff_computed
(
void
* diff)
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref