public boolean match(String schema,String table){
  if (dbPattern != null) {
    if (logger.isDebugEnabled())     logger.debug("Checking if database matches: " + schema);
    if (dbMatcher == null)     dbMatcher=dbPattern.matcher(schema);
 else     dbMatcher.reset(schema);
    if (dbMatcher.matches()) {
      if (logger.isDebugEnabled())       logger.debug("Match db filter");
      return true;
    }
  }
  if (table != null && table.length() > 0) {
    String searchedTable=fullyQualifiedName(schema,table);
    if (tablePattern != null) {
      if (tableMatcher == null)       tableMatcher=tablePattern.matcher(searchedTable);
 else       tableMatcher.reset(searchedTable);
      if (tableMatcher.matches())       return true;
    }
  }
  return false;
}

public boolean match ( String schema , String table ) { if ( dbPattern != null ) { if ( logger . isDebugEnabled ( ) ) logger . debug ( "Checking if database matches: " + schema ) ; if ( dbMatcher == null ) dbMatcher = dbPattern . matcher ( schema ) ; else dbMatcher . reset ( schema ) ; if ( dbMatcher . matches ( ) ) { if ( logger . isDebugEnabled ( ) ) logger . debug ( "Match db filter" ) ; return true ; } } if ( table != null && table . length ( ) > 0 ) { String searchedTable = fullyQualifiedName ( schema , table ) ; if ( tablePattern != null ) { if ( tableMatcher == null ) tableMatcher = tablePattern . matcher ( searchedTable ) ; else tableMatcher . reset ( searchedTable ) ; if ( tableMatcher . matches ( ) ) return true ; } } return false ; }
performs a scan of all rules to see if we have a match .
