/[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.13 by joko, Thu Jan 30 22:27:05 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  ##    Revision 1.13  2003/01/30 22:27:05  joko
9  ##    + added new abstract methods  ##    + added new abstract methods
10  ##  ##
# Line 305  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    

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

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