#!/usr/bin/perl
package Phrase_link;

#####################################################################
# Author : Shuai Weng / Kane Tse
# Date   : July 2001
#####################################################################

use strict;
use DBI;
use Carp;
use vars qw (@ISA %allowedConstructors);
use dictyBase_Table;
@ISA = qw (dictyBase_Table); # base class

# Class Globals

# put column names in the hash below, that are able to uniquely
# specify a row in the table

%allowedConstructors = (phrase_link_no=>undef,
			'phrase_no:tab_name:primary_key:primary_key_col'=>undef);


####################################################################
sub DESTROY{
####################################################################
# nothing needs to be done 

}


####################################################################
1; #################################################################
####################################################################

=pod

=head1 Name

Phrase_link.pm

=head1 Description

This perl object (Phrase_link.pm) acts as container for Phrase_link info in Oracle database. Once an object has been instantiated, several methods are available to retrieve the attributes of the object. 


=head1 Instantiating a New Phrase_link Object

To instantiate a new Phrase_link object, you may use one of the following syntaxes: 

my $PhraseLinkObj = Phrase_link->new(dbh=>$dbh,
		                     phrase_link_no=>$PhraseLinkNo);


OR


my $Obj = Phrase_link->new(dbh=>$dbh, 
		           phrase_no=>$phraseNo,
   		           tab_name=>$tabNm,
		           primary_key=>$prikey,
		           primary_key_col=>=>$prikeyCol);


where $dbh is a valid database handle to either dictyBase or SDEV. All passed in values must be valid values for the columns that were provided, otherwise the script will die, with an appropriate error message.
 

=head1 Accessor Methods


All accessor methods take the form of : 


column_name, eg: 


my $dateCreated = $Obj->date_created; 


etc. You can use an accessor for any valid column in the Reflink table. 

=head1 Author

Shuai Weng / Kane Tse

shuai@genome.stanford.edu, ktse@genome.stanford.edu

=cut











