View Javadoc
1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.util.service;
17  
18  import static org.kuali.common.util.service.MySqlDumpService.PREFIX_50013_DEFINER;
19  import static org.kuali.common.util.service.MySqlDumpService.SUFFIX_SQL_SECURITY_DEFINER;
20  
21  import java.util.ArrayList;
22  import java.util.List;
23  
24  import org.kuali.common.util.ignore.Ignore;
25  import org.kuali.common.util.ignore.PrefixSuffixIgnorer;
26  import org.kuali.common.util.ignore.StartsWithIgnorer;
27  
28  public class MySqlDumpUtils {
29  
30  	public static List<Ignore> getDefaultIgnorers() {
31  		List<Ignore> ignorers = new ArrayList<Ignore>();
32  		ignorers.add(new PrefixSuffixIgnorer(PREFIX_50013_DEFINER, SUFFIX_SQL_SECURITY_DEFINER));
33  		ignorers.add(new StartsWithIgnorer(MySqlDumpService.PREFIX_DUMP_COMPLETED));
34  		ignorers.add(new StartsWithIgnorer(MySqlDumpService.PREFIX_MYSQL_DUMP));
35  		ignorers.add(new StartsWithIgnorer(MySqlDumpService.PREFIX_MYSQL_HOST));
36  		ignorers.add(new StartsWithIgnorer(MySqlDumpService.PREFIX_SERVER_VERSION));
37  		return ignorers;
38  	}
39  
40  }