當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。