public class SmartDbEntityGeneratorBuilder extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
className |
protected String |
driverClassName |
protected String |
entityClassFileDir
目录
|
protected com.google.common.base.CaseFormat |
entityFieldCaseFormat |
protected boolean |
isComment |
protected boolean |
isFieldBasicType
生产字段为 java 8种基本数据类型。
|
protected boolean |
isGenerateGetterSetter |
protected String |
jdbcUrl |
protected String |
packageName |
protected String |
password |
protected SupportDatabaseType |
supportDatabaseType |
protected com.google.common.base.CaseFormat |
tableColumnCaseFormat |
protected String |
tableName |
protected String |
username |
| 构造器和说明 |
|---|
SmartDbEntityGeneratorBuilder() |
protected String driverClassName
protected String username
protected String password
protected String jdbcUrl
protected String tableName
protected boolean isComment
protected String packageName
protected String className
protected boolean isGenerateGetterSetter
protected SupportDatabaseType supportDatabaseType
protected boolean isFieldBasicType
protected String entityClassFileDir
protected com.google.common.base.CaseFormat tableColumnCaseFormat
protected com.google.common.base.CaseFormat entityFieldCaseFormat
public void build()
public SmartDbEntityGeneratorBuilder setSupportDatabaseType(SupportDatabaseType supportDatabaseType)
public boolean isFieldBasicType()
public SmartDbEntityGeneratorBuilder setFieldBasicType(boolean fieldBasicType)
public SmartDbEntityGeneratorBuilder setGenerateGetterSetter(boolean generateGetterSetter)
public String getEntityClassFileDir()
public SmartDbEntityGeneratorBuilder setEntityClassFileDir(String entityClassFileDir)
public com.google.common.base.CaseFormat getTableColumnCaseFormat()
public SmartDbEntityGeneratorBuilder setTableColumnCaseFormat(com.google.common.base.CaseFormat tableColumnCaseFormat)
public com.google.common.base.CaseFormat getEntityFieldCaseFormat()
public SmartDbEntityGeneratorBuilder setEntityFieldCaseFormat(com.google.common.base.CaseFormat entityFieldCaseFormat)
public String getDriverClassName()
public SmartDbEntityGeneratorBuilder setDriverClassName(String driverClassName)
public String getUsername()
public SmartDbEntityGeneratorBuilder setUsername(String username)
public String getPassword()
public SmartDbEntityGeneratorBuilder setPassword(String password)
public String getJdbcUrl()
public SmartDbEntityGeneratorBuilder setJdbcUrl(String jdbcUrl)
public String getTableName()
public SmartDbEntityGeneratorBuilder setTableName(String tableName)
public boolean isComment()
public SmartDbEntityGeneratorBuilder setComment(boolean comment)
public String getPackageName()
public SmartDbEntityGeneratorBuilder setPackageName(String packageName)
public String getClassName()
public SmartDbEntityGeneratorBuilder setClassName(String className)
public Connection getConnection() throws Exception
Exceptionpublic boolean isGenerateGetterSetter()
protected void releaseResources(ResultSet rs, Statement stmt, Connection conn)
Copyright © 2020. All rights reserved.