File Coverage

blib/lib/Bio/Chado/Schema/Result/Mage/Elementresult.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Bio::Chado::Schema::Result::Mage::Elementresult;
2             BEGIN {
3 6     6   2591 $Bio::Chado::Schema::Result::Mage::Elementresult::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   101 $Bio::Chado::Schema::Result::Mage::Elementresult::VERSION = '0.08001'; # TRIAL
7             }
8              
9             # Created by DBIx::Class::Schema::Loader
10             # DO NOT MODIFY THE FIRST PART OF THIS FILE
11              
12 6     6   35 use strict;
  6         14  
  6         95  
13 6     6   26 use warnings;
  6         14  
  6         136  
14              
15 6     6   29 use base 'DBIx::Class::Core';
  6         12  
  6         1045  
16              
17              
18              
19             __PACKAGE__->table("elementresult");
20              
21              
22             __PACKAGE__->add_columns(
23             "elementresult_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "elementresult_elementresult_id_seq",
29             },
30             "element_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "quantification_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "signal",
35             { data_type => "double precision", is_nullable => 0 },
36             );
37             __PACKAGE__->set_primary_key("elementresult_id");
38             __PACKAGE__->add_unique_constraint("elementresult_c1", ["element_id", "quantification_id"]);
39              
40              
41             __PACKAGE__->belongs_to(
42             "element",
43             "Bio::Chado::Schema::Result::Mage::Element",
44             { element_id => "element_id" },
45             {
46             cascade_copy => 0,
47             cascade_delete => 0,
48             is_deferrable => 1,
49             on_delete => "CASCADE",
50             on_update => "CASCADE",
51             },
52             );
53              
54              
55             __PACKAGE__->belongs_to(
56             "quantification",
57             "Bio::Chado::Schema::Result::Mage::Quantification",
58             { quantification_id => "quantification_id" },
59             {
60             cascade_copy => 0,
61             cascade_delete => 0,
62             is_deferrable => 1,
63             on_delete => "CASCADE",
64             on_update => "CASCADE",
65             },
66             );
67              
68              
69             __PACKAGE__->has_many(
70             "elementresult_relationship_subjects",
71             "Bio::Chado::Schema::Result::Mage::ElementresultRelationship",
72             { "foreign.subject_id" => "self.elementresult_id" },
73             { cascade_copy => 0, cascade_delete => 0 },
74             );
75              
76              
77             __PACKAGE__->has_many(
78             "elementresult_relationship_objects",
79             "Bio::Chado::Schema::Result::Mage::ElementresultRelationship",
80             { "foreign.object_id" => "self.elementresult_id" },
81             { cascade_copy => 0, cascade_delete => 0 },
82             );
83              
84              
85             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
86             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZaZkTc2galwdEmECncsrYw
87              
88              
89             # You can replace this text with custom content, and it will be preserved on regeneration
90             1;
91              
92             __END__