line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ODS::Table::Column::Integer; |
2
|
|
|
|
|
|
|
|
3
|
72
|
|
|
72
|
|
427
|
use YAOO; |
|
72
|
|
|
|
|
143
|
|
|
72
|
|
|
|
|
298
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
extends 'ODS::Table::Column::Base'; |
6
|
|
|
|
|
|
|
|
7
|
72
|
|
|
72
|
|
23378
|
use ODS::Utils qw/error/; |
|
72
|
|
|
|
|
79
|
|
|
72
|
|
|
|
|
398
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has auto_increment => rw, isa(boolean); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub validation { |
12
|
3422
|
50
|
33
|
3422
|
0
|
65726
|
if (ref($_[1]) || $_[1] !~ m/\d+/) { |
13
|
0
|
|
|
|
|
0
|
croak sprintf "The value passed to the %s column does not match the integer constraint.", |
14
|
|
|
|
|
|
|
$_[0]->name; |
15
|
|
|
|
|
|
|
} |
16
|
3422
|
|
|
|
|
10207
|
return $_[1]; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
913
|
|
|
913
|
0
|
9584
|
sub inflation { return 0 + $_[1]; } |
20
|
|
|
|
|
|
|
|
21
|
1711
|
|
|
1711
|
0
|
20827
|
sub deflation { return 0 + $_[1]; } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
#sub coercion { return $_[1]; } |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |