The starting table for this query.
Return a Webservice::InterMine::Path object corresponding to the expression passed in (a dotted path string). The path will be made with the subclass information contained in the query.
Replace any existing sort order by the one defined with the given arguments. Return self to allow method chaining.
Used internally to process shortened, headless paths.
returns self to fulfil the Listable interface.
Return a clone of this query.
Called upon object destruction
Get the view as an array-ref
Get the paths that make up the output columns (the view)
Get the view at the specified index
Get a string consisting of the view paths joined with the given separator.
Return true if the view is currently empty.
Clear the current view
Get the number of output columns
Add the given views to the view list, first preprending the query's root, and checking for validity.
alias for add_views
Alias for add_views
Clear the current view and replace it with the given columns.
Get the list of constraints in the order they were added. Returns an arrayref in scalar context, and a list in list context.
Get all constraints as a list, in the order they were added.
Apply the coderef to each constraint in turn (ala map) and return the result of each call.
map
Apply the coderef to each constraint in turn (ala grep) and return the constraints for which the code returns a truthy value.
grep
Delete the constraint with the given index from the list.
Get the number of constraints on this query.
Remove all constraints from this query
Remove the given object from the query, where the object is a constraint child object (a path-description, a constraint or a join).
Remove the given constraint. If a string is passed instead, it is assumed to be the code for this constraint, and the constraint with the given code is removed instead.
Return the constraints that have codes and can participate in logic. Returns a list in list context and the size of the list in scalar context.
Return the constraints that constrain object types, and cannot participate in logic. Returns a list in list context and the size of the list in scalar context.
Return the codes (single characters from 'A' to 'Z') that this query uses.
returns a hashref with the mapping from class => subclass for all constrained types within the query. This summarises the information from subclass constraints.
Return the list of subclasses as constrained in the query.
Return an arrayref of the Webservice::InterMine::Join objects on this query, in the order they were added.
Returns the Webservice::InterMine::Join objects of this query as a list in the order they were added to the query.
Apply the codereference to each join in the query in turn and return the results of the calls.
Remove all joins from the query
Remove the given join from the query.
Specifies the join style of a path on the query. The default join style this method adds is "OUTER", but it can be specified with path => $path, style => $style. Possible join styles are INNER and OUTER.
path => $path, style => $style
A shortcut for add_join($path, 'OUTER').
add_join($path, 'OUTER')
Returns the logic object for this query. This object stringifies to the logic expression used in the serialisation.
Remove the current logic from this query
Return true if this query has logic set for it.
Sets the logic for this query, validating it in the process. Returns self to support chaining.
$query->set_logic("A or B and C");
The object responsible for making constraints for this query.
Adds a constraint corresponding to the given arguments, and returns the new constraint.
$query->add_constraint('name', '=', 'foo'); $query->add_constraint(age => {lt => 50});
Add the given constraints to the query, where those constraints are specified with an array-reference or a hash-reference. In list context return the result of the query. In scalar context, return the query for chaining.
This method is similar in interface to the method of the same name in DBIx::Class::ResultSet.
Add the given constraints to the query, and return self to support chaining
$query->where( name => "foo", fullTime => 'true', age => {gt => 10}, 'department.name' => ['Sales', 'Accounting'], 'department.company' => {lookup => 'Foo'}, );
Interpret the constraint arguments so that constraints can be constructed while allowing multiple representations of constraints to be understood.
Remove pointless subclass constraints from the query.
Return a readable representation of the query.
To install Webservice::InterMine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::InterMine
CPAN shell
perl -MCPAN -e shell install Webservice::InterMine
For more information on module installation, please visit the detailed CPAN module installation guide.