blib/lib/RackTables/Schema/Result/PortAllowedVLAN.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 29 / 29 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/Port.pm ↑ Summary blib/lib/RackTables/Schema/Result/PortCompat.pm »
1 package RackTables::Schema::Result::PortAllowedVLAN;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 extends 'DBIx::Class::Core';
13  
14  
15 =head1 NAME
16  
17 RackTables::Schema::Result::PortAllowedVLAN
18  
19 =cut
20  
21 1 __PACKAGE__->table("PortAllowedVLAN");
22  
23 =head1 ACCESSORS
24  
25 =head2 object_id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_foreign_key: 1
30 is_nullable: 0
31  
32 =head2 port_name
33  
34 data_type: 'char'
35 is_foreign_key: 1
36 is_nullable: 0
37 size: 255
38  
39 =head2 vlan_id
40  
41 data_type: 'integer'
42 default_value: 0
43 extra: {unsigned => 1}
44 is_foreign_key: 1
45 is_nullable: 0
46  
47 =cut
48  
49 1 __PACKAGE__->add_columns(
50 "object_id",
51 {
52 data_type => "integer",
53 extra => { unsigned => 1 },
54 is_foreign_key => 1,
55 is_nullable => 0,
56 },
57 "port_name",
58 { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 255 },
59 "vlan_id",
60 {
61 data_type => "integer",
62 default_value => 0,
63 extra => { unsigned => 1 },
64 is_foreign_key => 1,
65 is_nullable => 0,
66 },
67 );
68 1 __PACKAGE__->set_primary_key("object_id", "port_name", "vlan_id");
69  
70 =head1 RELATIONS
71  
72 =head2 port_vlanmode
73  
74 Type: belongs_to
75  
76 Related object: L<RackTables::Schema::Result::PortVLANMode>
77  
78 =cut
79  
80 1 __PACKAGE__->belongs_to(
81 "port_vlanmode",
82 "RackTables::Schema::Result::PortVLANMode",
83 { object_id => "object_id", port_name => "port_name" },
84 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
85 );
86  
87 =head2 vlan
88  
89 Type: belongs_to
90  
91 Related object: L<RackTables::Schema::Result::VLANValidID>
92  
93 =cut
94  
95 1 __PACKAGE__->belongs_to(
96 "vlan",
97 "RackTables::Schema::Result::VLANValidID",
98 { vlan_id => "vlan_id" },
99 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
100 );
101  
102 =head2 port_native_vlan
103  
104 Type: might_have
105  
106 Related object: L<RackTables::Schema::Result::PortNativeVLAN>
107  
108 =cut
109  
110 1 __PACKAGE__->might_have(
111 "port_native_vlan",
112 "RackTables::Schema::Result::PortNativeVLAN",
113 {
114 "foreign.object_id" => "self.object_id",
115 "foreign.port_name" => "self.port_name",
116 "foreign.vlan_id" => "self.vlan_id",
117 },
118 { cascade_copy => 0, cascade_delete => 0 },
119 );
120  
121  
122 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
123 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a2VeoFvO6BkdoDYqKmjG4Q
124  
125  
126 # You can replace this text with custom code or comments, and it will be preserved on regeneration
127 1 __PACKAGE__->meta->make_immutable;
128 1 1;
« blib/lib/RackTables/Schema/Result/Port.pm ↑ Summary blib/lib/RackTables/Schema/Result/PortCompat.pm »