当前位置: 首页>>代码示例>>Java>>正文


Java RepositoryFactorySupport类代码示例

本文整理汇总了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;
}
 
开发者ID:yiduwangkai,项目名称:dubbox-solr,代码行数:9,代码来源:SolrRepositoryFactoryBean.java

示例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;
}
 
开发者ID:ramaava,项目名称:spring-data-solr,代码行数:9,代码来源:SolrRepositoryFactoryBean.java

示例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);
}
 
开发者ID:snowdrop,项目名称:spring-data-snowdrop,代码行数:11,代码来源:JpaWithSnowdropRepositoryFactoryBean.java

示例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");
            }
        }
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:28,代码来源:IgniteRepositoryFactoryBean.java

示例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);
}
 
开发者ID:GeeQuery,项目名称:ef-orm,代码行数:11,代码来源:GqRepositoryFactoryBean.java

示例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);
}
 
开发者ID:michaellavelle,项目名称:spring-data-dynamodb,代码行数:9,代码来源:DynamoDBRepositoryFactoryBean.java

示例8: doCreateRepositoryFactory

import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
    return new JdbcRepositoryFactory(datasource);
}
 
开发者ID:rubasace,项目名称:spring-data-jdbc,代码行数:5,代码来源:JdbcRepositoryFactoryBean.java

示例9: createRepositoryFactory

import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
	return new DefaultRepositoryFactory(entityManager);
}
 
开发者ID:onsoul,项目名称:os,代码行数:5,代码来源:DefaultRepositoryFactoryBean.java

示例10: createRepositoryFactory

import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected final RepositoryFactorySupport createRepositoryFactory() {
    return getFactoryInstance(applicationContext);
}
 
开发者ID:Microsoft,项目名称:spring-data-documentdb,代码行数:5,代码来源:DocumentDbRepositoryFactoryBean.java

示例11: getFactoryInstance

import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
protected RepositoryFactorySupport getFactoryInstance(ApplicationContext applicationContext) {
    return new DocumentDbRepositoryFactory(operations, applicationContext);
}
 
开发者ID:Microsoft,项目名称:spring-data-documentdb,代码行数:4,代码来源:DocumentDbRepositoryFactoryBean.java

示例12: createRepositoryFactory

import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
	return new BaseRepositoryFactory(entityManager);
}
 
开发者ID:geeker-lait,项目名称:tasfe-framework,代码行数:5,代码来源:BaseRepositoryFactoryBean.java

示例13: createRepositoryFactory

import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
  return new SpannerRepositoryFactory(operations);
}
 
开发者ID:saturnism,项目名称:spring-data-spanner,代码行数:5,代码来源:SpannerRepositoryFactoryBean.java

示例14: createRepositoryFactory

import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
    return new SnowdropRepositoryFactory(snowdropOperations);
}
 
开发者ID:snowdrop,项目名称:spring-data-snowdrop,代码行数:5,代码来源:SnowdropRepositoryFactoryBean.java

示例15: createRepositoryFactory

import org.springframework.data.repository.core.support.RepositoryFactorySupport; //导入依赖的package包/类
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager em) {
    return new BaseRepositoryFactory(em);
}
 
开发者ID:realxujiang,项目名称:itweet-boot,代码行数:5,代码来源:BaseRepositoryFactoryBean.java


注:本文中的org.springframework.data.repository.core.support.RepositoryFactorySupport类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。