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

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

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:AvoinApotti    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openMAXIMS    文件:DMDSearchImpl.java   
/**
* Search for AMP
* 
*/
public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:openMAXIMS    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openMAXIMS    文件:DMDAdminImpl.java   
public AMPVo getAMP(String ampProductId) throws DomainInterfaceException 
{
    if(ampProductId == null)
        throw new DomainInterfaceException("Invalid AMP reference");

    AMPVoCollection ampCol = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP amp WHERE amp.productIdentifier = '" + ampProductId + "'"));
    if (ampCol != null && ampCol.size() > 0)
        return ampCol.get(0);
    else
        return null;
}
项目:openMAXIMS    文件:DMDSearchImpl.java   
/**
* Search for AMP
* 
*/
public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:openMAXIMS    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}
项目:openmaxims-linux    文件:DMDSearchImpl.java   
/**
* Search for AMP
* 
*/
public AMPVoCollection searchAMPByName(String name) throws ims.domain.exceptions.DomainInterfaceException
{
    if(name == null || name.trim().length() == 0)
        return null;

    return AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP am WHERE am.name like '" + name + "%'"));
}
项目:openmaxims-linux    文件:DMDImpl.java   
public IDMDValue[] searchAMP(IDMDValue vmp) throws DomainInterfaceException 
{
    if(vmp == null || vmp.getIDMDValueId() == null || vmp.getIDMDValueType() != DMDType.VMP)
        throw new DomainInterfaceException("Invalid VMP reference");

    AMPVoCollection result = AMPVoAssembler.createAMPVoCollectionFromAMP(getDomainFactory().find("from AMP vm WHERE vm.vMP.id = " + vmp.getIDMDValueId()));
    if(result != null)
        return result.toIDMDValueArray();
    return new IDMDValue[] {};
}