本文整理汇总了Java中ims.correspondence.vo.lookups.AssociationSpecifier类的典型用法代码示例。如果您正苦于以下问题:Java AssociationSpecifier类的具体用法?Java AssociationSpecifier怎么用?Java AssociationSpecifier使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AssociationSpecifier类属于ims.correspondence.vo.lookups包,在下文中一共展示了AssociationSpecifier类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: listTemplateAssociation
import ims.correspondence.vo.lookups.AssociationSpecifier; //导入依赖的package包/类
/**
* @param templateID
* @param ts
* @return
*/
private TemplateAssociationsVoCollection listTemplateAssociation(Integer templateID, AssociationSpecifier ts)
{
DomainFactory factory = getDomainFactory();
String hql = " from TemplateAssociations ta";
String andStr = " ";
StringBuffer condStr = new StringBuffer();
ArrayList markers = new ArrayList();
ArrayList values = new ArrayList();
markers.add("templateID");
values.add(templateID);
if (ts != null)
{
condStr.append(andStr + " ta.templateIdentifier = :templateID and ta.associationSpecifier = :templateType");
markers.add("templateType");
values.add(getDomLookup(ts));
}
else
condStr.append(andStr + " ta.templateIdentifier = :templateID order by ta.associationSpecifier");
hql += " where " + condStr.toString();
List lstTemplateClinics = factory.find(hql, markers, values);
if (lstTemplateClinics.size() > 0 )
return TemplateAssociationsVoAssembler.createTemplateAssociationsVoCollectionFromTemplateAssociations(lstTemplateClinics);
else
return new TemplateAssociationsVoCollection();
}
示例2: listConsultantsForTemplate
import ims.correspondence.vo.lookups.AssociationSpecifier; //导入依赖的package包/类
public TemplateAssociationsVoCollection listConsultantsForTemplate(Integer templateID)
{
return listTemplateAssociation(templateID, AssociationSpecifier.CONSULTANT);
}
示例3: listClinicsForTemplate
import ims.correspondence.vo.lookups.AssociationSpecifier; //导入依赖的package包/类
public TemplateAssociationsVoCollection listClinicsForTemplate(Integer templateID)
{
return listTemplateAssociation(templateID, AssociationSpecifier.CLINIC);
}
示例4: listServicesForTemplate
import ims.correspondence.vo.lookups.AssociationSpecifier; //导入依赖的package包/类
public TemplateAssociationsVoCollection listServicesForTemplate(Integer templateID)
{
return listTemplateAssociation(templateID, AssociationSpecifier.SPECIALTY);
}
示例5: listAssociationsForTemplate
import ims.correspondence.vo.lookups.AssociationSpecifier; //导入依赖的package包/类
public TemplateAssociationsVoCollection listAssociationsForTemplate(Integer nTemplateID, AssociationSpecifier associationSpecifier)
{
return listTemplateAssociation(nTemplateID, associationSpecifier);
}