Java 类ims.clinical.vo.domain.VTMVoAssembler 实例源码

项目:AvoinApotti    文件:DMDSearchImpl.java   
/**
* Search for VTM
*/  
public VTMVoCollection searchVTMByName(String name, Specialty specialty) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    DomainFactory domainFactory = getDomainFactory();

    if(specialty == null)
        return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'"));

    String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (vtm.name like '" + name + "%' and hl.specialty.id = " + specialty.getID() + ")";
    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql));        
}
项目:AvoinApotti    文件:DMDImpl.java   
public VTMVo getVTM(VTMRefVo vtm) throws DomainInterfaceException 
{
    if(vtm == null || vtm.getBoId() == null)
        throw new DomainInterfaceException("Invalid VTM reference");

    return VTMVoAssembler.create((VTM)getDomainFactory().getDomainObject(vtm));
}
项目:openMAXIMS    文件:DMDVTMSelectionImpl.java   
/**
* Search for VTM
*/
public ims.clinical.vo.VTMVoCollection searchVTMByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    DomainFactory domainFactory = getDomainFactory();

    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'"));           
}
项目:openMAXIMS    文件:DMDSearchImpl.java   
/**
* Search for VTM
*/  
public VTMVoCollection searchVTMByName(String name, Specialty specialty) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    DomainFactory domainFactory = getDomainFactory();

    if(specialty == null)
        return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'"));

    String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (vtm.name like '" + name + "%' and hl.specialty.id = " + specialty.getID() + ")";
    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql));        
}
项目:openMAXIMS    文件:DMDImpl.java   
public VTMVo getVTM(VTMRefVo vtm) throws DomainInterfaceException 
{
    if(vtm == null || vtm.getBoId() == null)
        throw new DomainInterfaceException("Invalid VTM reference");

    return VTMVoAssembler.create((VTM)getDomainFactory().getDomainObject(vtm));
}
项目:openMAXIMS    文件:DMDAdminImpl.java   
public VTMVo getVTM(String vtmId) throws DomainInterfaceException 
{
    if(vtmId == null)
        throw new DomainInterfaceException("Invalid VTM reference");

    VTMVoCollection vtmCol = VTMVoAssembler.createVTMVoCollectionFromVTM(getDomainFactory().find("from VTM vtm WHERE vtm.moietyIdentifier = '" + vtmId + "'"));
    if (vtmCol != null && vtmCol.size() > 0)
        return vtmCol.get(0);
    else
        return null;
}
项目:openMAXIMS    文件:DMDAdminImpl.java   
public VTMVoCollection listVTMHotlist(Specialty specialty) throws DomainInterfaceException 
{
    if(specialty == null)
        throw new DomainInterfaceException("Invalid specialty");

    DomainFactory domainFactory = getDomainFactory();

    String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (hl.specialty.id = " + specialty.getID() + ")";
    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql));
}
项目:openMAXIMS    文件:DMDSearchImpl.java   
/**
* Search for VTM
*/  
public VTMVoCollection searchVTMByName(String name, Specialty specialty) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    DomainFactory domainFactory = getDomainFactory();

    if(specialty == null)
        return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'"));

    String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (vtm.name like '" + name + "%' and hl.specialty.id = " + specialty.getID() + ")";
    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql));        
}
项目:openMAXIMS    文件:DMDImpl.java   
public VTMVo getVTM(VTMRefVo vtm) throws DomainInterfaceException 
{
    if(vtm == null || vtm.getBoId() == null)
        throw new DomainInterfaceException("Invalid VTM reference");

    return VTMVoAssembler.create((VTM)getDomainFactory().getDomainObject(vtm));
}
项目:openmaxims-linux    文件:DMDSearchImpl.java   
/**
* Search for VTM
*/  
public VTMVoCollection searchVTMByName(String name, Specialty specialty) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    DomainFactory domainFactory = getDomainFactory();

    if(specialty == null)
        return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find("from VTM vt WHERE vt.name like '" + name + "%'"));

    String hql = "select hli.vTM from VTMHotlist as hl join hl.hotListItem as hli left join hli.vTM as vtm where (vtm.name like '" + name + "%' and hl.specialty.id = " + specialty.getID() + ")";
    return VTMVoAssembler.createVTMVoCollectionFromVTM(domainFactory.find(hql));        
}
项目:openmaxims-linux    文件:DMDImpl.java   
public VTMVo getVTM(VTMRefVo vtm) throws DomainInterfaceException 
{
    if(vtm == null || vtm.getBoId() == null)
        throw new DomainInterfaceException("Invalid VTM reference");

    return VTMVoAssembler.create((VTM)getDomainFactory().getDomainObject(vtm));
}