File Coverage

blib/lib/Bio/Chado/Schema/Result/General/Dbxref.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::General::Dbxref;
2             BEGIN {
3 6     6   2714 $Bio::Chado::Schema::Result::General::Dbxref::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   100 $Bio::Chado::Schema::Result::General::Dbxref::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         11  
  6         98  
13 6     6   31 use warnings;
  6         11  
  6         128  
14              
15 6     6   30 use base 'DBIx::Class::Core';
  6         14  
  6         2714  
16              
17              
18              
19             __PACKAGE__->table("dbxref");
20              
21              
22             __PACKAGE__->add_columns(
23             "dbxref_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "dbxref_dbxref_id_seq",
29             },
30             "db_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "accession",
33             { data_type => "varchar", is_nullable => 0, size => 255 },
34             "version",
35             { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
36             "description",
37             { data_type => "text", is_nullable => 1 },
38             );
39             __PACKAGE__->set_primary_key("dbxref_id");
40             __PACKAGE__->add_unique_constraint("dbxref_c1", ["db_id", "accession", "version"]);
41              
42              
43             __PACKAGE__->has_many(
44             "arraydesigns",
45             "Bio::Chado::Schema::Result::Mage::Arraydesign",
46             { "foreign.dbxref_id" => "self.dbxref_id" },
47             { cascade_copy => 0, cascade_delete => 0 },
48             );
49              
50              
51             __PACKAGE__->has_many(
52             "assays",
53             "Bio::Chado::Schema::Result::Mage::Assay",
54             { "foreign.dbxref_id" => "self.dbxref_id" },
55             { cascade_copy => 0, cascade_delete => 0 },
56             );
57              
58              
59             __PACKAGE__->has_many(
60             "biomaterials",
61             "Bio::Chado::Schema::Result::Mage::Biomaterial",
62             { "foreign.dbxref_id" => "self.dbxref_id" },
63             { cascade_copy => 0, cascade_delete => 0 },
64             );
65              
66              
67             __PACKAGE__->has_many(
68             "biomaterial_dbxrefs",
69             "Bio::Chado::Schema::Result::Mage::BiomaterialDbxref",
70             { "foreign.dbxref_id" => "self.dbxref_id" },
71             { cascade_copy => 0, cascade_delete => 0 },
72             );
73              
74              
75             __PACKAGE__->has_many(
76             "cell_line_dbxrefs",
77             "Bio::Chado::Schema::Result::CellLine::CellLineDbxref",
78             { "foreign.dbxref_id" => "self.dbxref_id" },
79             { cascade_copy => 0, cascade_delete => 0 },
80             );
81              
82              
83             __PACKAGE__->might_have(
84             "cvterm",
85             "Bio::Chado::Schema::Result::Cv::Cvterm",
86             { "foreign.dbxref_id" => "self.dbxref_id" },
87             { cascade_copy => 0, cascade_delete => 0 },
88             );
89              
90              
91             __PACKAGE__->has_many(
92             "cvterm_dbxrefs",
93             "Bio::Chado::Schema::Result::Cv::CvtermDbxref",
94             { "foreign.dbxref_id" => "self.dbxref_id" },
95             { cascade_copy => 0, cascade_delete => 0 },
96             );
97              
98              
99             __PACKAGE__->belongs_to(
100             "db",
101             "Bio::Chado::Schema::Result::General::Db",
102             { db_id => "db_id" },
103             {
104             cascade_copy => 0,
105             cascade_delete => 0,
106             is_deferrable => 1,
107             on_delete => "CASCADE",
108             on_update => "CASCADE",
109             },
110             );
111              
112              
113             __PACKAGE__->has_many(
114             "dbxrefprops",
115             "Bio::Chado::Schema::Result::Cv::Dbxrefprop",
116             { "foreign.dbxref_id" => "self.dbxref_id" },
117             { cascade_copy => 0, cascade_delete => 0 },
118             );
119              
120              
121             __PACKAGE__->has_many(
122             "elements",
123             "Bio::Chado::Schema::Result::Mage::Element",
124             { "foreign.dbxref_id" => "self.dbxref_id" },
125             { cascade_copy => 0, cascade_delete => 0 },
126             );
127              
128              
129             __PACKAGE__->has_many(
130             "features",
131             "Bio::Chado::Schema::Result::Sequence::Feature",
132             { "foreign.dbxref_id" => "self.dbxref_id" },
133             { cascade_copy => 0, cascade_delete => 0 },
134             );
135              
136              
137             __PACKAGE__->has_many(
138             "feature_cvterm_dbxrefs",
139             "Bio::Chado::Schema::Result::Sequence::FeatureCvtermDbxref",
140             { "foreign.dbxref_id" => "self.dbxref_id" },
141             { cascade_copy => 0, cascade_delete => 0 },
142             );
143              
144              
145             __PACKAGE__->has_many(
146             "feature_dbxrefs",
147             "Bio::Chado::Schema::Result::Sequence::FeatureDbxref",
148             { "foreign.dbxref_id" => "self.dbxref_id" },
149             { cascade_copy => 0, cascade_delete => 0 },
150             );
151              
152              
153             __PACKAGE__->has_many(
154             "library_dbxrefs",
155             "Bio::Chado::Schema::Result::Library::LibraryDbxref",
156             { "foreign.dbxref_id" => "self.dbxref_id" },
157             { cascade_copy => 0, cascade_delete => 0 },
158             );
159              
160              
161             __PACKAGE__->has_many(
162             "nd_experiment_dbxrefs",
163             "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentDbxref",
164             { "foreign.dbxref_id" => "self.dbxref_id" },
165             { cascade_copy => 0, cascade_delete => 0 },
166             );
167              
168              
169             __PACKAGE__->has_many(
170             "nd_experiment_stock_dbxrefs",
171             "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStockDbxref",
172             { "foreign.dbxref_id" => "self.dbxref_id" },
173             { cascade_copy => 0, cascade_delete => 0 },
174             );
175              
176              
177             __PACKAGE__->has_many(
178             "organism_dbxrefs",
179             "Bio::Chado::Schema::Result::Organism::OrganismDbxref",
180             { "foreign.dbxref_id" => "self.dbxref_id" },
181             { cascade_copy => 0, cascade_delete => 0 },
182             );
183              
184              
185             __PACKAGE__->has_many(
186             "phylonode_dbxrefs",
187             "Bio::Chado::Schema::Result::Phylogeny::PhylonodeDbxref",
188             { "foreign.dbxref_id" => "self.dbxref_id" },
189             { cascade_copy => 0, cascade_delete => 0 },
190             );
191              
192              
193             __PACKAGE__->has_many(
194             "phylotrees",
195             "Bio::Chado::Schema::Result::Phylogeny::Phylotree",
196             { "foreign.dbxref_id" => "self.dbxref_id" },
197             { cascade_copy => 0, cascade_delete => 0 },
198             );
199              
200              
201             __PACKAGE__->has_many(
202             "protocols",
203             "Bio::Chado::Schema::Result::Mage::Protocol",
204             { "foreign.dbxref_id" => "self.dbxref_id" },
205             { cascade_copy => 0, cascade_delete => 0 },
206             );
207              
208              
209             __PACKAGE__->has_many(
210             "pub_dbxrefs",
211             "Bio::Chado::Schema::Result::Pub::PubDbxref",
212             { "foreign.dbxref_id" => "self.dbxref_id" },
213             { cascade_copy => 0, cascade_delete => 0 },
214             );
215              
216              
217             __PACKAGE__->has_many(
218             "stocks",
219             "Bio::Chado::Schema::Result::Stock::Stock",
220             { "foreign.dbxref_id" => "self.dbxref_id" },
221             { cascade_copy => 0, cascade_delete => 0 },
222             );
223              
224              
225             __PACKAGE__->has_many(
226             "stock_dbxrefs",
227             "Bio::Chado::Schema::Result::Stock::StockDbxref",
228             { "foreign.dbxref_id" => "self.dbxref_id" },
229             { cascade_copy => 0, cascade_delete => 0 },
230             );
231              
232              
233             __PACKAGE__->has_many(
234             "studies",
235             "Bio::Chado::Schema::Result::Mage::Study",
236             { "foreign.dbxref_id" => "self.dbxref_id" },
237             { cascade_copy => 0, cascade_delete => 0 },
238             );
239              
240              
241             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
242             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZJLCc473+PTc1EIgOlcgGQ
243              
244              
245              
246             __PACKAGE__->many_to_many
247             (
248             'biomaterials_mm',
249             'biomaterial_dbxrefs' => 'biomaterial',
250             );
251              
252              
253             __PACKAGE__->many_to_many
254             (
255             'cell_lines_mm',
256             'cell_line_dbxrefs' => 'cell_line',
257             );
258              
259              
260             __PACKAGE__->many_to_many
261             (
262             'cvterms_mm',
263             'cvterm_dbxrefs' => 'cvterm',
264             );
265              
266              
267             __PACKAGE__->many_to_many
268             (
269             'features_mm',
270             'feature_dbxrefs' => 'feature',
271             );
272              
273              
274             __PACKAGE__->many_to_many
275             (
276             'libraries_mm',
277             'library_dbxrefs' => 'library',
278             );
279              
280              
281             __PACKAGE__->many_to_many
282             (
283             'organisms_mm',
284             'organism_dbxrefs' => 'organism',
285             );
286              
287              
288             __PACKAGE__->many_to_many
289             (
290             'phylonodes_mm',
291             'phylonode_dbxrefs' => 'phylonode',
292             );
293              
294              
295             __PACKAGE__->many_to_many
296             (
297             'pubs_mm',
298             'pub_dbxrefs' => 'pub',
299             );
300              
301              
302             __PACKAGE__->many_to_many
303             (
304             'stocks_mm',
305             'stock_dbxrefs' => 'stock',
306             );
307              
308              
309             # You can replace this text with custom content, and it will be preserved on regeneration
310             1;
311              
312             __END__