public class PojoGenerator extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PojoGenerator.PojoColumn |
| 限定符和类型 | 字段和说明 |
|---|---|
static Consumer<PojoGenerator> |
GLOBAL_CONFIGURATION_CONSUMER |
| 构造器和说明 |
|---|
PojoGenerator(Bootstrap bootstrap,
File targetDirectory) |
| 限定符和类型 | 方法和说明 |
|---|---|
PojoGenerator |
addAnnotation(Class<?> cls) |
PojoGenerator |
addAnnotation(Class<?> cls,
String name) |
PojoGenerator |
addAnnotation(String cls,
String simpleName) |
PojoGenerator |
addAnnotationByColumn(String columnName,
Class<?>... annotations) |
PojoGenerator |
addImport(Class<?> cls) |
PojoGenerator |
addImport(String cls) |
PojoGenerator |
addInterface(Class<?> cls) |
PojoGenerator |
addInterface(Class<?> interfaceClass,
String interfaceName) |
File |
general(String tableName) |
void |
generalAll()
All available tables generate Pojo
|
PojoGenerator |
processClassName(Function<String,String> function) |
public static Consumer<PojoGenerator> GLOBAL_CONFIGURATION_CONSUMER
public PojoGenerator addAnnotation(Class<?> cls)
public PojoGenerator addAnnotation(String cls, String simpleName)
public PojoGenerator addAnnotation(Class<?> cls, String name)
public PojoGenerator addInterface(Class<?> cls)
public PojoGenerator addInterface(Class<?> interfaceClass, String interfaceName)
public PojoGenerator addImport(Class<?> cls)
public PojoGenerator addImport(String cls)
public void generalAll()
public PojoGenerator processClassName(Function<String,String> function)
public PojoGenerator addAnnotationByColumn(String columnName, Class<?>... annotations)
Copyright © 2023. All rights reserved.