RackTables/0_20_4/Result/PortVLANMode.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package Schema::RackTables::0_20_4::Result::PortVLANMode;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 =head1 NAME
8  
9 Schema::RackTables::0_20_4::Result::PortVLANMode
10  
11 =cut
12  
13 use strict;
14 use warnings;
15  
16 use base 'DBIx::Class::Core';
17  
18 =head1 COMPONENTS LOADED
19  
20 =over 4
21  
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23  
24 =back
25  
26 =cut
27  
28 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<PortVLANMode>
31  
32 =cut
33  
34 __PACKAGE__->table("PortVLANMode");
35  
36 =head1 ACCESSORS
37  
38 =head2 object_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 port_name
46  
47 data_type: 'char'
48 is_foreign_key: 1
49 is_nullable: 0
50 size: 255
51  
52 =head2 vlan_mode
53  
54 data_type: 'enum'
55 default_value: 'access'
56 extra: {list => ["access","trunk"]}
57 is_nullable: 0
58  
59 =cut
60  
61 __PACKAGE__->add_columns(
62 "object_id",
63 {
64 data_type => "integer",
65 extra => { unsigned => 1 },
66 is_foreign_key => 1,
67 is_nullable => 0,
68 },
69 "port_name",
70 { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 255 },
71 "vlan_mode",
72 {
73 data_type => "enum",
74 default_value => "access",
75 extra => { list => ["access", "trunk"] },
76 is_nullable => 0,
77 },
78 );
79  
80 =head1 PRIMARY KEY
81  
82 =over 4
83  
84 =item * L</object_id>
85  
86 =item * L</port_name>
87  
88 =back
89  
90 =cut
91  
92 __PACKAGE__->set_primary_key("object_id", "port_name");
93  
94 =head1 RELATIONS
95  
96 =head2 cached_pvm
97  
98 Type: belongs_to
99  
100 Related object: L<Schema::RackTables::0_20_4::Result::CachedPVM>
101  
102 =cut
103  
104 __PACKAGE__->belongs_to(
105 "cached_pvm",
106 "Schema::RackTables::0_20_4::Result::CachedPVM",
107 { object_id => "object_id", port_name => "port_name" },
108 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
109 );
110  
111 =head2 port_allowed_vlans
112  
113 Type: has_many
114  
115 Related object: L<Schema::RackTables::0_20_4::Result::PortAllowedVLAN>
116  
117 =cut
118  
119 __PACKAGE__->has_many(
120 "port_allowed_vlans",
121 "Schema::RackTables::0_20_4::Result::PortAllowedVLAN",
122 {
123 "foreign.object_id" => "self.object_id",
124 "foreign.port_name" => "self.port_name",
125 },
126 { cascade_copy => 0, cascade_delete => 0 },
127 );
128  
129 =head2 vlans
130  
131 Type: many_to_many
132  
133 Composing rels: L</port_allowed_vlans> -> vlan
134  
135 =cut
136  
137 __PACKAGE__->many_to_many("vlans", "port_allowed_vlans", "vlan");
138  
139  
140 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:30
141 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pmD9JexMXLlF9Pb6JEn9Nw
142  
143  
144 # You can replace this text with custom code or comments, and it will be preserved on regeneration
145 1;