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 |
# |
# |
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 |
} |
} |
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 |
|
|
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; |