Package org.komamitsu.spring.data.sqlite
Class SqliteJdbcRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.jdbc.repository.support.JdbcRepositoryFactory
org.komamitsu.spring.data.sqlite.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
ConstructorsConstructorDescriptionSqliteJdbcRepositoryFactory(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 newJdbcRepositoryFactoryfor the givenDataAccessStrategy,RelationalMappingContextandApplicationEventPublisher. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation) Returns a target repository that usesSqliteJdbcAggregateTemplateinstead ofJdbcAggregateTemplate.voidsetEntityCallbacks(org.springframework.data.mapping.callback.EntityCallbacks entityCallbacks) Methods inherited from class org.springframework.data.jdbc.repository.support.JdbcRepositoryFactory
getEntityInformation, getQueryLookupStrategy, getRepositoryBaseClass, setBeanFactory, setQueryMappingConfigurationMethods 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
-
Constructor Details
-
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 newJdbcRepositoryFactoryfor the givenDataAccessStrategy,RelationalMappingContextandApplicationEventPublisher.- 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 Details
-
getTargetRepository
protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation) Returns a target repository that usesSqliteJdbcAggregateTemplateinstead ofJdbcAggregateTemplate.- Overrides:
getTargetRepositoryin classorg.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:
setEntityCallbacksin classorg.springframework.data.jdbc.repository.support.JdbcRepositoryFactory
-