Gom.Filter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The mode of the filter. |
||
w/co |
The SQL for the filter. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Gom.Filter(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new_and(left, right)¶
- Parameters:
left (
Gom.Filter
) – AGom.Filter
.right (
Gom.Filter
) – AGom.Filter
.
- Returns:
A
Gom.Filter
.- Return type:
Creates a new filter that requires that both left and right filters equate to
True
.
- classmethod new_and_fullv(filter_array)¶
- Parameters:
filter_array (
Gom.Filter
) – ANone
-terminated array ofGom.Filter
.- Returns:
A
Gom.Filter
.- Return type:
Creates a new filter that requires that all filters passed as arguments equate to
True
.
- classmethod new_eq(resource_type, property_name, value)¶
- Parameters:
resource_type (
GObject.GType
) –property_name (
str
) –value (
GObject.Value
) –
- Return type:
- classmethod new_glob(resource_type, property_name, value)¶
- Parameters:
resource_type (
GObject.GType
) –property_name (
str
) –value (
GObject.Value
) –
- Return type:
- classmethod new_gt(resource_type, property_name, value)¶
- Parameters:
resource_type (
GObject.GType
) –property_name (
str
) –value (
GObject.Value
) –
- Return type:
- classmethod new_gte(resource_type, property_name, value)¶
- Parameters:
resource_type (
GObject.GType
) –property_name (
str
) –value (
GObject.Value
) –
- Return type:
- classmethod new_is_not_null(resource_type, property_name)¶
- Parameters:
resource_type (
GObject.GType
) –property_name (
str
) –
- Return type:
- classmethod new_is_null(resource_type, property_name)¶
- Parameters:
resource_type (
GObject.GType
) –property_name (
str
) –
- Return type:
- classmethod new_like(resource_type, property_name, value)¶
- Parameters:
resource_type (
GObject.GType
) –property_name (
str
) –value (
GObject.Value
) –
- Return type:
- classmethod new_lt(resource_type, property_name, value)¶
- Parameters:
resource_type (
GObject.GType
) –property_name (
str
) –value (
GObject.Value
) –
- Return type:
- classmethod new_lte(resource_type, property_name, value)¶
- Parameters:
resource_type (
GObject.GType
) –property_name (
str
) –value (
GObject.Value
) –
- Return type:
- classmethod new_neq(resource_type, property_name, value)¶
- Parameters:
resource_type (
GObject.GType
) –property_name (
str
) –value (
GObject.Value
) –
- Return type:
- classmethod new_or(left, right)¶
- Parameters:
left (
Gom.Filter
) – AGom.Filter
.right (
Gom.Filter
) – AGom.Filter
.
- Returns:
A
Gom.Filter
.- Return type:
Creates a new filter that requires either the left or right filters equate to
True
.
- classmethod new_or_fullv(filter_array)¶
- Parameters:
filter_array (
Gom.Filter
) – ANone
-terminated array ofGom.Filter
.- Returns:
A
Gom.Filter
.- Return type:
Creates a new filter that requires either of the filters passed as arguments equate to
True
.
- classmethod new_sql(sql, values)¶
- Parameters:
sql (
str
) – A UTF-8 string.values ([
GObject.Value
]) – An array of values.
- Returns:
A new
Gom.Filter
.- Return type:
Creates a new
Gom.Filter
using the SQL and values provided.
- get_values()¶
- Returns:
An array of values for the SQL.
- Return type:
Fetches the list of values that should be applied in order when building the
Gom.Command
.
Property Details¶
- Gom.Filter.props.mode¶
- Name:
mode
- Type:
- Default Value:
- Flags:
The mode of the filter.
- Gom.Filter.props.sql¶
- Name:
sql
- Type:
- Default Value:
- Flags:
The SQL for the filter.