private boolean updateRowChange(OneRowChange orc,Matcher matcher,String toRegex){
  if (matcher == null)   return true;
  if (transformTables)   matcher.reset(orc.getTableName());
 else   matcher.reset(orc.getSchemaName());
  if (matcher.matches()) {
    if (transformTables) {
      String oldTable=orc.getTableName();
      orc.setTableName(matcher.replaceAll(toRegex));
      if (logger.isDebugEnabled())       logger.debug("Filtered event table name: old=" + oldTable + " new="+ orc.getTableName());
    }
 else {
      String oldSchema=orc.getSchemaName();
      orc.setSchemaName(matcher.replaceAll(toRegex));
      if (logger.isDebugEnabled())       logger.debug("Filtered event schema name: old=" + oldSchema + " new="+ orc.getSchemaName());
    }
    return true;
  }
  return false;
}

private boolean updateRowChange ( OneRowChange orc , Matcher matcher , String toRegex ) { if ( matcher == null ) return true ; if ( transformTables ) matcher . reset ( orc . getTableName ( ) ) ; else matcher . reset ( orc . getSchemaName ( ) ) ; if ( matcher . matches ( ) ) { if ( transformTables ) { String oldTable = orc . getTableName ( ) ; orc . setTableName ( matcher . replaceAll ( toRegex ) ) ; if ( logger . isDebugEnabled ( ) ) logger . debug ( "Filtered event table name: old=" + oldTable + " new=" + orc . getTableName ( ) ) ; } else { String oldSchema = orc . getSchemaName ( ) ; orc . setSchemaName ( matcher . replaceAll ( toRegex ) ) ; if ( logger . isDebugEnabled ( ) ) logger . debug ( "Filtered event schema name: old=" + oldSchema + " new=" + orc . getSchemaName ( ) ) ; } return true ; } return false ; }
updaterowchange updates the schema name of the given onerowchange object if it matches the regular expression .
