| 构造器和说明 |
|---|
OrmliteExporter() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected EntityModel |
createEntityModel(String schemaName,
String tableName,
String className) |
protected com.querydsl.codegen.Property |
createProperty(EntityModel classModel,
String normalizedColumnName,
String propertyName,
com.mysema.codegen.model.Type typeModel) |
void |
export(DatabaseMetaData md)
Export the tables based on the given database metadata
|
protected EntityModel |
finishEntityModel(EntityModel model) |
protected void |
finishWrite(File targetFile,
StringWriter w) |
protected SuperType |
getSupertype(EntityModel entityType) |
void |
setBeanPackageName(String beanPackageName)
Override the bean package name (default: packageName)
|
void |
setBeanPrefix(String beanPrefix)
Override the bean prefix for the classes (default: "")
|
void |
setBeanSuffix(String beanSuffix)
Override the bean suffix for the classes (default: "")
|
void |
setColumnAnnotations(boolean columnAnnotations) |
void |
setColumnComparatorClass(Class<? extends Comparator<com.querydsl.codegen.Property>> columnComparatorClass) |
void |
setConfiguration(com.querydsl.sql.Configuration configuration)
Override the configuration
|
void |
setCreateScalaSources(boolean createScalaSources)
Set true to create Scala sources instead of Java sources
|
void |
setExportAll(boolean exportAll) |
void |
setExportForeignKeys(boolean exportForeignKeys) |
void |
setExportPrimaryKeys(boolean exportPrimaryKeys) |
void |
setExportTables(boolean exportTables) |
void |
setExportViews(boolean exportViews) |
void |
setImports(String[] imports)
Set the java imports
|
void |
setInnerClassesForKeys(boolean innerClassesForKeys) |
void |
setLowerCase(boolean lowerCase) |
void |
setNamePrefix(String namePrefix)
Override the name prefix for the classes (default: Q)
|
void |
setNameSuffix(String nameSuffix)
Override the name suffix for the classes (default: "")
|
void |
setNamingStrategy(com.querydsl.sql.codegen.NamingStrategy namingStrategy)
Override the NamingStrategy (default: new DefaultNamingStrategy())
|
void |
setPackageName(String packageName)
Set the package name
|
void |
setSchemaPattern(String schemaPattern)
Set the schema pattern filter to be used
|
void |
setSchemaToPackage(boolean schemaToPackage) |
void |
setSerializer(OrmliteEntityBeanSerializer beanSerializer)
Set the Bean serializer to create bean types as well
|
void |
setSourceEncoding(String sourceEncoding) |
void |
setSpatial(boolean spatial) |
void |
setTableNamePattern(String tableNamePattern)
Set the table name pattern filter to be used
|
void |
setTargetFolder(File targetFolder)
Set the target folder
|
void |
setTypeMappings(com.querydsl.codegen.TypeMappings typeMappings) |
void |
setValidationAnnotations(boolean validationAnnotations) |
protected EntityModel createEntityModel(@Nullable String schemaName, String tableName, String className)
protected EntityModel finishEntityModel(EntityModel model)
protected SuperType getSupertype(EntityModel entityType)
protected com.querydsl.codegen.Property createProperty(EntityModel classModel, String normalizedColumnName, String propertyName, com.mysema.codegen.model.Type typeModel)
public void export(DatabaseMetaData md) throws SQLException
md - SQLExceptionpublic void setSchemaPattern(@Nullable String schemaPattern)
schemaPattern - a schema name pattern; must match the schema name as it is stored in the database; ""
retrieves those without a schema; null means that the schema name should not be
used to narrow the search (default: null)public void setTableNamePattern(@Nullable String tableNamePattern)
tableNamePattern - a table name pattern; must match the table name as it is stored in the database (default:
null)public void setConfiguration(com.querydsl.sql.Configuration configuration)
configuration - override configuration for custom type mappings etcpublic void setCreateScalaSources(boolean createScalaSources)
createScalaSources - whether to create Scala sources (default: false)public void setTargetFolder(File targetFolder)
targetFolder - target source folder to create the sources into (e.g. target/generated-sources/java)public void setPackageName(String packageName)
packageName - package name for sourcespublic void setBeanPackageName(@Nullable String beanPackageName)
beanPackageName - public void setNamePrefix(String namePrefix)
namePrefix - name prefix for query-types (default: Q)public void setNameSuffix(String nameSuffix)
nameSuffix - name suffix for query-types (default: "")public void setBeanPrefix(String beanPrefix)
beanPrefix - bean prefix for bean-types (default: "")public void setBeanSuffix(String beanSuffix)
beanSuffix - bean suffix for bean-types (default: "")public void setNamingStrategy(com.querydsl.sql.codegen.NamingStrategy namingStrategy)
namingStrategy - namingstrategy to override (default: new DefaultNamingStrategy())public void setSerializer(@Nullable OrmliteEntityBeanSerializer beanSerializer)
beanSerializer - serializer for JavaBeans (default: null)public void setInnerClassesForKeys(boolean innerClassesForKeys)
innerClassesForKeys - public void setColumnComparatorClass(Class<? extends Comparator<com.querydsl.codegen.Property>> columnComparatorClass)
columnComparatorClass - public void setTypeMappings(com.querydsl.codegen.TypeMappings typeMappings)
typeMappings - public void setColumnAnnotations(boolean columnAnnotations)
columnAnnotations - public void setValidationAnnotations(boolean validationAnnotations)
validationAnnotations - public void setSourceEncoding(String sourceEncoding)
sourceEncoding - public void setSchemaToPackage(boolean schemaToPackage)
schemaToPackage - public void setLowerCase(boolean lowerCase)
lowerCase - public void setExportTables(boolean exportTables)
exportTables - public void setExportViews(boolean exportViews)
exportViews - public void setExportAll(boolean exportAll)
exportAll - public void setExportPrimaryKeys(boolean exportPrimaryKeys)
exportPrimaryKeys - public void setExportForeignKeys(boolean exportForeignKeys)
exportForeignKeys - public void setImports(String[] imports)
imports - java imports arraypublic void setSpatial(boolean spatial)
spatial - protected void finishWrite(File targetFile, StringWriter w) throws IOException
IOExceptionCopyright © 2018. All rights reserved.