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


Java RTTEventVoAssembler.createRTTEventVoCollectionFromRTTEvent方法代码示例

本文整理汇总了Java中ims.pathways.vo.domain.RTTEventVoAssembler.createRTTEventVoCollectionFromRTTEvent方法的典型用法代码示例。如果您正苦于以下问题:Java RTTEventVoAssembler.createRTTEventVoCollectionFromRTTEvent方法的具体用法?Java RTTEventVoAssembler.createRTTEventVoCollectionFromRTTEvent怎么用?Java RTTEventVoAssembler.createRTTEventVoCollectionFromRTTEvent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ims.pathways.vo.domain.RTTEventVoAssembler的用法示例。


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

示例1: getRTTByEventAndStatus

import ims.pathways.vo.domain.RTTEventVoAssembler; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public RTTEventVoCollection getRTTByEventAndStatus(EventRefVo voRef, PreActiveActiveInactiveStatus status)
{
	DomainFactory factory = getDomainFactory();
	ArrayList markers = new ArrayList();
	ArrayList values = new ArrayList();
	
	String query = "select ere.rTTEvent from EventRTTEvent as ere where ere.event.id = :idEvent";
	markers.add("idEvent");
	values.add(voRef.getID_Event());
	
	if (status != null)
	{
		query += " and ere.status = :status";
		markers.add("status");
		values.add(getDomLookup(status));
	}
	
	List rtts = factory.find(query, markers, values);
	return RTTEventVoAssembler.createRTTEventVoCollectionFromRTTEvent(rtts); 
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:22,代码来源:EventConfigurationImpl.java

示例2: getNameByProviderSystems

import ims.pathways.vo.domain.RTTEventVoAssembler; //导入方法依赖的package包/类
public RTTEventVoCollection getNameByProviderSystems(ProviderSystemRefVo voRef)
{
	return RTTEventVoAssembler.createRTTEventVoCollectionFromRTTEvent(getDomainFactory().find("from RTTEvent as rtt where rtt.providerSystem.id = :id ", new String[]{"id"}, new Object[]{voRef.getID_ProviderSystem()}));
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:5,代码来源:EventConfigurationImpl.java

示例3: listRTTEvents

import ims.pathways.vo.domain.RTTEventVoAssembler; //导入方法依赖的package包/类
/**
* listRTTEvents
*/
public ims.pathways.vo.RTTEventVoCollection listRTTEvents(ims.pathways.vo.RTTEventVo rttEventVo)
{
	DomainFactory factory = getDomainFactory();
	StringBuffer hql = new StringBuffer(" ");
	String query = "from RTTEvent rtt ";
	ArrayList markers = new ArrayList();
	ArrayList values = new ArrayList();
	String andStr = " ";
	
	if (rttEventVo.getActionIsNotNull())
	{
		hql.append(andStr + " rtt.action = :id_action");
		markers.add("id_action");
		values.add(getDomLookup(rttEventVo.getAction()));			
		andStr = " and ";
	}
	if (rttEventVo.getNameIsNotNull())
	{
		hql.append(andStr + " rtt.upperName like :name");
		markers.add("name");
		values.add(rttEventVo.getName().toUpperCase() + "%");
		andStr = " and ";
	}
	if (rttEventVo.getPASCodeIsNotNull())
	{
		hql.append(andStr + " rtt.pASCode = :id_PASCode");
		markers.add("id_PASCode");
		values.add(rttEventVo.getPASCode());			
		andStr = " and ";
	}
	if (rttEventVo.getNationalCodeIsNotNull())
	{
		hql.append(andStr + " rtt.nationalCode = :id_NCode");
		markers.add("id_NCode");
		values.add(rttEventVo.getNationalCode());			
		andStr = " and ";
	}
	
	
	if (andStr == " and ")
		query += " where ";
	hql.append(" order by rtt.providerSystem.id asc, rtt.upperName asc");
	
	query += hql.toString();

	List rttList = factory.find(query, markers, values);
	
	return RTTEventVoAssembler.createRTTEventVoCollectionFromRTTEvent(rttList); 
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:53,代码来源:RTTEventConfigurationImpl.java


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