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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 as JdbcAggregateTemplate when it's required
    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 customized SqliteJdbcRepositoryFactory to use it when to create

    Methods inherited from class org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration

    dataAccessStrategyBean, jdbcAggregateTemplate, jdbcConverter, jdbcCustomConversions, jdbcDialect, jdbcMappingContext, setApplicationContext, userConverters

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 as JdbcAggregateTemplate when it's required
      Parameters:
      applicationContext - ApplicationContext instance
      mappingContext - JdbcMappingContext instance
      converter - JdbcConverter instance
      dataAccessStrategy - DataAccessStrategy instance
      Returns:
      SqliteJdbcAggregateTemplate instance
    • 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 customized SqliteJdbcRepositoryFactory to use it when to create
      Parameters:
      dataAccessStrategy - DataAccessStrategy instance
      context - RelationalMappingContext instance
      converter - JdbcConverter instance
      dialect - Dialect instance
      publisher - ApplicationEventPublisher instance
      operations - NamedParameterJdbcOperations instance
      Returns:
      SqliteJdbcAggregateTemplate instance