Bio::DB::Persistent Seq
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvs
Summary
Bio::DB::Persistent::PrimarySeq - Proxy object for database PrimarySeq
representations
Package variables
No package variables defined.
Included modules
Bio::DB::Persistent::PrimarySeq
Bio::SeqI
Inherit
Bio::DB::Persistent::PrimarySeq
Synopsis
Give standard usage here
Description
This is a proxy object which will ferry calls to/from database for the
heavy stuff (sequence data) while it stores the simple attributes in
memory. This object is obtained from a DBAdaptor.
Methods
new
No description
Code
primary_keyDescriptionCode
Methods description
primary_keycode    nextTop
 Title   : primary_key
Usage : $obj->primary_key($newval)
Function: Get/set the primary key value.
We override this here from PersistentObjectI in order to propagate the primary key to a possibly attached PrimarySeq object if PrimarySeqI is implemented by composition. Example : Returns : value of primary_key (a scalar) Args : new value (a scalar, optional)
Methods code
newdescriptionprevnextTop
sub new {
    my ($class,@args) = @_;

    my $self = $class->SUPER::new(@args);

    # success - we hope
return $self;
}
primary_keydescriptionprevnextTop
sub primary_key {
    my ($self,@args) = @_;

    if(@args && $self->obj() && $self->obj()->can('primary_seq')) {
	my $seq = $self->primary_seq();
	if($seq && $seq->isa("Bio::DB::PersistentObjectI")) {
	    $seq->primary_key(@args);
	}
    }
    return $self->SUPER::primary_key(@args);
}


1;
}
General documentation
FEEDBACKTop
Mailing ListsTop
User feedback is an integral part of the evolution of this and other
Bioperl modules. Send your comments and suggestions preferably to one
of the Bioperl mailing lists. Your participation is much appreciated.
  bioperl-l@bio.perl.org
Support Top
 
Please direct usage questions or support issues to the mailing list:

bioperl-l@bioperl.org

rather than to the module maintainer directly. Many experienced and
reponsive experts will be able look at the problem and quickly
address it. Please include a thorough description of the problem
with code and data examples if at all possible.
Reporting BugsTop
Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via email
or the web:
  bioperl-bugs@bio.perl.org
http://bio.perl.org/bioperl-bugs/
AUTHOR - Hilmar Lapp, Ewan BirneyTop
Email hlapp at gmx.net
Based in idea largely on Bio::DB::Seq by Ewan Birney.
Describe contact details here
APPENDIXTop
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
Overridden methodsTop