com.querydsl.sql.codegen.MetadataExporterConfigImpl Maven / Gradle / Ivy
package com.querydsl.sql.codegen;
import com.querydsl.codegen.Property;
import com.querydsl.codegen.Serializer;
import com.querydsl.sql.codegen.support.CustomType;
import com.querydsl.sql.codegen.support.NumericMapping;
import com.querydsl.sql.codegen.support.RenameMapping;
import com.querydsl.sql.codegen.support.TypeMapping;
import java.io.File;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Comparator;
import java.util.List;
public class MetadataExporterConfigImpl implements MetadataExporterConfig {
private String namePrefix;
private String nameSuffix;
private String beanPrefix;
private String beanSuffix;
private File beansTargetFolder;
private File targetFolder;
private boolean createScalaSources;
private String packageName;
private String beanPackageName;
private boolean innerClassesForKeys;
private Class extends NamingStrategy> namingStrategyClass = DefaultNamingStrategy.class;
private String schemaPattern;
private String catalogPattern;
private String tableNamePattern;
private boolean columnAnnotations;
private boolean validationAnnotations;
private boolean schemaToPackage;
private boolean lowerCase;
private boolean exportTables = true;
private boolean exportViews = true;
private boolean exportAll;
private boolean exportBeans;
private boolean exportPrimaryKeys = true;
private boolean exportForeignKeys = true;
private boolean exportDirectForeignKeys = true;
private boolean exportInverseForeignKeys = true;
private Charset sourceEncoding = StandardCharsets.UTF_8;
private String tableTypesToExport;
private List imports;
private String generatedAnnotationClass;
private Class extends Serializer> beanSerializerClass;
private String[] beanInterfaces;
private boolean beanAddToString;
private boolean beanAddFullConstructor;
private boolean beanPrintSupertype;
private List customTypes;
private List typeMappings;
private List numericMappings;
private List renameMappings;
private Class extends Comparator> columnComparatorClass;
private Class extends Serializer> serializerClass;
@Override
public String getNamePrefix() {
return namePrefix;
}
public void setNamePrefix(String namePrefix) {
this.namePrefix = namePrefix;
}
@Override
public String getNameSuffix() {
return nameSuffix;
}
public void setNameSuffix(String nameSuffix) {
this.nameSuffix = nameSuffix;
}
@Override
public String getBeanPrefix() {
return beanPrefix;
}
public void setBeanPrefix(String beanPrefix) {
this.beanPrefix = beanPrefix;
}
@Override
public String getBeanSuffix() {
return beanSuffix;
}
public void setBeanSuffix(String beanSuffix) {
this.beanSuffix = beanSuffix;
}
@Override
public File getBeansTargetFolder() {
return beansTargetFolder;
}
public void setBeansTargetFolder(File beansTarFolder) {
this.beansTargetFolder = beansTarFolder;
}
@Override
public File getTargetFolder() {
return targetFolder;
}
public void setTargetFolder(File tarFolder) {
this.targetFolder = tarFolder;
}
@Override
public boolean isCreateScalaSources() {
return createScalaSources;
}
public void setCreateScalaSources(boolean createScalaSources) {
this.createScalaSources = createScalaSources;
}
@Override
public String getPackageName() {
return packageName;
}
public void setPackageName(String packageName) {
this.packageName = packageName;
}
@Override
public String getBeanPackageName() {
return beanPackageName;
}
public void setBeanPackageName(String beanPackageName) {
this.beanPackageName = beanPackageName;
}
@Override
public boolean isInnerClassesForKeys() {
return innerClassesForKeys;
}
public void setInnerClassesForKeys(boolean innerClassesForKeys) {
this.innerClassesForKeys = innerClassesForKeys;
}
@Override
public Class extends NamingStrategy> getNamingStrategyClass() {
return namingStrategyClass;
}
public void setNamingStrategyClass(Class extends NamingStrategy> namingStrategyClass) {
this.namingStrategyClass = namingStrategyClass;
}
@Override
public String getSchemaPattern() {
return schemaPattern;
}
public void setSchemaPattern(String schemaPattern) {
this.schemaPattern = schemaPattern;
}
@Override
public String getCatalogPattern() {
return catalogPattern;
}
public void setCatalogPattern(String catalogPattern) {
this.catalogPattern = catalogPattern;
}
@Override
public String getTableNamePattern() {
return tableNamePattern;
}
public void setTableNamePattern(String tableNamePattern) {
this.tableNamePattern = tableNamePattern;
}
@Override
public boolean isColumnAnnotations() {
return columnAnnotations;
}
public void setColumnAnnotations(boolean columnAnnotations) {
this.columnAnnotations = columnAnnotations;
}
@Override
public boolean isValidationAnnotations() {
return validationAnnotations;
}
public void setValidationAnnotations(boolean validationAnnotations) {
this.validationAnnotations = validationAnnotations;
}
@Override
public boolean isSchemaToPackage() {
return schemaToPackage;
}
public void setSchemaToPackage(boolean schemaToPackage) {
this.schemaToPackage = schemaToPackage;
}
@Override
public boolean isLowerCase() {
return lowerCase;
}
public void setLowerCase(boolean lowerCase) {
this.lowerCase = lowerCase;
}
@Override
public boolean isExportTables() {
return exportTables;
}
public void setExportTables(boolean exportTables) {
this.exportTables = exportTables;
}
@Override
public boolean isExportViews() {
return exportViews;
}
public void setExportViews(boolean exportViews) {
this.exportViews = exportViews;
}
@Override
public boolean isExportAll() {
return exportAll;
}
public void setExportAll(boolean exportAll) {
this.exportAll = exportAll;
}
@Override
public boolean isExportBeans() {
return exportBeans;
}
public void setExportBeans(boolean exportBeans) {
this.exportBeans = exportBeans;
}
@Override
public boolean isExportPrimaryKeys() {
return exportPrimaryKeys;
}
public void setExportPrimaryKeys(boolean exportPrimaryKeys) {
this.exportPrimaryKeys = exportPrimaryKeys;
}
@Override
public boolean isExportForeignKeys() {
return exportForeignKeys;
}
public void setExportForeignKeys(boolean exportForeignKeys) {
this.exportForeignKeys = exportForeignKeys;
}
@Override
public boolean isExportDirectForeignKeys() {
return exportDirectForeignKeys;
}
public void setExportDirectForeignKeys(boolean exportDirectForeignKeys) {
this.exportDirectForeignKeys = exportDirectForeignKeys;
}
@Override
public boolean isExportInverseForeignKeys() {
return exportInverseForeignKeys;
}
public void setExportInverseForeignKeys(boolean exportInverseForeignKeys) {
this.exportInverseForeignKeys = exportInverseForeignKeys;
}
@Override
public Charset getSourceEncoding() {
return sourceEncoding;
}
public void setSourceEncoding(Charset sourceEncoding) {
this.sourceEncoding = sourceEncoding;
}
@Override
public String getTableTypesToExport() {
return tableTypesToExport;
}
public void setTableTypesToExport(String tableTypesToExport) {
this.tableTypesToExport = tableTypesToExport;
}
@Override
public List getImports() {
return imports;
}
public void setImports(List imports) {
this.imports = imports;
}
@Override
public String getGeneratedAnnotationClass() {
return generatedAnnotationClass;
}
public void setGeneratedAnnotationClass(String generatedAnnotationClass) {
this.generatedAnnotationClass = generatedAnnotationClass;
}
@Override
public Class extends Serializer> getBeanSerializerClass() {
return beanSerializerClass;
}
public void setBeanSerializerClass(Class extends Serializer> beanSerializerClass) {
this.beanSerializerClass = beanSerializerClass;
}
@Override
public String[] getBeanInterfaces() {
return beanInterfaces;
}
public void setBeanInterfaces(String[] beanInterfaces) {
this.beanInterfaces = beanInterfaces;
}
@Override
public boolean isBeanAddToString() {
return beanAddToString;
}
public void setBeanAddToString(boolean beanAddToString) {
this.beanAddToString = beanAddToString;
}
@Override
public boolean isBeanAddFullConstructor() {
return beanAddFullConstructor;
}
public void setBeanAddFullConstructor(boolean beanAddFullConstructor) {
this.beanAddFullConstructor = beanAddFullConstructor;
}
@Override
public boolean isBeanPrintSupertype() {
return beanPrintSupertype;
}
public void setBeanPrintSupertype(boolean beanPrintSupertype) {
this.beanPrintSupertype = beanPrintSupertype;
}
@Override
public List getCustomTypes() {
return customTypes;
}
public void setCustomTypes(List customTypes) {
this.customTypes = customTypes;
}
@Override
public List getTypeMappings() {
return typeMappings;
}
public void setTypeMappings(List typeMappings) {
this.typeMappings = typeMappings;
}
@Override
public List getNumericMappings() {
return numericMappings;
}
public void setNumericMappings(List numericMappings) {
this.numericMappings = numericMappings;
}
@Override
public List getRenameMappings() {
return renameMappings;
}
public void setRenameMappings(List renameMappings) {
this.renameMappings = renameMappings;
}
@Override
public Class extends Comparator> getColumnComparatorClass() {
return columnComparatorClass;
}
public void setColumnComparatorClass(
Class extends Comparator> columnComparatorClass) {
this.columnComparatorClass = columnComparatorClass;
}
@Override
public Class extends Serializer> getSerializerClass() {
return serializerClass;
}
public void setSerializerClass(Class extends Serializer> serializerClass) {
this.serializerClass = serializerClass;
}
}