| 705 |
my $row = _fetch_object_state($self, $id, $class); |
my $row = _fetch_object_state($self, $id, $class); |
| 706 |
|
|
| 707 |
my $obj = $self->read_object($id, $class->{name}, $row); |
my $obj = $self->read_object($id, $class->{name}, $row); |
| 708 |
|
return undef unless defined $row; |
| 709 |
|
|
| 710 |
# ??? $self->{-residue} = \@row; |
# ??? $self->{-residue} = \@row; |
| 711 |
|
|
| 723 |
my $class = $self->{schema}->classdef( $self->{id2class}{ int(substr($id, -$self->{cid_size})) } ); |
my $class = $self->{schema}->classdef( $self->{id2class}{ int(substr($id, -$self->{cid_size})) } ); |
| 724 |
|
|
| 725 |
my $row = _fetch_object_state($self, $id, $class); |
my $row = _fetch_object_state($self, $id, $class); |
| 726 |
|
return undef unless defined $row; |
| 727 |
_row_to_object($self, $obj, $id, $class->{name}, $row); |
_row_to_object($self, $obj, $id, $class->{name}, $row); |
| 728 |
|
|
| 729 |
return $obj; |
return $obj; |
| 795 |
|
|
| 796 |
$sth->execute($self->{export_id}->($id)); |
$sth->execute($self->{export_id}->($id)); |
| 797 |
my $state = [ $sth->fetchrow_array() ]; |
my $state = [ $sth->fetchrow_array() ]; |
| 798 |
|
unless (@$state) { |
| 799 |
|
return undef unless $sth->err; |
| 800 |
|
croak "error during load of object id=$id: $sth->err"; |
| 801 |
|
} |
| 802 |
$sth->finish(); |
$sth->finish(); |
| 803 |
|
|
| 804 |
return $state; |
return $state; |