ResourceClassAdaptor.pm 1.58 KB
Newer Older
1 2 3 4
=pod

=head1 NAME

5
    Bio::EnsEMBL::Hive::DBSQL::ResourceClassAdaptor
6 7 8

=head1 SYNOPSIS

9
    $resource_class_adaptor = $db_adaptor->get_ResourceClassAdaptor;
10

11
    $resource_class_adaptor = $resource_class_object->adaptor;
12 13 14

=head1 DESCRIPTION

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

=head1 LICENSE

20
    Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
21 22 23 24 25 26 27 28 29

    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.
30 31 32

=head1 CONTACT

33
    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
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61

=cut


package Bio::EnsEMBL::Hive::DBSQL::ResourceClassAdaptor;

use strict;
use Bio::EnsEMBL::Hive::ResourceClass;

use base ('Bio::EnsEMBL::Hive::DBSQL::ObjectAdaptor');


sub default_table_name {
    return 'resource_class';
}


sub default_insertion_method {
    return 'INSERT_IGNORE';
}


sub object_class {
    return 'Bio::EnsEMBL::Hive::ResourceClass';
}

1;