| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package DBIx::DataModel::Meta::Source::Join; |
|
2
|
20
|
|
|
20
|
|
124
|
use strict; |
|
|
20
|
|
|
|
|
45
|
|
|
|
20
|
|
|
|
|
849
|
|
|
3
|
20
|
|
|
20
|
|
96
|
use warnings; |
|
|
20
|
|
|
|
|
35
|
|
|
|
20
|
|
|
|
|
1134
|
|
|
4
|
20
|
|
|
20
|
|
101
|
use Params::Validate qw/ARRAYREF HASHREF/; |
|
|
20
|
|
|
|
|
34
|
|
|
|
20
|
|
|
|
|
1434
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
20
|
|
|
20
|
|
105
|
use parent "DBIx::DataModel::Meta::Source"; |
|
|
20
|
|
|
|
|
168
|
|
|
|
20
|
|
|
|
|
114
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
|
9
|
32
|
|
|
32
|
0
|
73
|
my $class = shift; |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# the real work occurs in parent class |
|
12
|
32
|
|
|
|
|
298
|
$class->_new_meta_source( |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# more spec for Params::Validate |
|
15
|
|
|
|
|
|
|
{ sqla_join_args => {type => ARRAYREF}, |
|
16
|
|
|
|
|
|
|
db_table_by_source => {type => HASHREF}, |
|
17
|
|
|
|
|
|
|
}, |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# method to call in schema for building @ISA |
|
20
|
|
|
|
|
|
|
'join_parent', |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# original args |
|
23
|
|
|
|
|
|
|
@_ |
|
24
|
|
|
|
|
|
|
); |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub db_from { |
|
29
|
52
|
|
|
52
|
0
|
86
|
my $self = shift; |
|
30
|
|
|
|
|
|
|
|
|
31
|
52
|
|
|
|
|
115
|
return [-join => @{$self->{sqla_join_args}}]; |
|
|
52
|
|
|
|
|
238
|
|
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub where { |
|
35
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
|
36
|
0
|
|
|
|
|
|
return; |
|
37
|
|
|
|
|
|
|
} |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |