ETLp/Schema/Result/EtlpSection.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package ETLp::Schema::Result::EtlpSection;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 use strict;
7 use warnings;
8  
9 use base 'DBIx::Class::Core';
10  
11 __PACKAGE__->load_components("InflateColumn::DateTime");
12  
13 =head1 NAME
14  
15 ETLp::Schema::Result::EtlpSection
16  
17 =cut
18  
19 __PACKAGE__->table("etlp_section");
20  
21 =head1 ACCESSORS
22  
23 =head2 section_id
24  
25 data_type: 'integer'
26 is_nullable: 0
27 original: {data_type => "number",size => [38,0]}
28  
29 =head2 config_id
30  
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 0
34 original: {data_type => "number",size => [38,0]}
35  
36 =head2 section_name
37  
38 data_type: 'varchar2'
39 is_nullable: 0
40 size: 255
41  
42 =head2 date_created
43  
44 data_type: 'datetime'
45 is_nullable: 0
46 original: {data_type => "date"}
47  
48 =head2 date_updated
49  
50 data_type: 'datetime'
51 is_nullable: 0
52 original: {data_type => "date"}
53  
54 =cut
55  
56 __PACKAGE__->add_columns(
57 "section_id",
58 {
59 data_type => "integer",
60 is_nullable => 0,
61 original => { data_type => "number", size => [38, 0] },
62 },
63 "config_id",
64 {
65 data_type => "integer",
66 is_foreign_key => 1,
67 is_nullable => 0,
68 original => { data_type => "number", size => [38, 0] },
69 },
70 "section_name",
71 { data_type => "varchar2", is_nullable => 0, size => 255 },
72 "date_created",
73 {
74 data_type => "datetime",
75 is_nullable => 0,
76 original => { data_type => "date" },
77 },
78 "date_updated",
79 {
80 data_type => "datetime",
81 is_nullable => 0,
82 original => { data_type => "date" },
83 },
84 );
85 __PACKAGE__->set_primary_key("section_id");
86 __PACKAGE__->add_unique_constraint("etlp_section_u1", ["config_id", "section_name"]);
87  
88 =head1 RELATIONS
89  
90 =head2 etlp_jobs
91  
92 Type: has_many
93  
94 Related object: L<ETLp::Schema::Result::EtlpJob>
95  
96 =cut
97  
98 __PACKAGE__->has_many(
99 "etlp_jobs",
100 "ETLp::Schema::Result::EtlpJob",
101 { "foreign.section_id" => "self.section_id" },
102 { cascade_copy => 0, cascade_delete => 0 },
103 );
104  
105 =head2 config
106  
107 Type: belongs_to
108  
109 Related object: L<ETLp::Schema::Result::EtlpConfiguration>
110  
111 =cut
112  
113 __PACKAGE__->belongs_to(
114 "config",
115 "ETLp::Schema::Result::EtlpConfiguration",
116 { config_id => "config_id" },
117 { on_delete => "CASCADE", on_update => "CASCADE" },
118 );
119  
120 =head2 etlp_schedules
121  
122 Type: has_many
123  
124 Related object: L<ETLp::Schema::Result::EtlpSchedule>
125  
126 =cut
127  
128 __PACKAGE__->has_many(
129 "etlp_schedules",
130 "ETLp::Schema::Result::EtlpSchedule",
131 { "foreign.section_id" => "self.section_id" },
132 { cascade_copy => 0, cascade_delete => 0 },
133 );
134  
135 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2010-05-12 15:25:39
136 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G26RynkviOYeii2d5jGi5w
137  
138 use Data::Page::Navigation;
139 # You can replace this text with custom content, and it will be preserved on regeneration
140 1;
141