~ubuntu-branches/ubuntu/saucy/libbio-chado-schema-perl/saucy

1 by Olivier Sallou
Import upstream version 0.09040
1
package Bio::Chado::Schema::Result::General::Dbxref;
2
BEGIN {
3
  $Bio::Chado::Schema::Result::General::Dbxref::AUTHORITY = 'cpan:RBUELS';
4
}
1.1.2 by Olivier Sallou
Import upstream version 0.20000
5
{
6
  $Bio::Chado::Schema::Result::General::Dbxref::VERSION = '0.20000';
1 by Olivier Sallou
Import upstream version 0.09040
7
}
8
9
# Created by DBIx::Class::Schema::Loader
10
# DO NOT MODIFY THE FIRST PART OF THIS FILE
11
12
use strict;
13
use warnings;
14
15
use base 'DBIx::Class::Core';
16
17
18
=head1 NAME
19
20
Bio::Chado::Schema::Result::General::Dbxref
21
22
=head1 DESCRIPTION
23
24
A unique, global, public, stable identifier. Not necessarily an external reference - can reference data items inside the particular chado instance being used. Typically a row in a table can be uniquely identified with a primary identifier (called dbxref_id); a table may also have secondary identifiers (in a linking table <T>_dbxref). A dbxref is generally written as <DB>:<ACCESSION> or as <DB>:<ACCESSION>:<VERSION>.
25
26
=cut
27
28
__PACKAGE__->table("dbxref");
29
30
=head1 ACCESSORS
31
32
=head2 dbxref_id
33
34
  data_type: 'integer'
35
  is_auto_increment: 1
36
  is_nullable: 0
37
  sequence: 'dbxref_dbxref_id_seq'
38
39
=head2 db_id
40
41
  data_type: 'integer'
42
  is_foreign_key: 1
43
  is_nullable: 0
44
45
=head2 accession
46
47
  data_type: 'varchar'
48
  is_nullable: 0
49
  size: 255
50
51
The local part of the identifier. Guaranteed by the db authority to be unique for that db.
52
53
=head2 version
54
55
  data_type: 'varchar'
56
  default_value: (empty string)
57
  is_nullable: 0
58
  size: 255
59
60
=head2 description
61
62
  data_type: 'text'
63
  is_nullable: 1
64
65
=cut
66
67
__PACKAGE__->add_columns(
68
  "dbxref_id",
69
  {
70
    data_type         => "integer",
71
    is_auto_increment => 1,
72
    is_nullable       => 0,
73
    sequence          => "dbxref_dbxref_id_seq",
74
  },
75
  "db_id",
76
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
77
  "accession",
78
  { data_type => "varchar", is_nullable => 0, size => 255 },
79
  "version",
80
  { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
81
  "description",
82
  { data_type => "text", is_nullable => 1 },
83
);
84
__PACKAGE__->set_primary_key("dbxref_id");
85
__PACKAGE__->add_unique_constraint("dbxref_c1", ["db_id", "accession", "version"]);
86
87
=head1 RELATIONS
88
89
=head2 arraydesigns
90
91
Type: has_many
92
93
Related object: L<Bio::Chado::Schema::Result::Mage::Arraydesign>
94
95
=cut
96
97
__PACKAGE__->has_many(
98
  "arraydesigns",
99
  "Bio::Chado::Schema::Result::Mage::Arraydesign",
100
  { "foreign.dbxref_id" => "self.dbxref_id" },
101
  { cascade_copy => 0, cascade_delete => 0 },
102
);
103
104
=head2 assays
105
106
Type: has_many
107
108
Related object: L<Bio::Chado::Schema::Result::Mage::Assay>
109
110
=cut
111
112
__PACKAGE__->has_many(
113
  "assays",
114
  "Bio::Chado::Schema::Result::Mage::Assay",
115
  { "foreign.dbxref_id" => "self.dbxref_id" },
116
  { cascade_copy => 0, cascade_delete => 0 },
117
);
118
119
=head2 biomaterials
120
121
Type: has_many
122
123
Related object: L<Bio::Chado::Schema::Result::Mage::Biomaterial>
124
125
=cut
126
127
__PACKAGE__->has_many(
128
  "biomaterials",
129
  "Bio::Chado::Schema::Result::Mage::Biomaterial",
130
  { "foreign.dbxref_id" => "self.dbxref_id" },
131
  { cascade_copy => 0, cascade_delete => 0 },
132
);
133
134
=head2 biomaterial_dbxrefs
135
136
Type: has_many
137
138
Related object: L<Bio::Chado::Schema::Result::Mage::BiomaterialDbxref>
139
140
=cut
141
142
__PACKAGE__->has_many(
143
  "biomaterial_dbxrefs",
144
  "Bio::Chado::Schema::Result::Mage::BiomaterialDbxref",
145
  { "foreign.dbxref_id" => "self.dbxref_id" },
146
  { cascade_copy => 0, cascade_delete => 0 },
147
);
148
149
=head2 cell_line_dbxrefs
150
151
Type: has_many
152
153
Related object: L<Bio::Chado::Schema::Result::CellLine::CellLineDbxref>
154
155
=cut
156
157
__PACKAGE__->has_many(
158
  "cell_line_dbxrefs",
159
  "Bio::Chado::Schema::Result::CellLine::CellLineDbxref",
160
  { "foreign.dbxref_id" => "self.dbxref_id" },
161
  { cascade_copy => 0, cascade_delete => 0 },
162
);
163
164
=head2 cvterm
165
166
Type: might_have
167
168
Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm>
169
170
=cut
171
172
__PACKAGE__->might_have(
173
  "cvterm",
174
  "Bio::Chado::Schema::Result::Cv::Cvterm",
175
  { "foreign.dbxref_id" => "self.dbxref_id" },
176
  { cascade_copy => 0, cascade_delete => 0 },
177
);
178
179
=head2 cvterm_dbxrefs
180
181
Type: has_many
182
183
Related object: L<Bio::Chado::Schema::Result::Cv::CvtermDbxref>
184
185
=cut
186
187
__PACKAGE__->has_many(
188
  "cvterm_dbxrefs",
189
  "Bio::Chado::Schema::Result::Cv::CvtermDbxref",
190
  { "foreign.dbxref_id" => "self.dbxref_id" },
191
  { cascade_copy => 0, cascade_delete => 0 },
192
);
193
194
=head2 db
195
196
Type: belongs_to
197
198
Related object: L<Bio::Chado::Schema::Result::General::Db>
199
200
=cut
201
202
__PACKAGE__->belongs_to(
203
  "db",
204
  "Bio::Chado::Schema::Result::General::Db",
205
  { db_id => "db_id" },
206
  {
207
    cascade_copy   => 0,
208
    cascade_delete => 0,
209
    is_deferrable  => 1,
210
    on_delete      => "CASCADE",
211
    on_update      => "CASCADE",
212
  },
213
);
214
215
=head2 dbxrefprops
216
217
Type: has_many
218
219
Related object: L<Bio::Chado::Schema::Result::Cv::Dbxrefprop>
220
221
=cut
222
223
__PACKAGE__->has_many(
224
  "dbxrefprops",
225
  "Bio::Chado::Schema::Result::Cv::Dbxrefprop",
226
  { "foreign.dbxref_id" => "self.dbxref_id" },
227
  { cascade_copy => 0, cascade_delete => 0 },
228
);
229
230
=head2 elements
231
232
Type: has_many
233
234
Related object: L<Bio::Chado::Schema::Result::Mage::Element>
235
236
=cut
237
238
__PACKAGE__->has_many(
239
  "elements",
240
  "Bio::Chado::Schema::Result::Mage::Element",
241
  { "foreign.dbxref_id" => "self.dbxref_id" },
242
  { cascade_copy => 0, cascade_delete => 0 },
243
);
244
245
=head2 features
246
247
Type: has_many
248
249
Related object: L<Bio::Chado::Schema::Result::Sequence::Feature>
250
251
=cut
252
253
__PACKAGE__->has_many(
254
  "features",
255
  "Bio::Chado::Schema::Result::Sequence::Feature",
256
  { "foreign.dbxref_id" => "self.dbxref_id" },
257
  { cascade_copy => 0, cascade_delete => 0 },
258
);
259
260
=head2 feature_cvterm_dbxrefs
261
262
Type: has_many
263
264
Related object: L<Bio::Chado::Schema::Result::Sequence::FeatureCvtermDbxref>
265
266
=cut
267
268
__PACKAGE__->has_many(
269
  "feature_cvterm_dbxrefs",
270
  "Bio::Chado::Schema::Result::Sequence::FeatureCvtermDbxref",
271
  { "foreign.dbxref_id" => "self.dbxref_id" },
272
  { cascade_copy => 0, cascade_delete => 0 },
273
);
274
275
=head2 feature_dbxrefs
276
277
Type: has_many
278
279
Related object: L<Bio::Chado::Schema::Result::Sequence::FeatureDbxref>
280
281
=cut
282
283
__PACKAGE__->has_many(
284
  "feature_dbxrefs",
285
  "Bio::Chado::Schema::Result::Sequence::FeatureDbxref",
286
  { "foreign.dbxref_id" => "self.dbxref_id" },
287
  { cascade_copy => 0, cascade_delete => 0 },
288
);
289
290
=head2 library_dbxrefs
291
292
Type: has_many
293
294
Related object: L<Bio::Chado::Schema::Result::Library::LibraryDbxref>
295
296
=cut
297
298
__PACKAGE__->has_many(
299
  "library_dbxrefs",
300
  "Bio::Chado::Schema::Result::Library::LibraryDbxref",
301
  { "foreign.dbxref_id" => "self.dbxref_id" },
302
  { cascade_copy => 0, cascade_delete => 0 },
303
);
304
305
=head2 nd_experiment_dbxrefs
306
307
Type: has_many
308
309
Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentDbxref>
310
311
=cut
312
313
__PACKAGE__->has_many(
314
  "nd_experiment_dbxrefs",
315
  "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentDbxref",
316
  { "foreign.dbxref_id" => "self.dbxref_id" },
317
  { cascade_copy => 0, cascade_delete => 0 },
318
);
319
320
=head2 nd_experiment_stock_dbxrefs
321
322
Type: has_many
323
324
Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStockDbxref>
325
326
=cut
327
328
__PACKAGE__->has_many(
329
  "nd_experiment_stock_dbxrefs",
330
  "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStockDbxref",
331
  { "foreign.dbxref_id" => "self.dbxref_id" },
332
  { cascade_copy => 0, cascade_delete => 0 },
333
);
334
335
=head2 organism_dbxrefs
336
337
Type: has_many
338
339
Related object: L<Bio::Chado::Schema::Result::Organism::OrganismDbxref>
340
341
=cut
342
343
__PACKAGE__->has_many(
344
  "organism_dbxrefs",
345
  "Bio::Chado::Schema::Result::Organism::OrganismDbxref",
346
  { "foreign.dbxref_id" => "self.dbxref_id" },
347
  { cascade_copy => 0, cascade_delete => 0 },
348
);
349
350
=head2 phylonode_dbxrefs
351
352
Type: has_many
353
354
Related object: L<Bio::Chado::Schema::Result::Phylogeny::PhylonodeDbxref>
355
356
=cut
357
358
__PACKAGE__->has_many(
359
  "phylonode_dbxrefs",
360
  "Bio::Chado::Schema::Result::Phylogeny::PhylonodeDbxref",
361
  { "foreign.dbxref_id" => "self.dbxref_id" },
362
  { cascade_copy => 0, cascade_delete => 0 },
363
);
364
365
=head2 phylotrees
366
367
Type: has_many
368
369
Related object: L<Bio::Chado::Schema::Result::Phylogeny::Phylotree>
370
371
=cut
372
373
__PACKAGE__->has_many(
374
  "phylotrees",
375
  "Bio::Chado::Schema::Result::Phylogeny::Phylotree",
376
  { "foreign.dbxref_id" => "self.dbxref_id" },
377
  { cascade_copy => 0, cascade_delete => 0 },
378
);
379
380
=head2 protocols
381
382
Type: has_many
383
384
Related object: L<Bio::Chado::Schema::Result::Mage::Protocol>
385
386
=cut
387
388
__PACKAGE__->has_many(
389
  "protocols",
390
  "Bio::Chado::Schema::Result::Mage::Protocol",
391
  { "foreign.dbxref_id" => "self.dbxref_id" },
392
  { cascade_copy => 0, cascade_delete => 0 },
393
);
394
395
=head2 pub_dbxrefs
396
397
Type: has_many
398
399
Related object: L<Bio::Chado::Schema::Result::Pub::PubDbxref>
400
401
=cut
402
403
__PACKAGE__->has_many(
404
  "pub_dbxrefs",
405
  "Bio::Chado::Schema::Result::Pub::PubDbxref",
406
  { "foreign.dbxref_id" => "self.dbxref_id" },
407
  { cascade_copy => 0, cascade_delete => 0 },
408
);
409
410
=head2 stocks
411
412
Type: has_many
413
414
Related object: L<Bio::Chado::Schema::Result::Stock::Stock>
415
416
=cut
417
418
__PACKAGE__->has_many(
419
  "stocks",
420
  "Bio::Chado::Schema::Result::Stock::Stock",
421
  { "foreign.dbxref_id" => "self.dbxref_id" },
422
  { cascade_copy => 0, cascade_delete => 0 },
423
);
424
425
=head2 stock_dbxrefs
426
427
Type: has_many
428
429
Related object: L<Bio::Chado::Schema::Result::Stock::StockDbxref>
430
431
=cut
432
433
__PACKAGE__->has_many(
434
  "stock_dbxrefs",
435
  "Bio::Chado::Schema::Result::Stock::StockDbxref",
436
  { "foreign.dbxref_id" => "self.dbxref_id" },
437
  { cascade_copy => 0, cascade_delete => 0 },
438
);
439
440
=head2 studies
441
442
Type: has_many
443
444
Related object: L<Bio::Chado::Schema::Result::Mage::Study>
445
446
=cut
447
448
__PACKAGE__->has_many(
449
  "studies",
450
  "Bio::Chado::Schema::Result::Mage::Study",
451
  { "foreign.dbxref_id" => "self.dbxref_id" },
452
  { cascade_copy => 0, cascade_delete => 0 },
453
);
454
455
456
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:58
457
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DH06/5V4IKTYucfk2dsWHA
458
459
460
=head1 MANY-TO-MANY RELATIONSHIPS
461
462
=head2 biomaterials_mm
463
464
Relation to L<Bio::Chado::Schema::Result::Mage::Biomaterial> (i.e. C<biomaterial> table)
465
via the C<organism_dbxrefs> table.
466
467
=cut
468
469
__PACKAGE__->many_to_many
470
    (
471
     'biomaterials_mm',
472
     'biomaterial_dbxrefs' => 'biomaterial',
473
    );
474
475
=head2 cell_lines_mm
476
477
Relation to L<Bio::Chado::Schema::Result::CellLine::CellLine> (i.e. C<cell_line> table)
478
via the C<cell_line_dbxrefs> table.
479
480
=cut
481
482
__PACKAGE__->many_to_many
483
    (
484
     'cell_lines_mm',
485
     'cell_line_dbxrefs' => 'cell_line',
486
    );
487
488
=head2 cvterms_mm
489
490
Relation to L<Bio::Chado::Schema::Result::Cv::Cvterm> (i.e. C<cvterm> table)
491
via the C<cvterm_dbxrefs> table.
492
493
=cut
494
495
__PACKAGE__->many_to_many
496
    (
497
     'cvterms_mm',
498
     'cvterm_dbxrefs' => 'cvterm',
499
    );
500
501
=head2 features_mm
502
503
Relation to L<Bio::Chado::Schema::Result::Sequence::Feature> (i.e. C<feature> table)
504
via the C<feature_dbxrefs> table.
505
506
=cut
507
508
__PACKAGE__->many_to_many
509
    (
510
     'features_mm',
511
     'feature_dbxrefs' => 'feature',
512
    );
513
514
=head2 libraries_mm
515
516
Relation to L<Bio::Chado::Schema::Result::Library::LibraryDbxref> (i.e. C<library> table)
517
via the C<library_dbxrefs> table.
518
519
=cut
520
521
__PACKAGE__->many_to_many
522
    (
523
     'libraries_mm',
524
     'library_dbxrefs' => 'library',
525
    );
526
527
=head2 organisms_mm
528
529
Relation to L<Bio::Chado::Schema::Result::Organism::Organism> (i.e. C<organism> table)
530
via the C<organism_dbxrefs> table.
531
532
=cut
533
534
__PACKAGE__->many_to_many
535
    (
536
     'organisms_mm',
537
     'organism_dbxrefs' => 'organism',
538
    );
539
540
=head2 phylonodes_mm
541
542
Relation to L<Bio::Chado::Schema::Result::Phylogeny::Phylonode> (i.e. C<phylonode> table)
543
via the C<phylonode_dbxrefs> table.
544
545
=cut
546
547
__PACKAGE__->many_to_many
548
    (
549
     'phylonodes_mm',
550
     'phylonode_dbxrefs' => 'phylonode',
551
    );
552
553
=head2 pubs_mm
554
555
Relation to L<Bio::Chado::Schema::Result::Pub::Pub> (i.e. C<pub> table)
556
via the C<pub_dbxrefs> table.
557
558
=cut
559
560
__PACKAGE__->many_to_many
561
    (
562
     'pubs_mm',
563
     'pub_dbxrefs' => 'pub',
564
    );
565
566
=head2 stocks_mm
567
568
Relation to L<Bio::Chado::Schema::Result::Stock::Stock> (i.e. C<stock> table)
569
via the C<stock_dbxrefs> table.
570
571
=cut
572
573
__PACKAGE__->many_to_many
574
    (
575
     'stocks_mm',
576
     'stock_dbxrefs' => 'stock',
577
    );
578
579
580
# You can replace this text with custom content, and it will be preserved on regeneration
581
1;