line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Oryx::DBI::Attribute; |
2
|
|
|
|
|
|
|
|
3
|
15
|
|
|
15
|
|
6413
|
use Oryx::Value; |
|
15
|
|
|
|
|
54
|
|
|
15
|
|
|
|
|
181
|
|
4
|
|
|
|
|
|
|
|
5
|
15
|
|
|
15
|
|
463
|
use base qw(Oryx::Attribute); |
|
15
|
|
|
|
|
33
|
|
|
15
|
|
|
|
|
7794
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub create { |
8
|
0
|
|
|
0
|
1
|
|
my ($self, $query, $param) = @_; |
9
|
0
|
|
|
|
|
|
my $attr_name = $self->name; |
10
|
0
|
|
|
|
|
|
$param->{$attr_name} = $self->deflate($param->{$attr_name}); |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub retrieve { |
14
|
0
|
|
|
0
|
1
|
|
my ($self, $query, $values) = @_; |
15
|
0
|
|
|
|
|
|
push @{$query->{fields}}, $self->name; |
|
0
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub update { |
19
|
0
|
|
|
0
|
1
|
|
my ($self, $query, $object) = @_; |
20
|
0
|
|
|
|
|
|
my $attr_name = $self->name; |
21
|
0
|
|
|
|
|
|
my $value = $object->$attr_name; |
22
|
0
|
|
|
|
|
|
$query->{fieldvals}->{$attr_name} = $self->deflate($value); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub search { |
26
|
0
|
|
|
0
|
1
|
|
my ($self, $query) = @_; |
27
|
0
|
|
|
|
|
|
push @{$query->{fields}}, $self->name; |
|
0
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
__END__ |