public class MapperReplace extends Object
| Constructor and Description |
|---|
MapperReplace() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
absentTable(Map<String,MapperReplaceInfo> sourceMap,
Map<String,MapperReplaceInfo> targetMap,
MapperReplaceResponse response) |
private static MapperReplaceInfo |
findBaseColumnList(File file) |
private static void |
itemMapper(Map<String,MapperReplaceInfo> map,
File file) |
static MapperReplaceResponse |
replace(String sourcePath,
String targetPath)
xml文件替换 baseSq
|
private static void |
replaceSql(Map<String,MapperReplaceInfo> sourceMap,
Map<String,MapperReplaceInfo> targetMap,
MapperReplaceResponse response) |
private static final Pattern PATTERN
public static MapperReplaceResponse replace(String sourcePath, String targetPath)
sourcePath - 资源文件targetPath - 要替换的文件目录private static void absentTable(Map<String,MapperReplaceInfo> sourceMap, Map<String,MapperReplaceInfo> targetMap, MapperReplaceResponse response)
private static void replaceSql(Map<String,MapperReplaceInfo> sourceMap, Map<String,MapperReplaceInfo> targetMap, MapperReplaceResponse response) throws IOException
IOExceptionprivate static void itemMapper(Map<String,MapperReplaceInfo> map, File file)
private static MapperReplaceInfo findBaseColumnList(File file)
Copyright © 2024. All rights reserved.