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


Java RemedialVoAssembler类代码示例

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

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

示例1: getRemedialVoByClinicalContact

import ims.therapies.vo.domain.RemedialVoAssembler; //导入依赖的package包/类
/**
* Get the current Remedial record for the Clinical Contact 
*/
public ims.therapies.vo.RemedialVo getRemedialVoByClinicalContact(ClinicalContactRefVo voClinicalContactRef)
{
	//return RemedialVoAssembler.create(Remedial.getRemedialFromClinicalContact(getDomainFactory(), voClinicalContactRef.getID_ClinicalContact()));
	//WDEV-15078
	if(voClinicalContactRef == null || voClinicalContactRef.getID_ClinicalContact()==null )
		throw new CodingRuntimeException("Can not get RemedialVo value on null ClinicalContact.");
	
	
	StringBuffer hql = new StringBuffer();
	hql.append("select remedial from Remedial as remedial ");
	hql.append("where remedial.clinicalContact.id = :clinicalId ");
	
	DomainFactory factory = getDomainFactory();
	List<?> list = factory.find(hql.toString(), new String[] {"clinicalId"}, new Object[] {voClinicalContactRef.getID_ClinicalContact()});
	
	if (list!=null && list.size()>0)
	{
		return RemedialVoAssembler.createRemedialVoCollectionFromRemedial(list).get(0);
	}
	return null;
	
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:26,代码来源:RemedialImpl.java


示例2: saveRemedialVo

import ims.therapies.vo.domain.RemedialVoAssembler; //导入依赖的package包/类
public RemedialVo saveRemedialVo(RemedialVo voRemedial) throws StaleObjectException 
{
	// Ensure the value object has been validated
	if (!voRemedial.isValidated())
		throw new DomainRuntimeException("Remedial has not been validated");
	
	DomainFactory factory = getDomainFactory();
	Remedial doRemedial = RemedialVoAssembler.extractRemedial(factory, voRemedial);

	factory.save(doRemedial);

	return RemedialVoAssembler.create(doRemedial);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:14,代码来源:RemedialImpl.java


示例3: getRemedial

import ims.therapies.vo.domain.RemedialVoAssembler; //导入依赖的package包/类
public RemedialVo getRemedial(RemedialRefVo remedialRef)
{
	if (remedialRef==null || remedialRef.getID_Remedial()==null)
	{
		throw new CodingRuntimeException("Cannot get Remedial on null Id for Remedial ");
	}
	DomainFactory factory = getDomainFactory();
	Remedial domainRemedial = (Remedial)factory.getDomainObject(Remedial.class, remedialRef.getID_Remedial());
	
	return RemedialVoAssembler.create(domainRemedial);
	
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:13,代码来源:RemedialImpl.java



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