/[cvs]/nfo/perl/libs/Data/Storage/Handler/Tangram.pm
ViewVC logotype

Diff of /nfo/perl/libs/Data/Storage/Handler/Tangram.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by joko, Thu Dec 5 13:55:21 2002 UTC revision 1.16 by joko, Wed Dec 11 06:54:10 2002 UTC
# Line 3  Line 3 
3  #  $Id$  #  $Id$
4  #  #
5  #  $Log$  #  $Log$
6    #  Revision 1.16  2002/12/11 06:54:10  joko
7    #  + fix: encapsulated object-loading inside an 'eval'
8    #
9  #  Revision 1.15  2002/12/05 13:55:21  joko  #  Revision 1.15  2002/12/05 13:55:21  joko
10  #  + now utilizing 'object2hash' instead of 'var_deref'  #  + now utilizing 'object2hash' instead of 'var_deref'
11  #  + played around with having fresh-objects - no progress....  #  + played around with having fresh-objects - no progress....
# Line 497  sub getObject { Line 500  sub getObject {
500    my $self = shift;    my $self = shift;
501    my $oid = shift;    my $oid = shift;
502    my $options = shift;    my $options = shift;
503    # TODO: create a deep_unload method  
504      # TODO: create a deep_unload method (currently _all_ objects are unloaded)
505    # unload($oid) will only unload object, not deep object hashes    # unload($oid) will only unload object, not deep object hashes
506    $self->{_COREHANDLE}->unload() if($options->{destroy});    $self->{_COREHANDLE}->unload() if($options->{destroy});
507    
508    # TODO: review this    # TODO: review this
509    #if (!$self->{COREHANDLE}) { return; }    #if (!$self->{COREHANDLE}) { return; }
510    return $self->{_COREHANDLE}->load($oid);  
511      # TODO: review this
512      my $object = eval('$self->{_COREHANDLE}->load($oid);');
513      print $@, "\n" if $@;
514    
515      return $object if $object;
516  }  }
517    
518  sub getObjectAsHash {  sub getObjectAsHash {

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed