Debian Codegraph @

lib/Bio/Chado/Schema/Result/Cv/Cvtermpath.pm

raw symbols SCIP
1 package Bio::Chado::Schema::Result::Cv::Cvtermpathscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Cv/Cvtermpath/;
2 BEGIN {
3 $Bio::Chado::Schema::Result::Cv::Cvtermpath::AUTHORITYscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Cv/Cvtermpath/$AUTHORITY. = 'cpan:RBUELS';
4 }
5 {
6 $Bio::Chado::Schema::Result::Cv::Cvtermpath::VERSIONscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Cv/Cvtermpath/$VERSION. = '0.20000';
7 }
8
9 # Created by DBIx::Class::Schema::Loader
10 # DO NOT MODIFY THE FIRST PART OF THIS FILE
11
12 use strictscip-perl cpan Bio-Chado-Schema 0.20000 strict/;
13 use warningsscip-perl cpan Bio-Chado-Schema 0.20000 warnings/;
14
15 use basescip-perl cpan Bio-Chado-Schema 0.20000 base/ 'DBIx::Class::Core';
16
17
18 =head1 NAME
19
20 Bio::Chado::Schema::Result::Cv::Cvtermpath
21
22 =head1 DESCRIPTION
23
24 The reflexive transitive closure of
25 the cvterm_relationship relation.
26
27 =cut
28
29 __PACKAGE__->tablescip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/table().("cvtermpath");
30
31 =head1 ACCESSORS
32
33 =head2 cvtermpath_id
34
35 data_type: 'integer'
36 is_auto_increment: 1
37 is_nullable: 0
38 sequence: 'cvtermpath_cvtermpath_id_seq'
39
40 =head2 type_id
41
42 data_type: 'integer'
43 is_foreign_key: 1
44 is_nullable: 1
45
46 The relationship type that
47 this is a closure over. If null, then this is a closure over ALL
48 relationship types. If non-null, then this references a relationship
49 cvterm - note that the closure will apply to both this relationship
50 AND the OBO_REL:is_a (subclass) relationship.
51
52 =head2 subject_id
53
54 data_type: 'integer'
55 is_foreign_key: 1
56 is_nullable: 0
57
58 =head2 object_id
59
60 data_type: 'integer'
61 is_foreign_key: 1
62 is_nullable: 0
63
64 =head2 cv_id
65
66 data_type: 'integer'
67 is_foreign_key: 1
68 is_nullable: 0
69
70 Closures will mostly be within
71 one cv. If the closure of a relationship traverses a cv, then this
72 refers to the cv of the object_id cvterm.
73
74 =head2 pathdistance
75
76 data_type: 'integer'
77 is_nullable: 1
78
79 The number of steps
80 required to get from the subject cvterm to the object cvterm, counting
81 from zero (reflexive relationship).
82
83 =cut
84
85 __PACKAGE__->add_columnsscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_columns().(
86 "cvtermpath_id",
87 {
88 data_type => "integer",
89 is_auto_increment => 1,
90 is_nullable => 0,
91 sequence => "cvtermpath_cvtermpath_id_seq",
92 },
93 "type_id",
94 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
95 "subject_id",
96 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
97 "object_id",
98 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
99 "cv_id",
100 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
101 "pathdistance",
102 { data_type => "integer", is_nullable => 1 },
103 );
104 __PACKAGE__->set_primary_keyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/set_primary_key().("cvtermpath_id");
105 __PACKAGE__->add_unique_constraintscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_unique_constraint().(
106 "cvtermpath_c1",
107 ["subject_id", "object_id", "type_id", "pathdistance"],
108 );
109
110 =head1 RELATIONS
111
112 =head2 type
113
114 Type: belongs_to
115
116 Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm>
117
118 =cut
119
120 __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().(
121 "type",
122 "Bio::Chado::Schema::Result::Cv::Cvterm",
123 { cvterm_id => "type_id" },
124 {
125 cascade_copy => 0,
126 cascade_delete => 0,
127 is_deferrable => 1,
128 join_type => "LEFT",
129 on_delete => "CASCADE",
130 on_update => "CASCADE",
131 },
132 );
133
134 =head2 object
135
136 Type: belongs_to
137
138 Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm>
139
140 =cut
141
142 __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().(
143 "object",
144 "Bio::Chado::Schema::Result::Cv::Cvterm",
145 { cvterm_id => "object_id" },
146 {
147 cascade_copy => 0,
148 cascade_delete => 0,
149 is_deferrable => 1,
150 on_delete => "CASCADE",
151 on_update => "CASCADE",
152 },
153 );
154
155 =head2 subject
156
157 Type: belongs_to
158
159 Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm>
160
161 =cut
162
163 __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().(
164 "subject",
165 "Bio::Chado::Schema::Result::Cv::Cvterm",
166 { cvterm_id => "subject_id" },
167 {
168 cascade_copy => 0,
169 cascade_delete => 0,
170 is_deferrable => 1,
171 on_delete => "CASCADE",
172 on_update => "CASCADE",
173 },
174 );
175
176 =head2 cv
177
178 Type: belongs_to
179
180 Related object: L<Bio::Chado::Schema::Result::Cv::Cv>
181
182 =cut
183
184 __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().(
185 "cv",
186 "Bio::Chado::Schema::Result::Cv::Cv",
187 { cv_id => "cv_id" },
188 {
189 cascade_copy => 0,
190 cascade_delete => 0,
191 is_deferrable => 1,
192 on_delete => "CASCADE",
193 on_update => "CASCADE",
194 },
195 );
196
197
198 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:58
199 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LIl0GlpFa7htKB72YF8f5w
200
201
202 # You can replace this text with custom content, and it will be preserved on regeneration
203 1;