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

项目:AvoinApotti    文件:PACSConfigImpl.java   
/**
* getPACSConfigVo
*/
public ims.core.vo.PacsConfigurationVo getPACSConfigVo()
{
    DomainFactory factory = getDomainFactory();
    List<?> lstPACS =  factory.find("select e1_1 from PACSConfiguration as e1_1 ");
    if(lstPACS != null && lstPACS.size() >0)
    {
        PacsConfigurationVoCollection tempColl = PacsConfigurationVoAssembler.createPacsConfigurationVoCollectionFromPACSConfiguration(lstPACS);
        if( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;        

}
项目:openMAXIMS    文件:PACSConfigImpl.java   
/**
* getPACSConfigVo
*/
public ims.core.vo.PacsConfigurationVo getPACSConfigVo()
{
    DomainFactory factory = getDomainFactory();
    List<?> lstPACS =  factory.find("select e1_1 from PACSConfiguration as e1_1 ");
    if(lstPACS != null && lstPACS.size() >0)
    {
        PacsConfigurationVoCollection tempColl = PacsConfigurationVoAssembler.createPacsConfigurationVoCollectionFromPACSConfiguration(lstPACS);
        if( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;        

}
项目:openMAXIMS    文件:PACSConfigImpl.java   
/**
* getPACSConfigVo
*/
public ims.core.vo.PacsConfigurationVo getPACSConfigVo()
{
    DomainFactory factory = getDomainFactory();
    List<?> lstPACS =  factory.find("select e1_1 from PACSConfiguration as e1_1 ");
    if(lstPACS != null && lstPACS.size() >0)
    {
        PacsConfigurationVoCollection tempColl = PacsConfigurationVoAssembler.createPacsConfigurationVoCollectionFromPACSConfiguration(lstPACS);
        if( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;        

}
项目:openmaxims-linux    文件:PACSConfigImpl.java   
/**
* getPACSConfigVo
*/
public ims.core.vo.PacsConfigurationVo getPACSConfigVo()
{
    DomainFactory factory = getDomainFactory();
    List<?> lstPACS =  factory.find("select e1_1 from PACSConfiguration as e1_1 ");
    if(lstPACS != null && lstPACS.size() >0)
    {
        PacsConfigurationVoCollection tempColl = PacsConfigurationVoAssembler.createPacsConfigurationVoCollectionFromPACSConfiguration(lstPACS);
        if( tempColl != null && tempColl.size() > 0)
            return tempColl.get(0);
    }

    return null;        

}
项目:AvoinApotti    文件:PACSConfigImpl.java   
public ims.core.vo.PacsConfigurationVo savePACSConfigVo(ims.core.vo.PacsConfigurationVo pacsVO) throws ims.domain.exceptions.StaleObjectException
{
    if (pacsVO == null)
        throw new CodingRuntimeException("Cannot save null PacsConfigurationVo");

    DomainFactory factory = getDomainFactory();

    PACSConfiguration doPACS = PacsConfigurationVoAssembler.extractPACSConfiguration(factory, pacsVO);

    factory.save(doPACS);
    return PacsConfigurationVoAssembler.create(doPACS);

}
项目:openMAXIMS    文件:PACSConfigImpl.java   
public ims.core.vo.PacsConfigurationVo savePACSConfigVo(ims.core.vo.PacsConfigurationVo pacsVO) throws ims.domain.exceptions.StaleObjectException
{
    if (pacsVO == null)
        throw new CodingRuntimeException("Cannot save null PacsConfigurationVo");

    DomainFactory factory = getDomainFactory();

    PACSConfiguration doPACS = PacsConfigurationVoAssembler.extractPACSConfiguration(factory, pacsVO);

    factory.save(doPACS);
    return PacsConfigurationVoAssembler.create(doPACS);

}
项目:openMAXIMS    文件:PACSConfigImpl.java   
public ims.core.vo.PacsConfigurationVo savePACSConfigVo(ims.core.vo.PacsConfigurationVo pacsVO) throws ims.domain.exceptions.StaleObjectException
{
    if (pacsVO == null)
        throw new CodingRuntimeException("Cannot save null PacsConfigurationVo");

    DomainFactory factory = getDomainFactory();

    PACSConfiguration doPACS = PacsConfigurationVoAssembler.extractPACSConfiguration(factory, pacsVO);

    factory.save(doPACS);
    return PacsConfigurationVoAssembler.create(doPACS);

}
项目:openmaxims-linux    文件:PACSConfigImpl.java   
public ims.core.vo.PacsConfigurationVo savePACSConfigVo(ims.core.vo.PacsConfigurationVo pacsVO) throws ims.domain.exceptions.StaleObjectException
{
    if (pacsVO == null)
        throw new CodingRuntimeException("Cannot save null PacsConfigurationVo");

    DomainFactory factory = getDomainFactory();

    PACSConfiguration doPACS = PacsConfigurationVoAssembler.extractPACSConfiguration(factory, pacsVO);

    factory.save(doPACS);
    return PacsConfigurationVoAssembler.create(doPACS);

}