Gom.ResourceGroup¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The size of the resource group. |
||
r/w/co |
The query filter. |
||
r/w/co |
Whether the group contains resources to be written. |
||
r/w/co |
The table used to join a Many to Many query. |
||
r/w/co |
The type used in the m2m-table join. |
||
r/w/co |
The repository for object storage. |
||
r/w/co |
The type of resources contained. |
||
r/w/co |
The query sorting. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Gom.ResourceGroup(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(repository)¶
- Parameters:
repository (
Gom.Repository
) –- Return type:
- append(resource)¶
- Parameters:
resource (
Gom.Resource
) –- Return type:
- delete_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) –
- delete_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- delete_sync()¶
- Raises:
- Return type:
- fetch_async(index_, count, callback, *user_data)¶
- fetch_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- fetch_sync(index_, count)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Fetches a sequence of resources from the group synchronously. This must be called from an adapter read callback using
Gom.Adapter.queue_read
().
- get_index(index_)¶
- Parameters:
index (
int
) – The index of the resource.- Returns:
A
Gom.Resource
.- Return type:
Fetches the resource at index_. You must have loaded that resource by calling
Gom.ResourceGroup.fetch_async
() with a range inclusive of the index.
- write_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) –
- write_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- write_sync()¶
- Raises:
- Return type:
Property Details¶
- Gom.ResourceGroup.props.count¶
- Name:
count
- Type:
- Default Value:
0
- Flags:
The size of the resource group.
- Gom.ResourceGroup.props.filter¶
- Name:
filter
- Type:
- Default Value:
- Flags:
The query filter.
- Gom.ResourceGroup.props.is_writable¶
- Name:
is-writable
- Type:
- Default Value:
- Flags:
Whether the group contains resources to be written.
- Gom.ResourceGroup.props.m2m_table¶
- Name:
m2m-table
- Type:
- Default Value:
- Flags:
The table used to join a Many to Many query.
- Gom.ResourceGroup.props.m2m_type¶
- Name:
m2m-type
- Type:
- Default Value:
<GType GomResource>
- Flags:
The type used in the m2m-table join.
- Gom.ResourceGroup.props.repository¶
- Name:
repository
- Type:
- Default Value:
- Flags:
The repository for object storage.
- Gom.ResourceGroup.props.resource_type¶
- Name:
resource-type
- Type:
- Default Value:
<GType GomResource>
- Flags:
The type of resources contained.
- Gom.ResourceGroup.props.sorting¶
- Name:
sorting
- Type:
- Default Value:
- Flags:
The query sorting.