/[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.12 by joko, Thu Jan 30 21:46:32 2003 UTC revision 1.14 by joko, Sun Feb 9 05:12:28 2003 UTC
# Line 2  Line 2 
2  ##    $Id$  ##    $Id$
3  ##    ------------------------------------------------------------------------  ##    ------------------------------------------------------------------------
4  ##    $Log$  ##    $Log$
5    ##    Revision 1.14  2003/02/09 05:12:28  joko
6    ##    + quoting of strings used in sql-queries!
7    ##
8    ##    Revision 1.13  2003/01/30 22:27:05  joko
9    ##    + added new abstract methods
10    ##
11  ##    Revision 1.12  2003/01/30 21:46:32  joko  ##    Revision 1.12  2003/01/30 21:46:32  joko
12  ##    + fixed behaviour of AUTOLOAD-method  ##    + fixed behaviour of AUTOLOAD-method
13  ##  ##
# Line 302  sub _typeCheck2 { Line 308  sub _typeCheck2 {
308    sub existsChildNode {    sub existsChildNode {
309      my $self = shift;      my $self = shift;
310      my $nodename = shift;      my $nodename = shift;
311      #$nodename = 'TransactionRoutingTable';  
312      $logger->debug( __PACKAGE__ . "->existsChildNode( nodename $nodename )" );      # TODO: don't use $self->{meta}->{childnodes} directly in here
313        # get it returned from $self->getChildNodes()!!!
314    
315        $logger->debug( __PACKAGE__ . "->existsChildNode( nodename=$nodename )" );
316      $self->getChildNodes() unless $self->{meta}->{childnodes};      $self->getChildNodes() unless $self->{meta}->{childnodes};
317      my $result = grep(m/$nodename/i, @{$self->{meta}->{childnodes}});     # TODO: use "/i" only on win32-systems!  
318        # quote this, it might contain meta characters which don't work in a regex
319          $nodename = quotemeta($nodename);
320    
321        # trace
322          #print Dumper($self->{meta});
323          #print "nodename: $nodename", "\n";
324        
325        # FIXME: use "/i" only on win32-systems!
326        my $result = grep(m/$nodename/i, @{$self->{meta}->{childnodes}});
327        
328      return $result;      return $result;
329    }    }
330    
# Line 426  sub _typeCheck2 { Line 445  sub _typeCheck2 {
445      return;      return;
446    }    }
447    
448      sub getDbName {
449        my $self = shift;
450        $self->_abstract_function('getDbName');
451        return;
452      }
453    
454      sub testAvailability {
455        my $self = shift;
456        $self->_abstract_function('testAvailability');
457        return;
458      }
459    
460      sub isConnected {
461        my $self = shift;
462        $self->_abstract_function('isConnected');
463        return;
464      }
465    
466      sub testDsn {
467        my $self = shift;
468        $self->_abstract_function('testDsn');
469        return;
470      }
471    
472  1;  1;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.14

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