File Coverage

blib/lib/Bio/Chado/Schema/Result/Mage/Arraydesign.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::Arraydesign;
2             BEGIN {
3 6     6   2680 $Bio::Chado::Schema::Result::Mage::Arraydesign::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   101 $Bio::Chado::Schema::Result::Mage::Arraydesign::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   36 use strict;
  6         13  
  6         101  
13 6     6   28 use warnings;
  6         13  
  6         126  
14              
15 6     6   29 use base 'DBIx::Class::Core';
  6         13  
  6         1704  
16              
17              
18              
19             __PACKAGE__->table("arraydesign");
20              
21              
22             __PACKAGE__->add_columns(
23             "arraydesign_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "arraydesign_arraydesign_id_seq",
29             },
30             "manufacturer_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "platformtype_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "substratetype_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
36             "protocol_id",
37             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
38             "dbxref_id",
39             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
40             "name",
41             { data_type => "text", is_nullable => 0 },
42             "version",
43             { data_type => "text", is_nullable => 1 },
44             "description",
45             { data_type => "text", is_nullable => 1 },
46             "array_dimensions",
47             { data_type => "text", is_nullable => 1 },
48             "element_dimensions",
49             { data_type => "text", is_nullable => 1 },
50             "num_of_elements",
51             { data_type => "integer", is_nullable => 1 },
52             "num_array_columns",
53             { data_type => "integer", is_nullable => 1 },
54             "num_array_rows",
55             { data_type => "integer", is_nullable => 1 },
56             "num_grid_columns",
57             { data_type => "integer", is_nullable => 1 },
58             "num_grid_rows",
59             { data_type => "integer", is_nullable => 1 },
60             "num_sub_columns",
61             { data_type => "integer", is_nullable => 1 },
62             "num_sub_rows",
63             { data_type => "integer", is_nullable => 1 },
64             );
65             __PACKAGE__->set_primary_key("arraydesign_id");
66             __PACKAGE__->add_unique_constraint("arraydesign_c1", ["name"]);
67              
68              
69             __PACKAGE__->belongs_to(
70             "manufacturer",
71             "Bio::Chado::Schema::Result::Contact::Contact",
72             { contact_id => "manufacturer_id" },
73             {
74             cascade_copy => 0,
75             cascade_delete => 0,
76             is_deferrable => 1,
77             on_delete => "CASCADE",
78             on_update => "CASCADE",
79             },
80             );
81              
82              
83             __PACKAGE__->belongs_to(
84             "platformtype",
85             "Bio::Chado::Schema::Result::Cv::Cvterm",
86             { cvterm_id => "platformtype_id" },
87             {
88             cascade_copy => 0,
89             cascade_delete => 0,
90             is_deferrable => 1,
91             on_delete => "CASCADE",
92             on_update => "CASCADE",
93             },
94             );
95              
96              
97             __PACKAGE__->belongs_to(
98             "dbxref",
99             "Bio::Chado::Schema::Result::General::Dbxref",
100             { dbxref_id => "dbxref_id" },
101             {
102             cascade_copy => 0,
103             cascade_delete => 0,
104             is_deferrable => 1,
105             join_type => "LEFT",
106             on_delete => "CASCADE",
107             on_update => "CASCADE",
108             },
109             );
110              
111              
112             __PACKAGE__->belongs_to(
113             "substratetype",
114             "Bio::Chado::Schema::Result::Cv::Cvterm",
115             { cvterm_id => "substratetype_id" },
116             {
117             cascade_copy => 0,
118             cascade_delete => 0,
119             is_deferrable => 1,
120             join_type => "LEFT",
121             on_delete => "CASCADE",
122             on_update => "CASCADE",
123             },
124             );
125              
126              
127             __PACKAGE__->belongs_to(
128             "protocol",
129             "Bio::Chado::Schema::Result::Mage::Protocol",
130             { protocol_id => "protocol_id" },
131             {
132             cascade_copy => 0,
133             cascade_delete => 0,
134             is_deferrable => 1,
135             join_type => "LEFT",
136             on_delete => "CASCADE",
137             on_update => "CASCADE",
138             },
139             );
140              
141              
142             __PACKAGE__->has_many(
143             "arraydesignprops",
144             "Bio::Chado::Schema::Result::Mage::Arraydesignprop",
145             { "foreign.arraydesign_id" => "self.arraydesign_id" },
146             { cascade_copy => 0, cascade_delete => 0 },
147             );
148              
149              
150             __PACKAGE__->has_many(
151             "assays",
152             "Bio::Chado::Schema::Result::Mage::Assay",
153             { "foreign.arraydesign_id" => "self.arraydesign_id" },
154             { cascade_copy => 0, cascade_delete => 0 },
155             );
156              
157              
158             __PACKAGE__->has_many(
159             "elements",
160             "Bio::Chado::Schema::Result::Mage::Element",
161             { "foreign.arraydesign_id" => "self.arraydesign_id" },
162             { cascade_copy => 0, cascade_delete => 0 },
163             );
164              
165              
166             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
167             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FR/k6RYSH2PKr1sDtaDFcA
168              
169              
170             # You can replace this text with custom content, and it will be preserved on regeneration
171             1;
172              
173             __END__