本文整理汇总了Java中org.springframework.data.repository.core.support.RepositoryFactorySupport类的典型用法代码示例。如果您正苦于以下问题:Java RepositoryFactorySupport类的具体用法?Java RepositoryFactorySupport怎么用?Java RepositoryFactorySupport使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RepositoryFactorySupport类属于org.springframework.data.repository.core.support包,在下文中一共展示了RepositoryFactorySupport类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doCreateRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
SolrRepositoryFactory factory = operations != null ? new SolrRepositoryFactory(this.operations)
: new SolrRepositoryFactory(this.solrClient);
factory.setSchemaCreationSupport(schemaCreationSupport);
return factory;
}
示例2: doCreateRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
SolrRepositoryFactory factory = operations != null ? new SolrRepositoryFactory(this.operations)
: new SolrRepositoryFactory(this.solrServer);
factory.setSchemaCreationSupport(schemaCreationSupport);
return factory;
}
示例3: testCreateRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Test
public void testCreateRepositoryFactory() {
final DocumentDbRepositoryFactoryBean factoryBean =
new DocumentDbRepositoryFactoryBean(PersonRepository.class, dbTemplate);
final RepositoryFactorySupport factory = factoryBean.createRepositoryFactory();
assertThat(factory).isNotNull();
}
开发者ID:Microsoft,项目名称:spring-data-documentdb,代码行数:8,代码来源:DocumentDbRepositoryFactoryBeanUnitTest.java
示例4: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
DatasourceMapper datasourceMapper = new JpaDatasourceMapper(entityManager.getEntityManagerFactory());
SnowdropOperations operations = new SnowdropTemplate(datasourceMapper);
SnowdropRepositoryFactory snowdropRepositoryFactory = new SnowdropRepositoryFactory(operations);
postProcessors.forEach(p -> p.postProcess(snowdropRepositoryFactory));
return new JpaWithSnowdropRepositoryFactory(entityManager, snowdropRepositoryFactory);
}
示例5: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
/** {@inheritDoc} */
@Override protected RepositoryFactorySupport createRepositoryFactory() {
try {
Ignite ignite = (Ignite)ctx.getBean("igniteInstance");
return new IgniteRepositoryFactory(ignite);
}
catch (BeansException ex) {
try {
IgniteConfiguration cfg = (IgniteConfiguration)ctx.getBean("igniteCfg");
return new IgniteRepositoryFactory(cfg);
}
catch (BeansException ex2) {
try {
String path = (String)ctx.getBean("igniteSpringCfgPath");
return new IgniteRepositoryFactory(path);
}
catch (BeansException ex3) {
throw new IgniteException("Failed to initialize Ignite repository factory. Ignite instance or" +
" IgniteConfiguration or a path to Ignite's spring XML configuration must be defined in the" +
" application configuration");
}
}
}
}
示例6: doCreateRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
EntityManagerFactory emf;
if(entityManagerFactoryRef==null){
emf = context.getBean(EntityManagerFactory.class);
}else{
emf = context.getBean(entityManagerFactoryRef, EntityManagerFactory.class);
}
return new GqRepositoryFactory((JefEntityManagerFactory) emf);
}
示例7: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
if (dynamoDBOperations == null)
{
dynamoDBOperations = new DynamoDBTemplate(amazonDynamoDB,dynamoDBMapperConfig);
}
return new DynamoDBRepositoryFactory(dynamoDBOperations);
}
示例8: doCreateRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
return new JdbcRepositoryFactory(datasource);
}
示例9: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
return new DefaultRepositoryFactory(entityManager);
}
示例10: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected final RepositoryFactorySupport createRepositoryFactory() {
return getFactoryInstance(applicationContext);
}
示例11: getFactoryInstance
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
protected RepositoryFactorySupport getFactoryInstance(ApplicationContext applicationContext) {
return new DocumentDbRepositoryFactory(operations, applicationContext);
}
示例12: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
return new BaseRepositoryFactory(entityManager);
}
示例13: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
return new SpannerRepositoryFactory(operations);
}
示例14: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
return new SnowdropRepositoryFactory(snowdropOperations);
}
示例15: createRepositoryFactory
import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager em) {
return new BaseRepositoryFactory(em);
}