| 1 | package Bio::DB::GFF::Adaptor::ace; | ||||||||||
| 2 | 3 | $Bio::DB::GFF::Adaptor::ace::VERSION = '1.7.3'; | |||||||||
| 3 | =head1 NAME | ||||||||||
| 4 | |||||||||||
| 5 | Bio::DB::GFF::Adaptor::ace -- ace interface (for multiple inheritance) | ||||||||||
| 6 | |||||||||||
| 7 | =head1 SYNOPSIS | ||||||||||
| 8 | |||||||||||
| 9 | Pending | ||||||||||
| 10 | |||||||||||
| 11 | See L<Bio::DB::GFF> and L<Bio::DB::GFF::Adaptor::dbi::mysql> | ||||||||||
| 12 | |||||||||||
| 13 | =head1 SEE ALSO | ||||||||||
| 14 | |||||||||||
| 15 | L<Bio::DB::GFF>, L<bioperl> | ||||||||||
| 16 | |||||||||||
| 17 | =head1 AUTHOR | ||||||||||
| 18 | |||||||||||
| 19 | Lincoln Stein E<lt>lstein@cshl.orgE<gt>. | ||||||||||
| 20 | |||||||||||
| 21 | Copyright (c) 2002 Cold Spring Harbor Laboratory. | ||||||||||
| 22 | |||||||||||
| 23 | This library is free software; you can redistribute it and/or modify | ||||||||||
| 24 | it under the same terms as Perl itself. | ||||||||||
| 25 | |||||||||||
| 26 | =cut | ||||||||||
| 27 | |||||||||||
| 28 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 29 | 3 | ▶ | use Ace; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 30 | 3 | ▶ | use Bio::DB::GFF::Util::Rearrange; # for rearrange() | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 31 | |||||||||||
| 32 | 0 | ▶ | sub dna_db { | ||||||||
|
Subroutine
dna_db: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 33 | 0 | my $self = shift; | |||||||||
| 34 | 0 | my $d = $self->{dna_db}; | |||||||||
| 35 | 0 | ▶ | $self->{dna_db} = shift if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | 0 | $d; | |||||||||
| 37 | } | ||||||||||
| 38 | 0 | ▶ | sub acedb { | ||||||||
|
Subroutine
acedb: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 39 | 0 | my $self = shift; | |||||||||
| 40 | 0 | my $d = $self->{acedb}; | |||||||||
| 41 | 0 | ▶ | $self->{acedb} = shift if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 42 | 0 | $d; | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | =head2 freshen_ace | ||||||||||
| 46 | |||||||||||
| 47 | Title : freshen | ||||||||||
| 48 | Usage : $flag = Bio::DB::GFF->freshen_ace; | ||||||||||
| 49 | Function: Refresh internal acedb handle | ||||||||||
| 50 | Returns : flag if correctly freshened | ||||||||||
| 51 | Args : none | ||||||||||
| 52 | Status : Public | ||||||||||
| 53 | |||||||||||
| 54 | ACeDB has an annoying way of timing out, leaving dangling database | ||||||||||
| 55 | handles. This method will invoke the ACeDB reopen() method, which | ||||||||||
| 56 | causes dangling handles to be refreshed. It has no effect if you are | ||||||||||
| 57 | not using ACeDB to create ACeDB objects. | ||||||||||
| 58 | |||||||||||
| 59 | =cut | ||||||||||
| 60 | |||||||||||
| 61 | 0 | ▶ | sub freshen_ace { | ||||||||
|
Subroutine
freshen_ace: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 62 | 0 | ▶ | my $acedb = shift->acedb or return; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 63 | 0 | $acedb->reopen(); | |||||||||
| 64 | } | ||||||||||
| 65 | |||||||||||
| 66 | 3 | 1; | |||||||||