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.JdbcRepositoryFactoryAn extended $JdbcRepositoryFactoryto make $CrudRepositoryinternally 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 newJdbcRepositoryFactoryfor the givenDataAccessStrategy,RelationalMappingContextandApplicationEventPublisher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.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, 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
-
-
-
-
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 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 Detail
-
getTargetRepository
protected java.lang.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
-
-