Class DynamicSqlAutoConfiguration
java.lang.Object
com.dynamic.sql.starter.application.DynamicSqlAutoConfiguration
@Configuration
@ConditionalOnBean(DataSource.class)
public class DynamicSqlAutoConfiguration
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicSqlAutoConfiguration(org.springframework.context.ApplicationContext applicationContext, List<com.dynamic.sql.context.properties.SchemaProperties> schemaProperties) -
Method Summary
Modifier and TypeMethodDescriptiondbSchemaMatcherRegistrar(List<com.dynamic.sql.plugins.schema.DbSchemaMatcher> schemaMatchers) com.dynamic.sql.plugins.exception.ExceptionPluginfetchResultConverterRegistrar(List<com.dynamic.sql.plugins.conversion.FetchResultConverter<?>> fetchResultConverters) com.dynamic.sql.plugins.pagination.PageInterceptorPlugincom.dynamic.sql.core.SqlContextsqlContext(DbSchemaMatcherRegistrar dbSchemaMatcherRegistrar, SqlInterceptorRegistrar sqlInterceptorRegistrar, com.dynamic.sql.context.properties.SqlContextProperties sqlContextProperties) com.dynamic.sql.context.properties.SqlContextPropertiessqlInterceptorRegistrar(List<com.dynamic.sql.interceptor.SqlInterceptor> interceptors)
-
Constructor Details
-
DynamicSqlAutoConfiguration
@Autowired public DynamicSqlAutoConfiguration(org.springframework.context.ApplicationContext applicationContext, List<com.dynamic.sql.context.properties.SchemaProperties> schemaProperties)
-
-
Method Details
-
pageInterceptorPlugin
@Bean public com.dynamic.sql.plugins.pagination.PageInterceptorPlugin pageInterceptorPlugin() -
exceptionPlugin
@Bean public com.dynamic.sql.plugins.exception.ExceptionPlugin exceptionPlugin() -
mapperBeanDefinitionRegistrar
-
sqlInterceptorRegistrar
@Bean public SqlInterceptorRegistrar sqlInterceptorRegistrar(List<com.dynamic.sql.interceptor.SqlInterceptor> interceptors) -
dbSchemaMatcherRegistrar
@Bean("dbSchemaMatcherRegistrar") public DbSchemaMatcherRegistrar dbSchemaMatcherRegistrar(List<com.dynamic.sql.plugins.schema.DbSchemaMatcher> schemaMatchers) -
fetchResultConverterRegistrar
@Bean("fetchResultConverterRegistrar") public FetchResultConverterRegistrar fetchResultConverterRegistrar(List<com.dynamic.sql.plugins.conversion.FetchResultConverter<?>> fetchResultConverters) -
sqlContextProperties
@Bean("sqlContextProperties") @ConditionalOnMissingBean public com.dynamic.sql.context.properties.SqlContextProperties sqlContextProperties() -
sqlContext
@Bean @ConditionalOnMissingBean @DependsOn({"fetchResultConverterRegistrar","dbSchemaMatcherRegistrar","sqlContextProperties"}) public com.dynamic.sql.core.SqlContext sqlContext(DbSchemaMatcherRegistrar dbSchemaMatcherRegistrar, SqlInterceptorRegistrar sqlInterceptorRegistrar, com.dynamic.sql.context.properties.SqlContextProperties sqlContextProperties)
-