private boolean updateStatementData(StatementData sdata,Matcher matcher,String toRegex){
  if (transformTables)   return true;
  if (matcher == null)   return true;
  String schema=sdata.getDefaultSchema();
  if (schema == null)   return true;
  matcher.reset(schema);
  if (matcher.matches()) {
    String oldSchema=schema;
    sdata.setDefaultSchema(matcher.replaceAll(toRegex));
    if (logger.isDebugEnabled())     logger.debug("Filtered event schema name: old=" + oldSchema + " new="+ sdata.getDefaultSchema());
    return true;
  }
  return false;
}

private boolean updateStatementData ( StatementData sdata , Matcher matcher , String toRegex ) { if ( transformTables ) return true ; if ( matcher == null ) return true ; String schema = sdata . getDefaultSchema ( ) ; if ( schema == null ) return true ; matcher . reset ( schema ) ; if ( matcher . matches ( ) ) { String oldSchema = schema ; sdata . setDefaultSchema ( matcher . replaceAll ( toRegex ) ) ; if ( logger . isDebugEnabled ( ) ) logger . debug ( "Filtered event schema name: old=" + oldSchema + " new=" + sdata . getDefaultSchema ( ) ) ; return true ; } return false ; }
updatestatementdata updates the schema name of the given statementdata object if it matches the regular expression . < br / > if transformtables flag is set , this does nothing .
