line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package |
3
|
|
|
|
|
|
|
Class::DBI::Lite::AdHocEntity; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings 'all'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
40
|
|
7
|
1
|
|
|
1
|
|
5
|
use base 'Class::DBI::Lite'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
84
|
|
8
|
1
|
|
|
1
|
|
5
|
use Carp 'confess'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
391
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
#============================================================================== |
12
|
|
|
|
|
|
|
sub new |
13
|
|
|
|
|
|
|
{ |
14
|
2
|
|
|
2
|
0
|
10
|
my ($class, %args) = @_; |
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
|
|
24
|
return bless \%args, $class; |
17
|
|
|
|
|
|
|
}# end new() |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
#============================================================================== |
21
|
1
|
|
|
1
|
1
|
2
|
sub create { confess "Cannot call 'create' on a @{[ __PACKAGE__ ]}" } |
|
1
|
|
|
|
|
207
|
|
22
|
1
|
|
|
1
|
1
|
871
|
sub update { confess "Cannot call 'update' on a @{[ __PACKAGE__ ]}" } |
|
1
|
|
|
|
|
104
|
|
23
|
1
|
|
|
1
|
1
|
811
|
sub delete { confess "Cannot call 'delete' on a @{[ __PACKAGE__ ]}" } |
|
1
|
|
|
|
|
117
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
#============================================================================== |
27
|
|
|
|
|
|
|
sub AUTOLOAD |
28
|
|
|
|
|
|
|
{ |
29
|
3
|
|
|
3
|
|
1101
|
my $s = shift; |
30
|
|
|
|
|
|
|
|
31
|
3
|
|
|
|
|
5
|
our $AUTOLOAD; |
32
|
3
|
|
|
|
|
73
|
my ($key) = $AUTOLOAD =~ m/([^:]+)$/; |
33
|
|
|
|
|
|
|
|
34
|
3
|
100
|
|
|
|
60
|
return unless exists $s->{data}->{$key}; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
# Read-only access: |
37
|
2
|
|
|
|
|
14
|
$s->{data}->{$key}; |
38
|
|
|
|
|
|
|
}# end AUTOLOAD() |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
#============================================================================== |
42
|
|
|
|
|
|
|
sub DESTROY |
43
|
|
|
|
|
|
|
{ |
44
|
2
|
|
|
2
|
|
4
|
my $s = shift; |
45
|
|
|
|
|
|
|
|
46
|
2
|
|
|
|
|
36
|
undef( %$s ); |
47
|
|
|
|
|
|
|
}# end DESTROY() |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1;# return true: |
50
|
|
|
|
|
|
|
|