@Named @Singleton public class PluginConfig extends Object
| Constructor and Description |
|---|
PluginConfig() |
public File getOutputBaseDirectory()
public void setOutputBaseDirectory(File outputBaseDirectory)
outputBaseDirectory - the outputBaseDirectory to setpublic String getRepositorySqlStatements()
public void setRepositorySqlStatements(String repositorySqlStatements)
repositorySqlStatements - How SQL statements are to be included in generated repositories.public boolean isGenerateBatchApi()
public void setGenerateBatchApi(boolean generateBatchApi)
generateBatchApi - the generateBatchApi to setpublic boolean isGenerateRxJavaApi()
public void setGenerateRxJavaApi(boolean generateRxJavaApi)
generateRxJavaApi - the generateRxJavaApi to setpublic String getMethodBatchPrefix()
public void setMethodBatchPrefix(String methodBatchPrefix)
methodBatchPrefix - the batch prefix to setpublic String getMethodStreamPrefix()
public void setMethodStreamPrefix(String methodStreamPrefix)
methodStreamPrefix - the method stream prefix to setpublic String getMethodStreamSuffix()
public void setMethodStreamSuffix(String methodStreamSuffix)
methodStreamSuffix - the method stream suffix to setpublic String getMethodRxJavaPrefix()
public void setMethodRxJavaPrefix(String methodRxJavaPrefix)
methodRxJavaPrefix - the RxJava prefix to setpublic String getMethodRxJavaSuffix()
public void setMethodRxJavaSuffix(String methodRxJavaSuffix)
methodRxJavaSuffix - the method RxJava suffix to setpublic String getRepositoryNameSuffix()
public void setRepositoryNameSuffix(String repositoryNameSuffix)
repositoryNameSuffix - the repositoryNameSuffix to setpublic boolean isGenerateStreamEagerApi()
public void setGenerateStreamEagerApi(boolean generateStreamEagerApi)
generateStreamEagerApi - the generateStreamEagerApi to setpublic boolean isGenerateStreamLazyApi()
public void setGenerateStreamLazyApi(boolean generateStreamLazyApi)
generateStreamLazyApi - the generateStreamLazyApi to setpublic String getMethodLazyName()
public void setMethodLazyName(String methodLazyName)
methodLazyName - the method lazy name to setpublic String getMethodEagerName()
public void setMethodEagerName(String methodEagerName)
methodEagerName - the method eager name to setpublic org.apache.maven.model.FileSet getSqlFiles()
public void setGenerateStandardApi(boolean generateStandardApi)
generateStandardApi - Whether to create the standard API or not.public boolean isGenerateStandardApi()
public String getUtilityPackageName()
public void setUtilityPackageName(String utilityPackageName)
utilityPackageName - the utilityPackageName to setpublic String getConverterPackageName()
public void setConverterPackageName(String converterPackageName)
converterPackageName - the converterPackageName to setpublic String getBasePackageName()
public void setBasePackageName(String basePackageName)
basePackageName - the basePackageName to setpublic void setLogger(Supplier<org.apache.maven.plugin.logging.Log> logSupplier)
logSupplier - The log supplier to use.public org.apache.maven.plugin.logging.Log getLogger()
public void setMethodBatchSuffix(String methodBatchSuffix)
methodBatchSuffix - The batch method name suffixpublic String getMethodBatchSuffix()
public String[] getAllowedWritePrefixes()
public void setAllowedWritePrefixes(String[] allowedWritePrefixes)
allowedWritePrefixes - the allowedWritePrefixes to setpublic String[] getAllowedReadPrefixes()
public void setAllowedReadPrefixes(String[] allowedReadPrefixes)
allowedReadPrefixes - the allowedReadPrefixes to setpublic boolean shouldValidateMethodNamePrefixes()
public void setValidateMethodNamePrefixes(boolean validateMethodNamePrefixes)
validateMethodNamePrefixes - the validateMethodNamePrefixes to setpublic String getSqlStatementSeparator()
public void setSqlStatementSeparator(String sqlStatementSeperator)
sqlStatementSeperator - The SQL statement separatorpublic String getSqlFilesCharset()
public void setSqlFilesCharset(String sqlFilesCharset)
sqlFilesCharset - The SQL file charset to use.public void setLoggingApi(LoggingAPI loggingApi)
loggingApi - The logging API to use.public LoggingAPI getLoggingApi()
public boolean shouldLog()
public void setMethodCatchAndRethrow(boolean methodCatchAndRethrow)
methodCatchAndRethrow - Whether methods should catch & rethrowpublic boolean isMethodCatchAndRethrow()
public void setFlowStateClass(com.squareup.javapoet.ClassName flowStateClass)
flowStateClass - The name of the flow-state classpublic com.squareup.javapoet.ClassName getFlowStateClass()
public void setResultStateClass(com.squareup.javapoet.ClassName resultStateClass)
resultStateClass - The name of the result-state classpublic com.squareup.javapoet.ClassName getResultStateClass()
public void setResultRowClass(com.squareup.javapoet.ClassName resultRowClass)
resultRowClass - The name of the result-row classpublic com.squareup.javapoet.ClassName getResultRowClass()
public List<ResultRowConverter> getResultRowConverters()
public void setResultRowConverters(List<ResultRowConverter> resultRowConverters)
resultRowConverters - the resultRowConverters to set.public void setDefaultRowConverter(String defaultRowConverter)
defaultRowConverter - The default result row converter.public String getDefaultRowConverter()
public boolean isClassGeneratedAnnotation()
public boolean isFieldGeneratedAnnotation()
public boolean isMethodGeneratedAnnotation()
public void setClassGeneratedAnnotation(boolean classGeneratedAnnotation)
classGeneratedAnnotation - Should @Generated annotations be generated for classes.public void setFieldGeneratedAnnotation(boolean fieldGeneratedAnnotation)
fieldGeneratedAnnotation - Should @Generated annotations be generated for fields.public void setMethodGeneratedAnnotation(boolean methodGeneratedAnnotation)
methodGeneratedAnnotation - Should @Generated annotations be generated for methods.public String[] getAllowedCallPrefixes()
public void setAllowedCallPrefixes(String[] allowedCallPrefixes)
allowedCallPrefixes - Allowed name prefixes for calling statements.public void setGeneratedAnnotationComment(String generatedAnnotationComment)
generatedAnnotationComment - The comment used for @Generated annotations.public String getGeneratedAnnotationComment()
public void setRepositoryGenerateInterface(boolean repositoryGenerateInterface)
repositoryGenerateInterface - Whether an interface should be generated for each repository.public boolean isRepositoryGenerateInterface()
Copyright © 2016–2017. All rights reserved.