• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java DaoConfig类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中ca.uhn.fhir.jpa.dao.DaoConfig的典型用法代码示例。如果您正苦于以下问题:Java DaoConfig类的具体用法?Java DaoConfig怎么用?Java DaoConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DaoConfig类属于ca.uhn.fhir.jpa.dao包,在下文中一共展示了DaoConfig类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: afterUnregisterEmailListener

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@After
public void afterUnregisterEmailListener() {
	ourLog.info("**** Starting @After *****");

	for (IIdType next : mySubscriptionIds) {
		ourClient.delete().resourceById(next).execute();
	}
	mySubscriptionIds.clear();

	myDaoConfig.setAllowMultipleDelete(true);
	ourLog.info("Deleting all subscriptions");
	ourClient.delete().resourceConditionalByUrl("Subscription?status=active").execute();
	ourClient.delete().resourceConditionalByUrl("Observation?code:missing=false").execute();
	ourLog.info("Done deleting all subscriptions");
	myDaoConfig.setAllowMultipleDelete(new DaoConfig().isAllowMultipleDelete());

	ourRestServer.unregisterInterceptor(ourEmailSubscriptionInterceptor);

}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:20,代码来源:EmailSubscriptionDstu3Test.java


示例2: afterUnregisterRestHookListener

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@After
public void afterUnregisterRestHookListener() {
	ourLog.info("**** Starting @After *****");

	for (IIdType next : mySubscriptionIds){
		ourClient.delete().resourceById(next).execute();
	}
	mySubscriptionIds.clear();

	myDaoConfig.setAllowMultipleDelete(true);
	ourLog.info("Deleting all subscriptions");
	ourClient.delete().resourceConditionalByUrl("Subscription?status=active").execute();
	ourClient.delete().resourceConditionalByUrl("Observation?code:missing=false").execute();
	ourLog.info("Done deleting all subscriptions");
	myDaoConfig.setAllowMultipleDelete(new DaoConfig().isAllowMultipleDelete());

	ourRestServer.unregisterInterceptor(ourRestHookSubscriptionInterceptor);

}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:20,代码来源:RestHookTestDstu3Test.java


示例3: afterUnregisterRestHookListener

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@After
public void afterUnregisterRestHookListener() {
	ourLog.info("** AFTER **");
	for (IIdType next : mySubscriptionIds) {
		ourClient.delete().resourceById(next).execute();
	}
	mySubscriptionIds.clear();

	myDaoConfig.setAllowMultipleDelete(true);
	ourLog.info("Deleting all subscriptions");
	ourClient.delete().resourceConditionalByUrl("Subscription?status=active").execute();
	ourClient.delete().resourceConditionalByUrl("Observation?code:missing=false").execute();
	ourLog.info("Done deleting all subscriptions");
	myDaoConfig.setAllowMultipleDelete(new DaoConfig().isAllowMultipleDelete());

	ourRestServer.unregisterInterceptor(ourRestHookSubscriptionInterceptor);
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:18,代码来源:RestHookTestDstu2Test.java


示例4: afterUnregisterRestHookListener

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@After
public void afterUnregisterRestHookListener() {
	for (IIdType next : mySubscriptionIds) {
		myClient.delete().resourceById(next).execute();
	}
	mySubscriptionIds.clear();

	myDaoConfig.setAllowMultipleDelete(true);
	ourLog.info("Deleting all subscriptions");
	myClient.delete().resourceConditionalByUrl("Subscription?status=active").execute();
	myClient.delete().resourceConditionalByUrl("Observation?code:missing=false").execute();
	ourLog.info("Done deleting all subscriptions");
	myDaoConfig.setAllowMultipleDelete(new DaoConfig().isAllowMultipleDelete());

	ourRestServer.unregisterInterceptor(getRestHookSubscriptionInterceptor());
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:17,代码来源:RestHookWithEventDefinitionR4Test.java


示例5: afterUnregisterRestHookListener

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@After
public void afterUnregisterRestHookListener() {
	for (IIdType next : mySubscriptionIds) {
		IIdType nextId = next.toUnqualifiedVersionless();
		ourLog.info("Deleting: {}", nextId);
		myClient.delete().resourceById(nextId).execute();
	}
	mySubscriptionIds.clear();

	myDaoConfig.setAllowMultipleDelete(true);
	ourLog.info("Deleting all subscriptions");
	myClient.delete().resourceConditionalByUrl("Subscription?status=active").execute();
	myClient.delete().resourceConditionalByUrl("Observation?code:missing=false").execute();
	ourLog.info("Done deleting all subscriptions");
	myDaoConfig.setAllowMultipleDelete(new DaoConfig().isAllowMultipleDelete());

	ourRestServer.unregisterInterceptor(getRestHookSubscriptionInterceptor());
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:19,代码来源:RestHookTestR4Test.java


示例6: testUpdateReusesIndexes

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@Test
public void testUpdateReusesIndexes() {
	myDaoConfig.setIndexMissingFields(DaoConfig.IndexEnabledEnum.DISABLED);

	QueryCountHolder.clear();

	Patient pt = new Patient();
	pt.setActive(true);
	pt.addName().setFamily("FAMILY1").addGiven("GIVEN1A").addGiven("GIVEN1B");
	IIdType id = myPatientDao.create(pt).getId().toUnqualifiedVersionless();

	ourLog.info("Now have {} deleted", QueryCountHolder.getGrandTotal().getDelete());
	ourLog.info("Now have {} inserts", QueryCountHolder.getGrandTotal().getInsert());
	QueryCountHolder.clear();

	pt.setId(id);
	pt.getNameFirstRep().addGiven("GIVEN1C");
	myPatientDao.update(pt);

	ourLog.info("Now have {} deleted", QueryCountHolder.getGrandTotal().getDelete());
	ourLog.info("Now have {} inserts", QueryCountHolder.getGrandTotal().getInsert());
	assertEquals(0, QueryCountHolder.getGrandTotal().getDelete());
	assertEquals(4, QueryCountHolder.getGrandTotal().getInsert());
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:25,代码来源:FhirResourceDaoR4UpdateTest.java


示例7: after

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@Override
@After
public void after() throws Exception {
	super.after();

	myDaoConfig.setAllowMultipleDelete(new DaoConfig().isAllowMultipleDelete());
	myDaoConfig.setAllowExternalReferences(new DaoConfig().isAllowExternalReferences());
	myDaoConfig.setReuseCachedSearchResultsForMillis(new DaoConfig().getReuseCachedSearchResultsForMillis());
	myDaoConfig.setCountSearchResultsUpTo(new DaoConfig().getCountSearchResultsUpTo());

	mySearchCoordinatorSvcRaw.setLoadingThrottleForUnitTests(null);
	mySearchCoordinatorSvcRaw.setSyncSizeForUnitTests(SearchCoordinatorSvcImpl.DEFAULT_SYNC_SIZE);
	mySearchCoordinatorSvcRaw.setNeverUseLocalSearchForUnitTests(false);
	mySearchCoordinatorSvcRaw.cancelAllActiveSearches();

	myClient.unregisterInterceptor(myCapturingInterceptor);
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:18,代码来源:ResourceProviderR4Test.java


示例8: daoConfig

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
/**
 * Configure FHIR properties around the the JPA server via this bean
 */
@Bean
public DaoConfig daoConfig() {
	DaoConfig retVal = new DaoConfig();
	retVal.setSubscriptionEnabled(true);
	retVal.setSubscriptionPollDelay(5000);
	retVal.setSubscriptionPurgeInactiveAfterMillis(DateUtils.MILLIS_PER_HOUR);
	retVal.setAllowMultipleDelete(true);
	return retVal;	
}
 
开发者ID:Discovery-Research-Network-SCCM,项目名称:FHIR-CQL-ODM-service,代码行数:13,代码来源:FhirServerTestConfigDstu3.java


示例9: daoConfig

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
/**
 * Configure FHIR properties around the the JPA server via this bean
 */
@Bean()
public DaoConfig daoConfig() {
	DaoConfig retVal = new DaoConfig();
	retVal.setSubscriptionEnabled(true);
	retVal.setSubscriptionPollDelay(5000);
	retVal.setSubscriptionPurgeInactiveAfterMillis(DateUtils.MILLIS_PER_HOUR);
	retVal.setAllowMultipleDelete(true);
	return retVal;
}
 
开发者ID:gerard-bisama,项目名称:DHIS2-fhir-lab-app,代码行数:13,代码来源:FhirServerConfigDstu3.java


示例10: daoConfig

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
/**
 * Configure FHIR properties around the the JPA server via this bean
 */
@Bean()
public DaoConfig daoConfig() {
    DaoConfig retVal = new DaoConfig();
    retVal.setSubscriptionEnabled(true);
    retVal.setSubscriptionPollDelay(5000);
    retVal.setSubscriptionPurgeInactiveAfterMillis(DateUtils.MILLIS_PER_HOUR);
    retVal.setAllowMultipleDelete(true);
    return retVal;
}
 
开发者ID:daimor,项目名称:isc-hapi-fhir-jpaserver,代码行数:13,代码来源:FhirServerConfig.java


示例11: daoConfig

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@Bean()
    public DaoConfig daoConfig() {
        DaoConfig retVal = new DaoConfig();
//        retVal.setSubscriptionEnabled(true);
//        retVal.setSubscriptionPollDelay(5000);
//        retVal.setSubscriptionPurgeInactiveAfterMillis(DateUtils.MILLIS_PER_HOUR);
        retVal.setAllowMultipleDelete(true);
        return retVal;
    }
 
开发者ID:DBCG,项目名称:cqf-ruler,代码行数:10,代码来源:FhirServerConfigDstu3.java


示例12: daoConfig

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
/**
 * Configure FHIR properties around the the JPA server via this bean
 */
@Bean()
public DaoConfig daoConfig() {
	DaoConfig retVal = new DaoConfig();
	retVal.setAllowMultipleDelete(true);
	return retVal;
}
 
开发者ID:furore-fhir,项目名称:fhirstarters,代码行数:10,代码来源:FhirServerConfigDstu3.java


示例13: getOptions

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@Override
public Options getOptions() {
	Options options = new Options();
	addFhirVersionOption(options);
	options.addOption(OPTION_P, "port", true, "The port to listen on (default is " + DEFAULT_PORT + ")");
	options.addOption(null, OPTION_LOWMEM, false, "If this flag is set, the server will operate in low memory mode (some features disabled)");
	options.addOption(null, OPTION_ALLOW_EXTERNAL_REFS, false, "If this flag is set, the server will allow resources to be persisted contaning external resource references");
	options.addOption(null, OPTION_DISABLE_REFERENTIAL_INTEGRITY, false, "If this flag is set, the server will not enforce referential integrity");

	Long defaultReuseSearchResults = DaoConfig.DEFAULT_REUSE_CACHED_SEARCH_RESULTS_FOR_MILLIS;
	String defaultReuseSearchResultsStr = defaultReuseSearchResults == null ? "off" : String.valueOf(defaultReuseSearchResults);
	options.addOption(null, OPTION_REUSE_SEARCH_RESULTS_MILLIS, true, "The time in milliseconds within which the same results will be returned for multiple identical searches, or \"off\" (default is " + defaultReuseSearchResultsStr + ")");
	return options;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:15,代码来源:RunServerCommand.java


示例14: withJpaServer

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@Test
public void withJpaServer() {
    load(
            Arrays.array(
                    EmbeddedDataSourceConfiguration.class,
                    HibernateJpaAutoConfiguration.class,
                    PropertyPlaceholderAutoConfiguration.class,
                    FhirAutoConfiguration.class),
            "hapi.fhir.version:DSTU3",
            "spring.jpa.properties.hibernate.search.default.indexBase:target/lucenefiles",
 		 "spring.jpa.properties.hibernate.search.model_mapping:ca.uhn.fhir.jpa.search.LuceneSearchMappingFactory");
    assertThat(this.context.getBeansOfType(DaoConfig.class)).hasSize(1);
    assertThat(this.context.getBeansOfType(Dstu3.class)).hasSize(1);
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:15,代码来源:FhirAutoConfigurationTest.java


示例15: daoConfig

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@Bean()
public DaoConfig daoConfig() {
	DaoConfig retVal = new DaoConfig();
	retVal.setSubscriptionEnabled(true);
	retVal.setSubscriptionPollDelay(5000);
	retVal.setSubscriptionPurgeInactiveAfterMillis(DateUtils.MILLIS_PER_HOUR);
	retVal.setAllowMultipleDelete(true);
	retVal.setAllowInlineMatchUrlReferences(true);
	retVal.setAllowExternalReferences(true);
	retVal.getTreatBaseUrlsAsLocal().add("http://fhirtest.uhn.ca/testDataLibraryDstu2");
	retVal.getTreatBaseUrlsAsLocal().add("https://fhirtest.uhn.ca/testDataLibraryDstu2");
	retVal.setIndexMissingFields(DaoConfig.IndexEnabledEnum.ENABLED);
	retVal.setCountSearchResultsUpTo(TestR4Config.COUNT_SEARCH_RESULTS_UP_TO);
	return retVal;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:16,代码来源:TdlDstu2Config.java


示例16: daoConfig

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@Bean()
public DaoConfig daoConfig() {
	DaoConfig retVal = new DaoConfig();
	retVal.setSubscriptionEnabled(true);
	retVal.setSubscriptionPollDelay(5000);
	retVal.setSubscriptionPurgeInactiveAfterMillis(DateUtils.MILLIS_PER_HOUR);
	retVal.setAllowMultipleDelete(true);
	retVal.setAllowInlineMatchUrlReferences(true);
	retVal.setAllowExternalReferences(true);
	retVal.getTreatBaseUrlsAsLocal().add("http://fhirtest.uhn.ca/baseDstu2");
	retVal.getTreatBaseUrlsAsLocal().add("https://fhirtest.uhn.ca/baseDstu2");
	retVal.setCountSearchResultsUpTo(TestR4Config.COUNT_SEARCH_RESULTS_UP_TO);
	retVal.setIndexMissingFields(DaoConfig.IndexEnabledEnum.ENABLED);
	return retVal;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:16,代码来源:TestDstu2Config.java


示例17: daoConfig

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@Bean()
public DaoConfig daoConfig() {
	DaoConfig retVal = new DaoConfig();
	retVal.setSubscriptionEnabled(true);
	retVal.setSubscriptionPollDelay(5000);
	retVal.setSubscriptionPurgeInactiveAfterMillis(DateUtils.MILLIS_PER_HOUR);
	retVal.setAllowMultipleDelete(true);
	retVal.setAllowInlineMatchUrlReferences(true);
	retVal.setAllowExternalReferences(true);
	retVal.getTreatBaseUrlsAsLocal().add("http://fhirtest.uhn.ca/baseR4");
	retVal.getTreatBaseUrlsAsLocal().add("https://fhirtest.uhn.ca/baseR4");
	retVal.setIndexMissingFields(DaoConfig.IndexEnabledEnum.ENABLED);
	retVal.setCountSearchResultsUpTo(TestR4Config.COUNT_SEARCH_RESULTS_UP_TO);
	return retVal;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:16,代码来源:TestR4Config.java


示例18: daoConfig

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@Bean()
public DaoConfig daoConfig() {
	DaoConfig retVal = new DaoConfig();
	retVal.setSubscriptionEnabled(true);
	retVal.setSubscriptionPollDelay(5000);
	retVal.setSubscriptionPurgeInactiveAfterMillis(DateUtils.MILLIS_PER_HOUR);
	retVal.setAllowMultipleDelete(true);
	retVal.setAllowInlineMatchUrlReferences(true);
	retVal.setAllowExternalReferences(true);
	retVal.getTreatBaseUrlsAsLocal().add("http://fhirtest.uhn.ca/testDataLibraryStu3");
	retVal.getTreatBaseUrlsAsLocal().add("https://fhirtest.uhn.ca/testDataLibraryStu3");
	retVal.setIndexMissingFields(DaoConfig.IndexEnabledEnum.ENABLED);
	retVal.setCountSearchResultsUpTo(TestR4Config.COUNT_SEARCH_RESULTS_UP_TO);
	return retVal;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:16,代码来源:TdlDstu3Config.java


示例19: daoConfig

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
@Bean()
public DaoConfig daoConfig() {
	DaoConfig retVal = new DaoConfig();
	retVal.setSubscriptionEnabled(true);
	retVal.setSubscriptionPollDelay(5000);
	retVal.setSubscriptionPurgeInactiveAfterMillis(DateUtils.MILLIS_PER_HOUR);
	retVal.setAllowMultipleDelete(true);
	retVal.setAllowInlineMatchUrlReferences(true);
	retVal.setAllowExternalReferences(true);
	retVal.getTreatBaseUrlsAsLocal().add("http://fhirtest.uhn.ca/baseDstu3");
	retVal.getTreatBaseUrlsAsLocal().add("https://fhirtest.uhn.ca/baseDstu3");
	retVal.setCountSearchResultsUpTo(TestR4Config.COUNT_SEARCH_RESULTS_UP_TO);
	retVal.setIndexMissingFields(DaoConfig.IndexEnabledEnum.ENABLED);
	return retVal;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:16,代码来源:TestDstu3Config.java


示例20: JpaConformanceProviderDstu3

import ca.uhn.fhir.jpa.dao.DaoConfig; //导入依赖的package包/类
/**
 * Constructor
 */
public JpaConformanceProviderDstu3(RestfulServer theRestfulServer, IFhirSystemDao<Bundle, Meta> theSystemDao, DaoConfig theDaoConfig) {
	super(theRestfulServer);
	myRestfulServer = theRestfulServer;
	mySystemDao = theSystemDao;
	myDaoConfig = theDaoConfig;
	super.setCache(false);
	setIncludeResourceCounts(true);
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:12,代码来源:JpaConformanceProviderDstu3.java



注:本文中的ca.uhn.fhir.jpa.dao.DaoConfig类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ResponseUtil类代码示例发布时间:2022-05-22
下一篇:
Java CacheDirectiveStats类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap