InterMine > Webservice-InterMine > Webservice::InterMine::Query::Roles::Listable

Download:
Webservice-InterMine-1.0405.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source  

NAME ^

Webservice::InterMine::Query::Roles::Listable - Trait for queries that are Listable

SYNOPSIS ^

  my $query = get_service->select("Gene.*");
  my $list = $service->new_list(content => $query);

DESCRIPTION ^

This role provides an implementation of the required get_list_request_parameters method of the more general Listable role for queries. It also provides a mechanism for creating a valid list query from a multi-noded query by indicating the appropriate path.

get_list_request_parameters

Get the parameters to pass to the service for list requests.

make_list_query($path): Listable

Make a listable query from a multi-node query, by selecting the path whose values should be included in the new list.

The path need not be in the current select list.

This method deals with ensuring the result set does not change due to changes in the select list.

Returns a Listable Webservice::InterMine::Query.

syntax highlighting: