ResourceDescriptionAdaptor.pm 1.71 KB
Newer Older
Leo Gordon's avatar
Leo Gordon committed
1 2 3 4
=pod

=head1 NAME

5
    Bio::EnsEMBL::Hive::DBSQL::ResourceDescriptionAdaptor
Leo Gordon's avatar
Leo Gordon committed
6 7 8

=head1 SYNOPSIS

9
    $resource_description_adaptor = $db_adaptor->get_ResourceDescriptionAdaptor;
Leo Gordon's avatar
Leo Gordon committed
10

11
    $resource_description_adaptor = $resource_description_object->adaptor;
Leo Gordon's avatar
Leo Gordon committed
12 13 14

=head1 DESCRIPTION

15 16 17 18 19
    Module to encapsulate all db access for persistent class ResourceDescription.
    There should be just one per application and database connection.

=head1 LICENSE

20
    Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Brandon Walts's avatar
Brandon Walts committed
21
    Copyright [2016-2020] EMBL-European Bioinformatics Institute
22 23 24 25 26 27 28 29 30

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License
    is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and limitations under the License.
Leo Gordon's avatar
Leo Gordon committed
31 32 33

=head1 CONTACT

34
    Please subscribe to the Hive mailing list:  http://listserver.ebi.ac.uk/mailman/listinfo/ehive-users  to discuss Hive-related questions or to be notified of our updates
Leo Gordon's avatar
Leo Gordon committed
35 36 37 38 39 40 41

=cut


package Bio::EnsEMBL::Hive::DBSQL::ResourceDescriptionAdaptor;

use strict;
42
use warnings;
Leo Gordon's avatar
Leo Gordon committed
43 44
use Bio::EnsEMBL::Hive::ResourceDescription;

45
use base ('Bio::EnsEMBL::Hive::DBSQL::ObjectAdaptor');
Leo Gordon's avatar
Leo Gordon committed
46 47


48 49
sub default_table_name {
    return 'resource_description';
Leo Gordon's avatar
Leo Gordon committed
50 51 52
}


53 54
sub default_insertion_method {
    return 'REPLACE';
Leo Gordon's avatar
Leo Gordon committed
55 56 57
}


58 59
sub object_class {
    return 'Bio::EnsEMBL::Hive::ResourceDescription';
Leo Gordon's avatar
Leo Gordon committed
60 61 62 63
}

1;