Java 类ims.core.vo.domain.TemplateBoLiteVoAssembler 实例源码

项目:AvoinApotti    文件:UserAssessmentNewImpl.java   
public TemplateBoLiteVo getReportTemplate(TemplateBoRefVo refTemplate)
{
    if(refTemplate == null)
        throw new CodingRuntimeException("Cannot get TemplateBoLiteVo for null TemplateBoRefVo");

    TemplateBo template = (TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, refTemplate.getID_TemplateBo());

    return TemplateBoLiteVoAssembler.create(template);
}
项目:AvoinApotti    文件:DynamicAssessmentsImpl.java   
public TemplateBoLiteVo getTemplate(TemplateBoRefVo template)
{
    if (template == null || !template.getID_TemplateBoIsNotNull())
        throw new DomainRuntimeException("Invalid template record");

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, template.getID_TemplateBo()));
}
项目:AvoinApotti    文件:GraphicAssessmentNewImpl.java   
/**
 * WDEV-13704
 * Function used to retrieve a template based on 
 */
public TemplateBoLiteVo getReportTemplate(TemplateBoRefVo templateRef)
{
    if (templateRef == null || !templateRef.getID_TemplateBoIsNotNull())
        return null;

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, templateRef.getID_TemplateBo()));
}
项目:AvoinApotti    文件:GraphicAssessmentNewImpl.java   
public TemplateBoLiteVo getReportTemplateByName(String templateName)
{   
    DomainFactory factory = getDomainFactory();
    String hql = "select template from TemplateBo as template where template.name =:tempName";
    List <?> list = factory.find(hql,new String[]{"tempName"}, new Object[]{templateName});

    if (list!=null && list.size()>0)
        return TemplateBoLiteVoAssembler.createTemplateBoLiteVoCollectionFromTemplateBo(list).get(0);

    return null;
}
项目:AvoinApotti    文件:PatientICPActionLinkedDetailsComponentImpl.java   
/**
 * Get required template report
 */
public TemplateBoLiteVo getTemplateReport(TemplateBoRefVo templateRef)
{
    if (templateRef == null || templateRef.getID_TemplateBo() == null)
        return null;

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, templateRef.getID_TemplateBo()));
}
项目:AvoinApotti    文件:PatientSpecialtyAssessmentsImpl.java   
public TemplateBoLiteVo getTemplate(TemplateBoRefVo template)
{
    if (template == null || !template.getID_TemplateBoIsNotNull())
        throw new DomainRuntimeException("Invalid template record");

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, template.getID_TemplateBo()));
}
项目:openMAXIMS    文件:UserAssessmentNewImpl.java   
public TemplateBoLiteVo getReportTemplate(TemplateBoRefVo refTemplate)
{
    if(refTemplate == null)
        throw new CodingRuntimeException("Cannot get TemplateBoLiteVo for null TemplateBoRefVo");

    TemplateBo template = (TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, refTemplate.getID_TemplateBo());

    return TemplateBoLiteVoAssembler.create(template);
}
项目:openMAXIMS    文件:DynamicAssessmentsImpl.java   
public TemplateBoLiteVo getTemplate(TemplateBoRefVo template)
{
    if (template == null || !template.getID_TemplateBoIsNotNull())
        throw new DomainRuntimeException("Invalid template record");

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, template.getID_TemplateBo()));
}
项目:openMAXIMS    文件:GraphicAssessmentNewImpl.java   
/**
 * WDEV-13704
 * Function used to retrieve a template based on 
 */
public TemplateBoLiteVo getReportTemplate(TemplateBoRefVo templateRef)
{
    if (templateRef == null || !templateRef.getID_TemplateBoIsNotNull())
        return null;

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, templateRef.getID_TemplateBo()));
}
项目:openMAXIMS    文件:GraphicAssessmentNewImpl.java   
public TemplateBoLiteVo getReportTemplateByName(String templateName)
{   
    DomainFactory factory = getDomainFactory();
    String hql = "select template from TemplateBo as template where template.name =:tempName";
    List <?> list = factory.find(hql,new String[]{"tempName"}, new Object[]{templateName});

    if (list!=null && list.size()>0)
        return TemplateBoLiteVoAssembler.createTemplateBoLiteVoCollectionFromTemplateBo(list).get(0);

    return null;
}
项目:openMAXIMS    文件:PatientICPActionLinkedDetailsComponentImpl.java   
/**
 * Get required template report
 */
public TemplateBoLiteVo getTemplateReport(TemplateBoRefVo templateRef)
{
    if (templateRef == null || templateRef.getID_TemplateBo() == null)
        return null;

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, templateRef.getID_TemplateBo()));
}
项目:openMAXIMS    文件:PatientSpecialtyAssessmentsImpl.java   
public TemplateBoLiteVo getTemplate(TemplateBoRefVo template)
{
    if (template == null || !template.getID_TemplateBoIsNotNull())
        throw new DomainRuntimeException("Invalid template record");

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, template.getID_TemplateBo()));
}
项目:openMAXIMS    文件:UserAssessmentNewImpl.java   
public TemplateBoLiteVo getReportTemplate(TemplateBoRefVo refTemplate)
{
    if(refTemplate == null)
        throw new CodingRuntimeException("Cannot get TemplateBoLiteVo for null TemplateBoRefVo");

    TemplateBo template = (TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, refTemplate.getID_TemplateBo());

    return TemplateBoLiteVoAssembler.create(template);
}
项目:openMAXIMS    文件:DynamicAssessmentsImpl.java   
public TemplateBoLiteVo getTemplate(TemplateBoRefVo template)
{
    if (template == null || !template.getID_TemplateBoIsNotNull())
        throw new DomainRuntimeException("Invalid template record");

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, template.getID_TemplateBo()));
}
项目:openMAXIMS    文件:GraphicAssessmentNewImpl.java   
/**
 * WDEV-13704
 * Function used to retrieve a template based on 
 */
public TemplateBoLiteVo getReportTemplate(TemplateBoRefVo templateRef)
{
    if (templateRef == null || !templateRef.getID_TemplateBoIsNotNull())
        return null;

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, templateRef.getID_TemplateBo()));
}
项目:openMAXIMS    文件:GraphicAssessmentNewImpl.java   
public TemplateBoLiteVo getReportTemplateByName(String templateName)
{   
    DomainFactory factory = getDomainFactory();
    String hql = "select template from TemplateBo as template where template.name =:tempName";
    List <?> list = factory.find(hql,new String[]{"tempName"}, new Object[]{templateName});

    if (list!=null && list.size()>0)
        return TemplateBoLiteVoAssembler.createTemplateBoLiteVoCollectionFromTemplateBo(list).get(0);

    return null;
}
项目:openMAXIMS    文件:PatientICPActionLinkedDetailsComponentImpl.java   
/**
 * Get required template report
 */
public TemplateBoLiteVo getTemplateReport(TemplateBoRefVo templateRef)
{
    if (templateRef == null || templateRef.getID_TemplateBo() == null)
        return null;

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, templateRef.getID_TemplateBo()));
}
项目:openMAXIMS    文件:PatientSpecialtyAssessmentsImpl.java   
public TemplateBoLiteVo getTemplate(TemplateBoRefVo template)
{
    if (template == null || !template.getID_TemplateBoIsNotNull())
        throw new DomainRuntimeException("Invalid template record");

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, template.getID_TemplateBo()));
}
项目:openmaxims-linux    文件:UserAssessmentNewImpl.java   
public TemplateBoLiteVo getReportTemplate(TemplateBoRefVo refTemplate)
{
    if(refTemplate == null)
        throw new CodingRuntimeException("Cannot get TemplateBoLiteVo for null TemplateBoRefVo");

    TemplateBo template = (TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, refTemplate.getID_TemplateBo());

    return TemplateBoLiteVoAssembler.create(template);
}
项目:openmaxims-linux    文件:DynamicAssessmentsImpl.java   
public TemplateBoLiteVo getTemplate(TemplateBoRefVo template)
{
    if (template == null || !template.getID_TemplateBoIsNotNull())
        throw new DomainRuntimeException("Invalid template record");

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, template.getID_TemplateBo()));
}
项目:openmaxims-linux    文件:GraphicAssessmentNewImpl.java   
/**
 * WDEV-13704
 * Function used to retrieve a template based on 
 */
public TemplateBoLiteVo getReportTemplate(TemplateBoRefVo templateRef)
{
    if (templateRef == null || !templateRef.getID_TemplateBoIsNotNull())
        return null;

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, templateRef.getID_TemplateBo()));
}
项目:openmaxims-linux    文件:GraphicAssessmentNewImpl.java   
public TemplateBoLiteVo getReportTemplateByName(String templateName)
{   
    DomainFactory factory = getDomainFactory();
    String hql = "select template from TemplateBo as template where template.name =:tempName";
    List <?> list = factory.find(hql,new String[]{"tempName"}, new Object[]{templateName});

    if (list!=null && list.size()>0)
        return TemplateBoLiteVoAssembler.createTemplateBoLiteVoCollectionFromTemplateBo(list).get(0);

    return null;
}
项目:openmaxims-linux    文件:PatientICPActionLinkedDetailsComponentImpl.java   
/**
 * Get required template report
 */
public TemplateBoLiteVo getTemplateReport(TemplateBoRefVo templateRef)
{
    if (templateRef == null || templateRef.getID_TemplateBo() == null)
        return null;

    return TemplateBoLiteVoAssembler.create((TemplateBo) getDomainFactory().getDomainObject(TemplateBo.class, templateRef.getID_TemplateBo()));
}