Midgard2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct MidgardQueryConstraint; struct MidgardQueryConstraintClass; MidgardQueryConstraint * midgard_query_constraint_new (MidgardQueryProperty *property
,const gchar *op
,MidgardQueryHolder *holder
,MidgardQueryStorage *storage
); MidgardQueryStorage * midgard_query_constraint_get_storage (MidgardQueryConstraint *self
); gboolean midgard_query_constraint_set_storage (MidgardQueryConstraint *self
,MidgardQueryStorage *storage
); MidgardQueryProperty * midgard_query_constraint_get_property (MidgardQueryConstraint *self
); gboolean midgard_query_constraint_set_property (MidgardQueryConstraint *self
,MidgardQueryProperty *property
); const gchar * midgard_query_constraint_get_operator (MidgardQueryConstraint *self
); gboolean midgard_query_constraint_set_operator (MidgardQueryConstraint *self
,const gchar *op
);
MidgardQueryConstraint implements MidgardQueryConstraintSimple and MidgardValidable.
"holder" MidgardQueryHolder* : Read / Write "operator" gchar* : Read / Write "property" MidgardQueryProperty* : Read / Write "storage" MidgardQueryStorage* : Read / Write
struct MidgardQueryConstraintClass { GObjectClass parent; MidgardQueryConstraintSimple **(*list_constraints) (MidgardQueryConstraint *self, guint *n_objects); };
MidgardQueryConstraint * midgard_query_constraint_new (MidgardQueryProperty *property
,const gchar *op
,MidgardQueryHolder *holder
,MidgardQueryStorage *storage
);
Valid op
operators are: '=', '<', '>', '!=', '<>', '<=', '>=', 'LIKE', 'NOT LIKE', 'IN', 'NOT IN'
|
MidgardQueryProperty instance |
|
constraint operator |
|
MidgardQueryHolder instance |
|
optional MidgardQueryStorage to use with constraint. [allow-none] |
Returns : |
new MidgardQueryConstraint instance, or NULL on failure |
Since 10.05
MidgardQueryStorage * midgard_query_constraint_get_storage
(MidgardQueryConstraint *self
);
|
MidgardQueryStorage instance |
Returns : |
MidgardQueryStorage associated with constraint or NULL . [transfer none]
|
Since 10.05
gboolean midgard_query_constraint_set_storage (MidgardQueryConstraint *self
,MidgardQueryStorage *storage
);
|
MidgardQueryConstraint instance |
|
MidgardQueryStorage to associate with self constraint. [allow-none]
|
Returns : |
TRUE on success, FALSE otherwise |
Since 10.05
MidgardQueryProperty * midgard_query_constraint_get_property
(MidgardQueryConstraint *self
);
|
MidgardQueryConstraint instance |
Returns : |
MidgardQueryProperty associated with self constraint, or NULL . [transfer none]
|
Since 10.05
gboolean midgard_query_constraint_set_property (MidgardQueryConstraint *self
,MidgardQueryProperty *property
);
|
MidgardQueryConstraint instance |
|
MidgardQueryProperty to associate with self constraint |
Returns : |
TRUE on success, FALSE otherwise |
Since 10.05
const gchar * midgard_query_constraint_get_operator
(MidgardQueryConstraint *self
);
|
MidgardQueryConstraint instance |
Returns : |
operator type associated with self constraint, or NULL
|
Since 10.05
gboolean midgard_query_constraint_set_operator (MidgardQueryConstraint *self
,const gchar *op
);
Check midgard_query_constraint_new()
for valid operator types.
|
MidgardQueryConstraint instance |
|
operator to associate with constraint |
Returns : |
TRUE on success, FALSE otherwise |
Since 10.05