Package org.komamitsu.spring.data.sqlite
Class SqliteJdbcConfiguration
java.lang.Object
org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
org.komamitsu.spring.data.sqlite.SqliteJdbcConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Configuration
@EnableSqliteRepositories
public class SqliteJdbcConfiguration
extends org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
An extended $
AbstractJdbcConfiguration to inject some custom classes to support SQLite.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.jdbc.core.JdbcAggregateTemplatecreateJdbcAggregateTemplate(org.springframework.context.ApplicationContext applicationContext, org.springframework.data.jdbc.core.mapping.JdbcMappingContext mappingContext, org.springframework.data.jdbc.core.convert.JdbcConverter converter, org.springframework.data.jdbc.core.convert.DataAccessStrategy dataAccessStrategy) Return the customized SqliteJdbcAggregateTemplate to use it asJdbcAggregateTemplatewhen it's requiredorg.springframework.data.jdbc.repository.support.JdbcRepositoryFactorycreateJdbcRepositoryFactory(org.springframework.data.jdbc.core.convert.DataAccessStrategy dataAccessStrategy, org.springframework.data.relational.core.mapping.RelationalMappingContext context, org.springframework.data.jdbc.core.convert.JdbcConverter converter, org.springframework.data.relational.core.dialect.Dialect dialect, org.springframework.context.ApplicationEventPublisher publisher, org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations operations) Return the customizedSqliteJdbcRepositoryFactoryto use it when to createMethods inherited from class org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
dataAccessStrategyBean, jdbcAggregateTemplate, jdbcConverter, jdbcCustomConversions, jdbcDialect, jdbcMappingContext, setApplicationContext, userConverters
-
Constructor Details
-
SqliteJdbcConfiguration
public SqliteJdbcConfiguration()
-
-
Method Details
-
createJdbcAggregateTemplate
@Bean @Primary public org.springframework.data.jdbc.core.JdbcAggregateTemplate createJdbcAggregateTemplate(org.springframework.context.ApplicationContext applicationContext, org.springframework.data.jdbc.core.mapping.JdbcMappingContext mappingContext, org.springframework.data.jdbc.core.convert.JdbcConverter converter, org.springframework.data.jdbc.core.convert.DataAccessStrategy dataAccessStrategy) Return the customized SqliteJdbcAggregateTemplate to use it asJdbcAggregateTemplatewhen it's required- Parameters:
applicationContext-ApplicationContextinstancemappingContext-JdbcMappingContextinstanceconverter-JdbcConverterinstancedataAccessStrategy-DataAccessStrategyinstance- Returns:
SqliteJdbcAggregateTemplateinstance
-
createJdbcRepositoryFactory
@Bean @Primary public org.springframework.data.jdbc.repository.support.JdbcRepositoryFactory createJdbcRepositoryFactory(org.springframework.data.jdbc.core.convert.DataAccessStrategy dataAccessStrategy, org.springframework.data.relational.core.mapping.RelationalMappingContext context, org.springframework.data.jdbc.core.convert.JdbcConverter converter, org.springframework.data.relational.core.dialect.Dialect dialect, org.springframework.context.ApplicationEventPublisher publisher, org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations operations) Return the customizedSqliteJdbcRepositoryFactoryto use it when to create- Parameters:
dataAccessStrategy-DataAccessStrategyinstancecontext-RelationalMappingContextinstanceconverter-JdbcConverterinstancedialect-Dialectinstancepublisher-ApplicationEventPublisherinstanceoperations-NamedParameterJdbcOperationsinstance- Returns:
SqliteJdbcAggregateTemplateinstance
-