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

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

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

revision 1.3 by joko, Fri Nov 29 04:58:20 2002 UTC revision 1.5 by joko, Sun Dec 1 22:19:33 2002 UTC
# Line 3  Line 3 
3  #  $Id$  #  $Id$
4  #  #
5  #  $Log$  #  $Log$
6    #  Revision 1.5  2002/12/01 22:19:33  joko
7    #  + just disconnect if COREHANDLE exists
8    #
9    #  Revision 1.4  2002/12/01 04:45:38  joko
10    #  + sub eraseAll
11    #  + sub createDb
12    #
13  #  Revision 1.3  2002/11/29 04:58:20  joko  #  Revision 1.3  2002/11/29 04:58:20  joko
14  #  + Storage::Result now uses the same dispatching mechanism like Storage::Handler  #  + Storage::Result now uses the same dispatching mechanism like Storage::Handler
15  #  #
# Line 129  sub DESTROY { Line 136  sub DESTROY {
136    
137      # call "disconnect" or alike on COREHANDLE      # call "disconnect" or alike on COREHANDLE
138      # was: $self->{COREHANDLE}->disconnect();      # was: $self->{COREHANDLE}->disconnect();
139      $disconnectMethod && ( $self->{COREHANDLE}->$disconnectMethod() );      $disconnectMethod && $self->{COREHANDLE} && ( $self->{COREHANDLE}->$disconnectMethod() );
140    
141      undef $self->{COREHANDLE};      undef $self->{COREHANDLE};
142    }    }
# Line 182  sub _typeCheck { Line 189  sub _typeCheck {
189    # TODO:    # TODO:
190    #   - abstract "abstract methods" to list/hash to be used in AUTOLOAD    #   - abstract "abstract methods" to list/hash to be used in AUTOLOAD
191    #      e.g.: my @ABSTRACT_METHODS = (qw( connect sendCommand getChildNodes ));    #      e.g.: my @ABSTRACT_METHODS = (qw( connect sendCommand getChildNodes ));
192      #      use Class::XYZ (Construct)
193    #   - build them via anonymous subs    #   - build them via anonymous subs
194    #   - introduce them via symbols    #   - introduce them via symbols
195    
# Line 242  sub _typeCheck { Line 250  sub _typeCheck {
250      return;      return;
251    }    }
252    
253      sub eraseAll {
254        my $self = shift;
255        $self->_abstract_function('eraseAll');
256        return;
257      }
258    
259      sub createDb {
260        my $self = shift;
261        $self->_abstract_function('createDb');
262        return;
263      }
264    
265  1;  1;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

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