line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package SQL::Admin::Catalog::Object; |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
1995
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
77
|
|
5
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1243
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = v0.5.0; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
###################################################################### |
10
|
|
|
|
|
|
|
###################################################################### |
11
|
|
|
|
|
|
|
sub new { # ; |
12
|
31
|
|
|
31
|
0
|
176
|
my ($class, %param) = @_; |
13
|
31
|
|
33
|
|
|
191
|
my $self = bless {}, ref $class || $class; |
14
|
31
|
|
|
|
|
98
|
while (my ($k, $v) = each %param) { |
15
|
82
|
|
|
|
|
340
|
$self->$k ($v); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
################################################################## |
19
|
|
|
|
|
|
|
|
20
|
31
|
|
|
|
|
108
|
$self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
###################################################################### |
25
|
|
|
|
|
|
|
###################################################################### |
26
|
|
|
|
|
|
|
sub oid { # ; |
27
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
28
|
0
|
0
|
0
|
|
|
0
|
$self->{oid} = shift if @_ and ! $self->{oid}; |
29
|
0
|
|
|
|
|
0
|
$self->{oid}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
###################################################################### |
34
|
|
|
|
|
|
|
###################################################################### |
35
|
|
|
|
|
|
|
sub catalog { # ; |
36
|
39
|
|
|
39
|
0
|
48
|
my $self = shift; |
37
|
39
|
100
|
66
|
|
|
191
|
$self->{catalog} = shift if @_ and ! $self->{catalog}; |
38
|
39
|
|
|
|
|
151
|
$self->{catalog}; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
###################################################################### |
43
|
|
|
|
|
|
|
###################################################################### |
44
|
|
|
|
|
|
|
sub name { # ; |
45
|
57
|
|
|
57
|
0
|
2685
|
my $self = shift; |
46
|
57
|
100
|
|
|
|
131
|
if (@_) { |
47
|
31
|
|
|
|
|
69
|
$self->{name} = shift; |
48
|
31
|
|
|
|
|
43
|
delete $self->{fullname}; |
49
|
|
|
|
|
|
|
} |
50
|
57
|
|
|
|
|
241
|
$self->{name}; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
###################################################################### |
55
|
|
|
|
|
|
|
###################################################################### |
56
|
|
|
|
|
|
|
sub schema { # ; |
57
|
37
|
|
|
37
|
0
|
55
|
my $self = shift; |
58
|
37
|
100
|
|
|
|
79
|
if (@_) { |
59
|
14
|
|
|
|
|
43
|
$self->{schema} = shift; |
60
|
14
|
|
|
|
|
22
|
delete $self->{fullname}; |
61
|
|
|
|
|
|
|
} |
62
|
37
|
|
|
|
|
134
|
$self->{schema}; |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
###################################################################### |
67
|
|
|
|
|
|
|
###################################################################### |
68
|
|
|
|
|
|
|
sub fullname { # ; |
69
|
58
|
|
|
58
|
0
|
777
|
my $self = shift; |
70
|
|
|
|
|
|
|
|
71
|
58
|
|
66
|
|
|
365
|
$self->{fullname} ||= join '.', grep defined, @$self{qw{ schema name }}; |
72
|
|
|
|
|
|
|
#map 'ARRAY' eq ref $_ ? @$_ : $_, |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
###################################################################### |
77
|
|
|
|
|
|
|
###################################################################### |
78
|
|
|
|
|
|
|
sub hint { # ; |
79
|
12
|
|
|
12
|
0
|
2462
|
my $self = shift; |
80
|
12
|
50
|
0
|
|
|
32
|
return $self->{hint} ||= {} unless @_; |
81
|
|
|
|
|
|
|
|
82
|
12
|
|
|
|
|
24
|
my $key = shift; |
83
|
12
|
100
|
|
|
|
52
|
return $self->{hint}{ $key } unless @_; |
84
|
|
|
|
|
|
|
|
85
|
6
|
|
|
|
|
41
|
$self->{hint}{$key} = shift; |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
###################################################################### |
90
|
|
|
|
|
|
|
###################################################################### |
91
|
|
|
|
|
|
|
sub info { # ; |
92
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
93
|
|
|
|
|
|
|
|
94
|
0
|
0
|
|
|
|
|
return unless @_; |
95
|
0
|
|
|
|
|
|
my $key = shift; |
96
|
|
|
|
|
|
|
|
97
|
0
|
0
|
|
|
|
|
return $self->{info}{ $key } unless @_; |
98
|
|
|
|
|
|
|
|
99
|
0
|
|
|
|
|
|
$self->{info}{ $key } = shift; |
100
|
|
|
|
|
|
|
} |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
###################################################################### |
104
|
|
|
|
|
|
|
###################################################################### |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
package SQL::Admin::Catalog::Object; |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
1; |