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

项目:AvoinApotti    文件:DMDSearchImpl.java   
/**
* Search for VMP
*/
public VMPVoCollection searchVMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return VMPVoAssembler.createVMPVoCollectionFromVMP(getDomainFactory().find("from VMP vm WHERE vm.name like '" + name + "%'"));
}
项目:AvoinApotti    文件:DMDImpl.java   
public VMPVo getVMP(VMPRefVo vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getBoId() == null)
        throw new DomainInterfaceException("Invalid VMP reference");

    return VMPVoAssembler.create((VMP)getDomainFactory().getDomainObject(vmp));
}
项目:AvoinApotti    文件:DMDImpl.java   
public IDMDValue[] searchVMP(IDMDValue vtm) throws DomainInterfaceException 
{
    if(vtm == null || vtm.getIDMDValueId() == null || vtm.getIDMDValueType() != DMDType.VTM)
        throw new DomainInterfaceException("Invalid VMP reference");

    VMPVoCollection result = VMPVoAssembler.createVMPVoCollectionFromVMP(getDomainFactory().find("from VMP vm WHERE vm.vTM.id = " + vtm.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openMAXIMS    文件:DMDSearchImpl.java   
/**
* Search for VMP
*/
public VMPVoCollection searchVMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return VMPVoAssembler.createVMPVoCollectionFromVMP(getDomainFactory().find("from VMP vm WHERE vm.name like '" + name + "%'"));
}
项目:openMAXIMS    文件:DMDImpl.java   
public VMPVo getVMP(VMPRefVo vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getBoId() == null)
        throw new DomainInterfaceException("Invalid VMP reference");

    return VMPVoAssembler.create((VMP)getDomainFactory().getDomainObject(vmp));
}
项目:openMAXIMS    文件:DMDImpl.java   
public IDMDValue[] searchVMP(IDMDValue vtm) throws DomainInterfaceException 
{
    if(vtm == null || vtm.getIDMDValueId() == null || vtm.getIDMDValueType() != DMDType.VTM)
        throw new DomainInterfaceException("Invalid VMP reference");

    VMPVoCollection result = VMPVoAssembler.createVMPVoCollectionFromVMP(getDomainFactory().find("from VMP vm WHERE vm.vTM.id = " + vtm.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openMAXIMS    文件:DMDAdminImpl.java   
public VMPVo getVMP(String vmpId) throws DomainInterfaceException
{
    if(vmpId == null)
        throw new DomainInterfaceException("Invalid VMP reference");

    VMPVoCollection vmpCol = VMPVoAssembler.createVMPVoCollectionFromVMP(getDomainFactory().find("from VMP vm WHERE vm.productIdentifier = '" + vmpId + "'"));
    if (vmpCol != null && vmpCol.size()>0)
        return vmpCol.get(0);
    else
        return null;
}
项目:openMAXIMS    文件:DMDSearchImpl.java   
/**
* Search for VMP
*/
public VMPVoCollection searchVMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return VMPVoAssembler.createVMPVoCollectionFromVMP(getDomainFactory().find("from VMP vm WHERE vm.name like '" + name + "%'"));
}
项目:openMAXIMS    文件:DMDImpl.java   
public VMPVo getVMP(VMPRefVo vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getBoId() == null)
        throw new DomainInterfaceException("Invalid VMP reference");

    return VMPVoAssembler.create((VMP)getDomainFactory().getDomainObject(vmp));
}
项目:openMAXIMS    文件:DMDImpl.java   
public IDMDValue[] searchVMP(IDMDValue vtm) throws DomainInterfaceException 
{
    if(vtm == null || vtm.getIDMDValueId() == null || vtm.getIDMDValueType() != DMDType.VTM)
        throw new DomainInterfaceException("Invalid VMP reference");

    VMPVoCollection result = VMPVoAssembler.createVMPVoCollectionFromVMP(getDomainFactory().find("from VMP vm WHERE vm.vTM.id = " + vtm.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openmaxims-linux    文件:DMDSearchImpl.java   
/**
* Search for VMP
*/
public VMPVoCollection searchVMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return VMPVoAssembler.createVMPVoCollectionFromVMP(getDomainFactory().find("from VMP vm WHERE vm.name like '" + name + "%'"));
}
项目:openmaxims-linux    文件:DMDImpl.java   
public VMPVo getVMP(VMPRefVo vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getBoId() == null)
        throw new DomainInterfaceException("Invalid VMP reference");

    return VMPVoAssembler.create((VMP)getDomainFactory().getDomainObject(vmp));
}
项目:openmaxims-linux    文件:DMDImpl.java   
public IDMDValue[] searchVMP(IDMDValue vtm) throws DomainInterfaceException 
{
    if(vtm == null || vtm.getIDMDValueId() == null || vtm.getIDMDValueType() != DMDType.VTM)
        throw new DomainInterfaceException("Invalid VMP reference");

    VMPVoCollection result = VMPVoAssembler.createVMPVoCollectionFromVMP(getDomainFactory().find("from VMP vm WHERE vm.vTM.id = " + vtm.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}