Class SqliteJdbcRepositoryFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware

    public class SqliteJdbcRepositoryFactory
    extends org.springframework.data.jdbc.repository.support.JdbcRepositoryFactory
    An extended $JdbcRepositoryFactory to make $CrudRepository internally use $SqliteJdbcAggregateTemplate.
    • Constructor Summary

      Constructors 
      Constructor Description
      SqliteJdbcRepositoryFactory​(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)
      Creates a new JdbcRepositoryFactory for the given DataAccessStrategy, RelationalMappingContext and ApplicationEventPublisher.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object getTargetRepository​(org.springframework.data.repository.core.RepositoryInformation repositoryInformation)
      Returns a target repository that uses SqliteJdbcAggregateTemplate instead of JdbcAggregateTemplate.
      void setEntityCallbacks​(org.springframework.data.mapping.callback.EntityCallbacks entityCallbacks)  
      • Methods inherited from class org.springframework.data.jdbc.repository.support.JdbcRepositoryFactory

        getEntityInformation, getQueryLookupStrategy, getRepositoryBaseClass, setBeanFactory, setQueryMappingConfiguration
      • Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport

        addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SqliteJdbcRepositoryFactory

        public SqliteJdbcRepositoryFactory​(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)
        Creates a new JdbcRepositoryFactory for the given DataAccessStrategy, RelationalMappingContext and ApplicationEventPublisher.
        Parameters:
        dataAccessStrategy - must not be null.
        context - must not be null.
        converter - must not be null.
        dialect - must not be null.
        publisher - must not be null.
        operations - must not be null.
    • Method Detail

      • getTargetRepository

        protected java.lang.Object getTargetRepository​(org.springframework.data.repository.core.RepositoryInformation repositoryInformation)
        Returns a target repository that uses SqliteJdbcAggregateTemplate instead of JdbcAggregateTemplate.
        Overrides:
        getTargetRepository in class org.springframework.data.jdbc.repository.support.JdbcRepositoryFactory
        Parameters:
        repositoryInformation - repositoryInformation
        Returns:
        SqliteJdbcAggregateTemplate to use SQLite
      • setEntityCallbacks

        public void setEntityCallbacks​(org.springframework.data.mapping.callback.EntityCallbacks entityCallbacks)
        Overrides:
        setEntityCallbacks in class org.springframework.data.jdbc.repository.support.JdbcRepositoryFactory