[Bio] / FigKernelPackages / FIGMODELTable.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/FIGMODELTable.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11, Fri Oct 9 21:54:20 2009 UTC revision 1.12, Fri Dec 11 21:37:02 2009 UTC
# Line 212  Line 212 
212    
213  sub get_rows_by_key {  sub get_rows_by_key {
214          my ($self,$Key,$HashColumn) = @_;          my ($self,$Key,$HashColumn) = @_;
215    
216          if (defined($self->{"hash columns"}->{$HashColumn}->{$Key})) {          if (defined($self->{"hash columns"}->{$HashColumn}->{$Key})) {
217                  return @{$self->{"hash columns"}->{$HashColumn}->{$Key}};                  return @{$self->{"hash columns"}->{$HashColumn}->{$Key}};
218          }          }
# Line 976  Line 977 
977          return 1;          return 1;
978  }  }
979    
980    =head3 set_metadata
981    Definition:
982            FIGMODELTable->set_metadata(string::key,string::data);
983    Description:
984            Sets a specified metadata for the table
985    =cut
986    sub set_metadata {
987            my ($self,$key,$data) = @_;
988            $self->{_metadata}->{$key} = $data;
989    }
990    
991    =head3 get_meta_data
992    Definition:
993            string::data = FIGMODELTable->get_meta_data(string::key);
994    Description:
995            Sets a specified metadata for the table
996    =cut
997    sub get_meta_data {
998            my ($self,$key,$data) = @_;
999            return $self->{_metadata}->{$key};
1000    }
1001    
1002    
1003    
1004    
1005  1;  1;

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3