1 package org.kuali.common.util.service; 2 3 import static org.kuali.common.util.service.MySqlDumpService.PREFIX_50013_DEFINER; 4 import static org.kuali.common.util.service.MySqlDumpService.SUFFIX_SQL_SECURITY_DEFINER; 5 6 import java.util.ArrayList; 7 import java.util.List; 8 9 import org.kuali.common.util.ignore.Ignore; 10 import org.kuali.common.util.ignore.PrefixSuffixIgnorer; 11 import org.kuali.common.util.ignore.StartsWithIgnorer; 12 13 public class MySqlDumpUtils { 14 15 public static List<Ignore> getDefaultIgnorers() { 16 List<Ignore> ignorers = new ArrayList<Ignore>(); 17 ignorers.add(new PrefixSuffixIgnorer(PREFIX_50013_DEFINER, SUFFIX_SQL_SECURITY_DEFINER)); 18 ignorers.add(new StartsWithIgnorer(MySqlDumpService.PREFIX_DUMP_COMPLETED)); 19 ignorers.add(new StartsWithIgnorer(MySqlDumpService.PREFIX_MYSQL_DUMP)); 20 ignorers.add(new StartsWithIgnorer(MySqlDumpService.PREFIX_MYSQL_HOST)); 21 ignorers.add(new StartsWithIgnorer(MySqlDumpService.PREFIX_SERVER_VERSION)); 22 return ignorers; 23 } 24 25 }