Included libraries | Package variables | General documentation | Methods |
WebCvs | Raw content |
_columns | No description | Code |
_objs_from_sth | No description | Code |
_tables | No description | Code |
fetch_by_Entry | No description | Code |
fetch_by_dbID | No description | Code |
fetch_by_description | No description | Code |
fetch_by_entry_id | No description | Code |
_columns | description | prev | next | Top |
my $self = shift; return ( 'd.entry_id', 'd.description');}
_objs_from_sth | description | prev | next | Top |
my ($self, $sth) = @_; my @out; my ( $entry_id, $description ); $sth->bind_columns(\$ entry_id,\$ description ); while($sth->fetch()) { push @out, Bio::EnsEMBL::ExternalData::Mole::Description->new( -dbID => $entry_id, -description => $description, -adaptor => $self ); } return\@ out; } 1;}
_tables | description | prev | next | Top |
my $self = shift; return (['description' , 'd']);}
fetch_by_Entry | description | prev | next | Top |
my $self = shift; my $entry = shift; my $sth = $self->prepare( "SELECT a.accession_id ". "FROM accession a ". "WHERE a.entry_id = ?"); $sth->bind_param(1, $entry->dbID, SQL_INTEGER); $sth->execute(); my $id = $sth->fetchrow(); $sth->finish(); my $description_object = $self->fetch_by_dbID($id); return $description_object;}
fetch_by_dbID | description | prev | next | Top |
my $self = shift; my $id = shift; my $constraint = "d.entry_id = '$id'"; my ($description_obj) = @{ $self->generic_fetch($constraint) }; return $description_obj;}
fetch_by_description | description | prev | next | Top |
my $self = shift; my $description = shift; my $constraint = "d.description = '$description'"; my ($description_obj) = @{ $self->generic_fetch($constraint) }; return $description_obj;}
fetch_by_entry_id | description | prev | next | Top |
my ($self, $entry_id) = @_; my $constraint = "d.entry_id = '$entry_id'"; my ($description_obj) = @{ $self->generic_fetch($constraint) }; return $description_obj;}