Java 类ims.therapies.vo.domain.TreatmentEquipmentConfigVoAssembler 实例源码

项目:AvoinApotti    文件:TreatmentEquipmentConfigImpl.java   
public TreatmentEquipmentConfigVoCollection list(TreatmentEquipmentTypeConfig lkpTreatmentEquipmentTypeConfig)
{
    DomainFactory factory = getDomainFactory();             


    TreatmentEquipmentConfigVoCollection voTreatEquipConfigVoColl = new TreatmentEquipmentConfigVoCollection();
    java.util.List tecList = null;
    if (lkpTreatmentEquipmentTypeConfig == null)
    {
        tecList = factory.listDomainObjects(TreatmentEquipmentConfig.class);
    }
    else
    {
        ArrayList markers = new ArrayList();
        ArrayList values = new ArrayList();
        StringBuffer condStr = new StringBuffer();
        String hql = "from TreatmentEquipmentConfig t where ";

        condStr.append(" t.type = :equipmentType");
        markers.add("equipmentType");
        values.add(getDomLookup(lkpTreatmentEquipmentTypeConfig));          

        hql += condStr.toString();
        tecList = factory.find(hql, markers, values);
    }

    voTreatEquipConfigVoColl = TreatmentEquipmentConfigVoAssembler.createTreatmentEquipmentConfigVoCollectionFromTreatmentEquipmentConfig(tecList);

    if(voTreatEquipConfigVoColl.size()>0)
        return voTreatEquipConfigVoColl;
    else
        return null;
}
项目:AvoinApotti    文件:TreatmentEquipmentConfigImpl.java   
public TreatmentEquipmentConfigVo save(TreatmentEquipmentConfigVo voTreatEquipConfig) throws StaleObjectException
{
    if(!voTreatEquipConfig.isValidated())
        throw new DomainRuntimeException("This Treatment Equipment Configuration has not been validated");

    DomainFactory factory = getDomainFactory();
    TreatmentEquipmentConfig doTreatEquipConfig = TreatmentEquipmentConfigVoAssembler.extractTreatmentEquipmentConfig(factory, voTreatEquipConfig);
    factory.save(doTreatEquipConfig);
    return TreatmentEquipmentConfigVoAssembler.create(doTreatEquipConfig);
}
项目:openMAXIMS    文件:TreatmentEquipmentConfigImpl.java   
public TreatmentEquipmentConfigVoCollection list(TreatmentEquipmentTypeConfig lkpTreatmentEquipmentTypeConfig)
{
    DomainFactory factory = getDomainFactory();             


    TreatmentEquipmentConfigVoCollection voTreatEquipConfigVoColl = new TreatmentEquipmentConfigVoCollection();
    java.util.List tecList = null;
    if (lkpTreatmentEquipmentTypeConfig == null)
    {
        tecList = factory.listDomainObjects(TreatmentEquipmentConfig.class);
    }
    else
    {
        ArrayList markers = new ArrayList();
        ArrayList values = new ArrayList();
        StringBuffer condStr = new StringBuffer();
        String hql = "from TreatmentEquipmentConfig t where ";

        condStr.append(" t.type = :equipmentType");
        markers.add("equipmentType");
        values.add(getDomLookup(lkpTreatmentEquipmentTypeConfig));          

        hql += condStr.toString();
        tecList = factory.find(hql, markers, values);
    }

    voTreatEquipConfigVoColl = TreatmentEquipmentConfigVoAssembler.createTreatmentEquipmentConfigVoCollectionFromTreatmentEquipmentConfig(tecList);

    if(voTreatEquipConfigVoColl.size()>0)
        return voTreatEquipConfigVoColl;
    else
        return null;
}
项目:openMAXIMS    文件:TreatmentEquipmentConfigImpl.java   
public TreatmentEquipmentConfigVo save(TreatmentEquipmentConfigVo voTreatEquipConfig) throws StaleObjectException
{
    if(!voTreatEquipConfig.isValidated())
        throw new DomainRuntimeException("This Treatment Equipment Configuration has not been validated");

    DomainFactory factory = getDomainFactory();
    TreatmentEquipmentConfig doTreatEquipConfig = TreatmentEquipmentConfigVoAssembler.extractTreatmentEquipmentConfig(factory, voTreatEquipConfig);
    factory.save(doTreatEquipConfig);
    return TreatmentEquipmentConfigVoAssembler.create(doTreatEquipConfig);
}
项目:openMAXIMS    文件:TreatmentEquipmentConfigImpl.java   
public TreatmentEquipmentConfigVoCollection list(TreatmentEquipmentTypeConfig lkpTreatmentEquipmentTypeConfig)
{
    DomainFactory factory = getDomainFactory();             


    TreatmentEquipmentConfigVoCollection voTreatEquipConfigVoColl = new TreatmentEquipmentConfigVoCollection();
    java.util.List tecList = null;
    if (lkpTreatmentEquipmentTypeConfig == null)
    {
        tecList = factory.listDomainObjects(TreatmentEquipmentConfig.class);
    }
    else
    {
        ArrayList markers = new ArrayList();
        ArrayList values = new ArrayList();
        StringBuffer condStr = new StringBuffer();
        String hql = "from TreatmentEquipmentConfig t where ";

        condStr.append(" t.type = :equipmentType");
        markers.add("equipmentType");
        values.add(getDomLookup(lkpTreatmentEquipmentTypeConfig));          

        hql += condStr.toString();
        tecList = factory.find(hql, markers, values);
    }

    voTreatEquipConfigVoColl = TreatmentEquipmentConfigVoAssembler.createTreatmentEquipmentConfigVoCollectionFromTreatmentEquipmentConfig(tecList);

    if(voTreatEquipConfigVoColl.size()>0)
        return voTreatEquipConfigVoColl;
    else
        return null;
}
项目:openMAXIMS    文件:TreatmentEquipmentConfigImpl.java   
public TreatmentEquipmentConfigVo save(TreatmentEquipmentConfigVo voTreatEquipConfig) throws StaleObjectException
{
    if(!voTreatEquipConfig.isValidated())
        throw new DomainRuntimeException("This Treatment Equipment Configuration has not been validated");

    DomainFactory factory = getDomainFactory();
    TreatmentEquipmentConfig doTreatEquipConfig = TreatmentEquipmentConfigVoAssembler.extractTreatmentEquipmentConfig(factory, voTreatEquipConfig);
    factory.save(doTreatEquipConfig);
    return TreatmentEquipmentConfigVoAssembler.create(doTreatEquipConfig);
}
项目:openmaxims-linux    文件:TreatmentEquipmentConfigImpl.java   
public TreatmentEquipmentConfigVoCollection list(TreatmentEquipmentTypeConfig lkpTreatmentEquipmentTypeConfig)
{
    DomainFactory factory = getDomainFactory();             


    TreatmentEquipmentConfigVoCollection voTreatEquipConfigVoColl = new TreatmentEquipmentConfigVoCollection();
    java.util.List tecList = null;
    if (lkpTreatmentEquipmentTypeConfig == null)
    {
        tecList = factory.listDomainObjects(TreatmentEquipmentConfig.class);
    }
    else
    {
        ArrayList markers = new ArrayList();
        ArrayList values = new ArrayList();
        StringBuffer condStr = new StringBuffer();
        String hql = "from TreatmentEquipmentConfig t where ";

        condStr.append(" t.type = :equipmentType");
        markers.add("equipmentType");
        values.add(getDomLookup(lkpTreatmentEquipmentTypeConfig));          

        hql += condStr.toString();
        tecList = factory.find(hql, markers, values);
    }

    voTreatEquipConfigVoColl = TreatmentEquipmentConfigVoAssembler.createTreatmentEquipmentConfigVoCollectionFromTreatmentEquipmentConfig(tecList);

    if(voTreatEquipConfigVoColl.size()>0)
        return voTreatEquipConfigVoColl;
    else
        return null;
}
项目:openmaxims-linux    文件:TreatmentEquipmentConfigImpl.java   
public TreatmentEquipmentConfigVo save(TreatmentEquipmentConfigVo voTreatEquipConfig) throws StaleObjectException
{
    if(!voTreatEquipConfig.isValidated())
        throw new DomainRuntimeException("This Treatment Equipment Configuration has not been validated");

    DomainFactory factory = getDomainFactory();
    TreatmentEquipmentConfig doTreatEquipConfig = TreatmentEquipmentConfigVoAssembler.extractTreatmentEquipmentConfig(factory, voTreatEquipConfig);
    factory.save(doTreatEquipConfig);
    return TreatmentEquipmentConfigVoAssembler.create(doTreatEquipConfig);
}