9 $analysis_adaptor = $db_adaptor->get_AnalysisAdaptor;
11 $analysis_adaptor = $analysis_object->adaptor;
15 Module to encapsulate all db access
for persistent
class Analysis.
16 There should be just one such adaptor per application and database connection.
20 See the NOTICE file distributed with
this work
for additional information
21 regarding copyright ownership.
23 Licensed under the Apache License, Version 2.0 (the
"License"); you may not use
this file except in compliance with the License.
24 You may obtain a copy of the License at
28 Unless required by applicable law or agreed to in writing, software distributed under the License
29 is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30 See the License
for the specific language governing permissions and limitations under the License.
34 Please subscribe to the Hive mailing list: http:
39 package Bio::EnsEMBL::Hive::DBSQL::AnalysisAdaptor;
46 use base (
'Bio::EnsEMBL::Hive::DBSQL::ObjectAdaptor');
49 sub default_table_name {
50 return 'analysis_base';
55 return 'Bio::EnsEMBL::Hive::Analysis';
59 =head2 fetch_by_url_query
61 Description: fetches the analysis either by logic_name or by dbID (either coming from the tail of the URL)
65 sub fetch_by_url_query {
66 my ($self, $field_name, $field_value) = @_;
68 if(!$field_name or !$field_value) {
72 } elsif($field_name eq
'logic_name') {
74 return $self->fetch_by_logic_name($field_value);
76 } elsif($field_name eq
'dbID') {
78 return $self->fetch_by_dbID($field_value);