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

项目:AvoinApotti    文件:DynamicAssessmentsImpl.java   
private Patient_GraphicAssessmentVo assemblePatientGraphicAssessment(PatientGraphicAssessment doPatientGraphicAssessment) 
{
    if(doPatientGraphicAssessment == null)
        return null;

    Patient_GraphicAssessmentVo patientGraphicAssessment = new Patient_GraphicAssessmentVo(doPatientGraphicAssessment.getId(), doPatientGraphicAssessment.getVersion());

    patientGraphicAssessment.setIsRIE(doPatientGraphicAssessment.getIsRIE());
    patientGraphicAssessment.setGraphicImage(DrawingGraphicImageVoAssembler.create(doPatientGraphicAssessment.getGraphicImage()));

    if(doPatientGraphicAssessment.getPatientGraphicFinding() != null)
    {
        patientGraphicAssessment.setPatientGraphicFinding(new Patient_GraphicAssessmentFindingVoCollection());

        for (Object next : doPatientGraphicAssessment.getPatientGraphicFinding())
        {
            if(next instanceof PatientGraphicAssessmentFinding)
            {
                patientGraphicAssessment.getPatientGraphicFinding().add(assemblePatientGraphicAssessmentFinding((PatientGraphicAssessmentFinding) next));
            }
        }
    }

    return patientGraphicAssessment;
}
项目:openMAXIMS    文件:DynamicAssessmentsImpl.java   
private Patient_GraphicAssessmentVo assemblePatientGraphicAssessment(PatientGraphicAssessment doPatientGraphicAssessment) 
{
    if(doPatientGraphicAssessment == null)
        return null;

    Patient_GraphicAssessmentVo patientGraphicAssessment = new Patient_GraphicAssessmentVo(doPatientGraphicAssessment.getId(), doPatientGraphicAssessment.getVersion());

    patientGraphicAssessment.setIsRIE(doPatientGraphicAssessment.getIsRIE());
    patientGraphicAssessment.setGraphicImage(DrawingGraphicImageVoAssembler.create(doPatientGraphicAssessment.getGraphicImage()));

    if(doPatientGraphicAssessment.getPatientGraphicFinding() != null)
    {
        patientGraphicAssessment.setPatientGraphicFinding(new Patient_GraphicAssessmentFindingVoCollection());

        for (Object next : doPatientGraphicAssessment.getPatientGraphicFinding())
        {
            if(next instanceof PatientGraphicAssessmentFinding)
            {
                patientGraphicAssessment.getPatientGraphicFinding().add(assemblePatientGraphicAssessmentFinding((PatientGraphicAssessmentFinding) next));
            }
        }
    }

    return patientGraphicAssessment;
}
项目:openMAXIMS    文件:DynamicAssessmentsImpl.java   
private Patient_GraphicAssessmentVo assemblePatientGraphicAssessment(PatientGraphicAssessment doPatientGraphicAssessment) 
{
    if(doPatientGraphicAssessment == null)
        return null;

    Patient_GraphicAssessmentVo patientGraphicAssessment = new Patient_GraphicAssessmentVo(doPatientGraphicAssessment.getId(), doPatientGraphicAssessment.getVersion());

    patientGraphicAssessment.setIsRIE(doPatientGraphicAssessment.getIsRIE());
    patientGraphicAssessment.setGraphicImage(DrawingGraphicImageVoAssembler.create(doPatientGraphicAssessment.getGraphicImage()));

    if(doPatientGraphicAssessment.getPatientGraphicFinding() != null)
    {
        patientGraphicAssessment.setPatientGraphicFinding(new Patient_GraphicAssessmentFindingVoCollection());

        for (Object next : doPatientGraphicAssessment.getPatientGraphicFinding())
        {
            if(next instanceof PatientGraphicAssessmentFinding)
            {
                patientGraphicAssessment.getPatientGraphicFinding().add(assemblePatientGraphicAssessmentFinding((PatientGraphicAssessmentFinding) next));
            }
        }
    }

    return patientGraphicAssessment;
}
项目:openmaxims-linux    文件:DynamicAssessmentsImpl.java   
private Patient_GraphicAssessmentVo assemblePatientGraphicAssessment(PatientGraphicAssessment doPatientGraphicAssessment) 
{
    if(doPatientGraphicAssessment == null)
        return null;

    Patient_GraphicAssessmentVo patientGraphicAssessment = new Patient_GraphicAssessmentVo(doPatientGraphicAssessment.getId(), doPatientGraphicAssessment.getVersion());

    patientGraphicAssessment.setIsRIE(doPatientGraphicAssessment.getIsRIE());
    patientGraphicAssessment.setGraphicImage(DrawingGraphicImageVoAssembler.create(doPatientGraphicAssessment.getGraphicImage()));

    if(doPatientGraphicAssessment.getPatientGraphicFinding() != null)
    {
        patientGraphicAssessment.setPatientGraphicFinding(new Patient_GraphicAssessmentFindingVoCollection());

        for (Object next : doPatientGraphicAssessment.getPatientGraphicFinding())
        {
            if(next instanceof PatientGraphicAssessmentFinding)
            {
                patientGraphicAssessment.getPatientGraphicFinding().add(assemblePatientGraphicAssessmentFinding((PatientGraphicAssessmentFinding) next));
            }
        }
    }

    return patientGraphicAssessment;
}
项目:AvoinApotti    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVo saveGraphicImage(DrawingGraphicImageVo voGraphicImage) throws StaleObjectException
{
    if(voGraphicImage == null)
        throw new RuntimeException("Cannot save null value for DrawingGraphicImageVo");
    if(!voGraphicImage.isValidated())
        throw new CodingRuntimeException("DrawingGraphicImageVo has not been validated");

    DomainFactory factory = getDomainFactory();
    DrawingGraphicImage doGraphicImage = DrawingGraphicImageVoAssembler.extractDrawingGraphicImage(factory, voGraphicImage);
    factory.save(doGraphicImage);

    return DrawingGraphicImageVoAssembler.create(doGraphicImage);
}
项目:AvoinApotti    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVoCollection listGraphicImages(String name, ims.core.vo.lookups.PreActiveActiveInactiveStatus status)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from DrawingGraphicImage dgi");
    java.util.ArrayList markers = new java.util.ArrayList();        
    java.util.ArrayList values  = new java.util.ArrayList();
    String clause = " where ";

    if(name != null && !name.equals(""))
    {
        hql.append(clause);
        hql.append("upper(dgi.imageName) like :imgName");
        markers.add("imgName");
        values.add(name.toUpperCase());
        clause = " and "; 
    }

    if(status != null)
    {
        hql.append(clause);
        hql.append("dgi.imageStatus = :imgStat");
        markers.add("imgStat");
        values.add(getDomLookup(status));
        clause = " and ";
    }

    List graphicImagesList = factory.find(hql.toString(), markers, values);
    return DrawingGraphicImageVoAssembler.createDrawingGraphicImageVoCollectionFromDrawingGraphicImage(graphicImagesList);
}
项目:AvoinApotti    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVo getDrawingGraphicImage(DrawingGraphicImageRefVo drawingGraphicImageRefVo)
{
    if(drawingGraphicImageRefVo == null)
        throw new CodingRuntimeException("Cannot get DrawingGraphicImageVo for null DrawingGraphicImageRefVo");

    DomainFactory factory = getDomainFactory();
    DrawingGraphicImage doDrawingGraphicImage = (DrawingGraphicImage) factory.getDomainObject(DrawingGraphicImage.class, drawingGraphicImageRefVo.getID_DrawingGraphicImage());
    return DrawingGraphicImageVoAssembler.create(doDrawingGraphicImage);
}
项目:openMAXIMS    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVo saveGraphicImage(DrawingGraphicImageVo voGraphicImage) throws StaleObjectException
{
    if(voGraphicImage == null)
        throw new RuntimeException("Cannot save null value for DrawingGraphicImageVo");
    if(!voGraphicImage.isValidated())
        throw new CodingRuntimeException("DrawingGraphicImageVo has not been validated");

    DomainFactory factory = getDomainFactory();
    DrawingGraphicImage doGraphicImage = DrawingGraphicImageVoAssembler.extractDrawingGraphicImage(factory, voGraphicImage);
    factory.save(doGraphicImage);

    return DrawingGraphicImageVoAssembler.create(doGraphicImage);
}
项目:openMAXIMS    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVoCollection listGraphicImages(String name, ims.core.vo.lookups.PreActiveActiveInactiveStatus status)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from DrawingGraphicImage dgi");
    java.util.ArrayList markers = new java.util.ArrayList();        
    java.util.ArrayList values  = new java.util.ArrayList();
    String clause = " where ";

    if(name != null && !name.equals(""))
    {
        hql.append(clause);
        hql.append("upper(dgi.imageName) like :imgName");
        markers.add("imgName");
        values.add(name.toUpperCase());
        clause = " and "; 
    }

    if(status != null)
    {
        hql.append(clause);
        hql.append("dgi.imageStatus = :imgStat");
        markers.add("imgStat");
        values.add(getDomLookup(status));
        clause = " and ";
    }

    List graphicImagesList = factory.find(hql.toString(), markers, values);
    return DrawingGraphicImageVoAssembler.createDrawingGraphicImageVoCollectionFromDrawingGraphicImage(graphicImagesList);
}
项目:openMAXIMS    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVo getDrawingGraphicImage(DrawingGraphicImageRefVo drawingGraphicImageRefVo)
{
    if(drawingGraphicImageRefVo == null)
        throw new CodingRuntimeException("Cannot get DrawingGraphicImageVo for null DrawingGraphicImageRefVo");

    DomainFactory factory = getDomainFactory();
    DrawingGraphicImage doDrawingGraphicImage = (DrawingGraphicImage) factory.getDomainObject(DrawingGraphicImage.class, drawingGraphicImageRefVo.getID_DrawingGraphicImage());
    return DrawingGraphicImageVoAssembler.create(doDrawingGraphicImage);
}
项目:openMAXIMS    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVo saveGraphicImage(DrawingGraphicImageVo voGraphicImage) throws StaleObjectException
{
    if(voGraphicImage == null)
        throw new RuntimeException("Cannot save null value for DrawingGraphicImageVo");
    if(!voGraphicImage.isValidated())
        throw new CodingRuntimeException("DrawingGraphicImageVo has not been validated");

    DomainFactory factory = getDomainFactory();
    DrawingGraphicImage doGraphicImage = DrawingGraphicImageVoAssembler.extractDrawingGraphicImage(factory, voGraphicImage);
    factory.save(doGraphicImage);

    return DrawingGraphicImageVoAssembler.create(doGraphicImage);
}
项目:openMAXIMS    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVoCollection listGraphicImages(String name, ims.core.vo.lookups.PreActiveActiveInactiveStatus status)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from DrawingGraphicImage dgi");
    java.util.ArrayList markers = new java.util.ArrayList();        
    java.util.ArrayList values  = new java.util.ArrayList();
    String clause = " where ";

    if(name != null && !name.equals(""))
    {
        hql.append(clause);
        hql.append("upper(dgi.imageName) like :imgName");
        markers.add("imgName");
        values.add(name.toUpperCase());
        clause = " and "; 
    }

    if(status != null)
    {
        hql.append(clause);
        hql.append("dgi.imageStatus = :imgStat");
        markers.add("imgStat");
        values.add(getDomLookup(status));
        clause = " and ";
    }

    List graphicImagesList = factory.find(hql.toString(), markers, values);
    return DrawingGraphicImageVoAssembler.createDrawingGraphicImageVoCollectionFromDrawingGraphicImage(graphicImagesList);
}
项目:openMAXIMS    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVo getDrawingGraphicImage(DrawingGraphicImageRefVo drawingGraphicImageRefVo)
{
    if(drawingGraphicImageRefVo == null)
        throw new CodingRuntimeException("Cannot get DrawingGraphicImageVo for null DrawingGraphicImageRefVo");

    DomainFactory factory = getDomainFactory();
    DrawingGraphicImage doDrawingGraphicImage = (DrawingGraphicImage) factory.getDomainObject(DrawingGraphicImage.class, drawingGraphicImageRefVo.getID_DrawingGraphicImage());
    return DrawingGraphicImageVoAssembler.create(doDrawingGraphicImage);
}
项目:openmaxims-linux    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVo saveGraphicImage(DrawingGraphicImageVo voGraphicImage) throws StaleObjectException
{
    if(voGraphicImage == null)
        throw new RuntimeException("Cannot save null value for DrawingGraphicImageVo");
    if(!voGraphicImage.isValidated())
        throw new CodingRuntimeException("DrawingGraphicImageVo has not been validated");

    DomainFactory factory = getDomainFactory();
    DrawingGraphicImage doGraphicImage = DrawingGraphicImageVoAssembler.extractDrawingGraphicImage(factory, voGraphicImage);
    factory.save(doGraphicImage);

    return DrawingGraphicImageVoAssembler.create(doGraphicImage);
}
项目:openmaxims-linux    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVoCollection listGraphicImages(String name, ims.core.vo.lookups.PreActiveActiveInactiveStatus status)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer("from DrawingGraphicImage dgi");
    java.util.ArrayList markers = new java.util.ArrayList();        
    java.util.ArrayList values  = new java.util.ArrayList();
    String clause = " where ";

    if(name != null && !name.equals(""))
    {
        hql.append(clause);
        hql.append("upper(dgi.imageName) like :imgName");
        markers.add("imgName");
        values.add(name.toUpperCase());
        clause = " and "; 
    }

    if(status != null)
    {
        hql.append(clause);
        hql.append("dgi.imageStatus = :imgStat");
        markers.add("imgStat");
        values.add(getDomLookup(status));
        clause = " and ";
    }

    List graphicImagesList = factory.find(hql.toString(), markers, values);
    return DrawingGraphicImageVoAssembler.createDrawingGraphicImageVoCollectionFromDrawingGraphicImage(graphicImagesList);
}
项目:openmaxims-linux    文件:DrawingConfigImpl.java   
public DrawingGraphicImageVo getDrawingGraphicImage(DrawingGraphicImageRefVo drawingGraphicImageRefVo)
{
    if(drawingGraphicImageRefVo == null)
        throw new CodingRuntimeException("Cannot get DrawingGraphicImageVo for null DrawingGraphicImageRefVo");

    DomainFactory factory = getDomainFactory();
    DrawingGraphicImage doDrawingGraphicImage = (DrawingGraphicImage) factory.getDomainObject(DrawingGraphicImage.class, drawingGraphicImageRefVo.getID_DrawingGraphicImage());
    return DrawingGraphicImageVoAssembler.create(doDrawingGraphicImage);
}