public class GenerateUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static ThreadLocal<ProfileProperties> |
currentProfile |
| 构造器和说明 |
|---|
GenerateUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
camel(String name,
boolean isTable) |
static void |
createPackageDir() |
static void |
createPackageDir(String packageName) |
static ClassGenerator |
getClassGenerator(TableDefinition tabDef) |
static void |
getTableColumnDef(TableDefinition td)
获取表的列信息
|
static String |
removePrefixOrSuffix(String name) |
static Map<String,ClassGenerator> |
resolveTables(ProfileProperties profile)
获取表信息
|
public static final ThreadLocal<ProfileProperties> currentProfile
public static Map<String,ClassGenerator> resolveTables(ProfileProperties profile) throws Exception
Exceptionpublic static void getTableColumnDef(TableDefinition td) throws Exception
Exceptionpublic static ClassGenerator getClassGenerator(TableDefinition tabDef)
public static void createPackageDir(String packageName) throws IOException
IOExceptionpublic static void createPackageDir()
throws IOException
IOExceptionCopyright © 2023. All rights reserved.