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

项目:AvoinApotti    文件:ChartTypeDetailsImpl.java   
/**
* saveChartType
*/
public ims.core.vo.ChartTypeVo saveChartType(ims.core.vo.ChartTypeVo recordVo) throws ims.domain.exceptions.StaleObjectException, UniqueKeyViolationException 
{
    if (!recordVo.isValidated())
        throw new DomainRuntimeException("ChartTypeVo record has not been validated");

    DomainFactory factory = getDomainFactory();
    ChartType bo = ChartTypeVoAssembler.extractChartType(factory, recordVo);

    try
    {
        factory.save(bo);
    }
    catch (UnqViolationUncheckedException e)
    {           
        throw new UniqueKeyViolationException(e);
    }

    return ChartTypeVoAssembler.create(bo);
}
项目:openMAXIMS    文件:ChartTypeDetailsImpl.java   
/**
* saveChartType
*/
public ims.core.vo.ChartTypeVo saveChartType(ims.core.vo.ChartTypeVo recordVo) throws ims.domain.exceptions.StaleObjectException, UniqueKeyViolationException 
{
    if (!recordVo.isValidated())
        throw new DomainRuntimeException("ChartTypeVo record has not been validated");

    DomainFactory factory = getDomainFactory();
    ChartType bo = ChartTypeVoAssembler.extractChartType(factory, recordVo);

    try
    {
        factory.save(bo);
    }
    catch (UnqViolationUncheckedException e)
    {           
        throw new UniqueKeyViolationException(e);
    }

    return ChartTypeVoAssembler.create(bo);
}
项目:openMAXIMS    文件:ChartTypeDetailsImpl.java   
/**
* saveChartType
*/
public ims.core.vo.ChartTypeVo saveChartType(ims.core.vo.ChartTypeVo recordVo) throws ims.domain.exceptions.StaleObjectException, UniqueKeyViolationException 
{
    if (!recordVo.isValidated())
        throw new DomainRuntimeException("ChartTypeVo record has not been validated");

    DomainFactory factory = getDomainFactory();
    ChartType bo = ChartTypeVoAssembler.extractChartType(factory, recordVo);

    try
    {
        factory.save(bo);
    }
    catch (UnqViolationUncheckedException e)
    {           
        throw new UniqueKeyViolationException(e);
    }

    return ChartTypeVoAssembler.create(bo);
}
项目:openmaxims-linux    文件:ChartTypeDetailsImpl.java   
/**
* saveChartType
*/
public ims.core.vo.ChartTypeVo saveChartType(ims.core.vo.ChartTypeVo recordVo) throws ims.domain.exceptions.StaleObjectException, UniqueKeyViolationException 
{
    if (!recordVo.isValidated())
        throw new DomainRuntimeException("ChartTypeVo record has not been validated");

    DomainFactory factory = getDomainFactory();
    ChartType bo = ChartTypeVoAssembler.extractChartType(factory, recordVo);

    try
    {
        factory.save(bo);
    }
    catch (UnqViolationUncheckedException e)
    {           
        throw new UniqueKeyViolationException(e);
    }

    return ChartTypeVoAssembler.create(bo);
}
项目:AvoinApotti    文件:ChartTypeDetailsImpl.java   
/**
* getChartType
*/
public ims.core.vo.ChartTypeVo getChartType(ims.core.charting.vo.ChartTypeRefVo refObj)
{
    return ChartTypeVoAssembler.create((ChartType) getDomainFactory().getDomainObject(ChartType.class, refObj.getID_ChartType()));
}
项目:AvoinApotti    文件:PathologyResultsImpl.java   
public ChartTypeVo getChartType(ChartTypeRefVo id)
{
    return ChartTypeVoAssembler.create((ChartType)getDomainFactory().getDomainObject(ChartType.class, id.getID_ChartType()));
}
项目:openMAXIMS    文件:ChartTypeDetailsImpl.java   
/**
* getChartType
*/
public ims.core.vo.ChartTypeVo getChartType(ims.core.charting.vo.ChartTypeRefVo refObj)
{
    return ChartTypeVoAssembler.create((ChartType) getDomainFactory().getDomainObject(ChartType.class, refObj.getID_ChartType()));
}
项目:openMAXIMS    文件:PathologyResultsImpl.java   
public ChartTypeVo getChartType(ChartTypeRefVo id)
{
    return ChartTypeVoAssembler.create((ChartType)getDomainFactory().getDomainObject(ChartType.class, id.getID_ChartType()));
}
项目:openMAXIMS    文件:ChartTypeDetailsImpl.java   
/**
* getChartType
*/
public ims.core.vo.ChartTypeVo getChartType(ims.core.charting.vo.ChartTypeRefVo refObj)
{
    return ChartTypeVoAssembler.create((ChartType) getDomainFactory().getDomainObject(ChartType.class, refObj.getID_ChartType()));
}
项目:openMAXIMS    文件:PathologyResultsImpl.java   
public ChartTypeVo getChartType(ChartTypeRefVo id)
{
    return ChartTypeVoAssembler.create((ChartType)getDomainFactory().getDomainObject(ChartType.class, id.getID_ChartType()));
}
项目:openmaxims-linux    文件:ChartTypeDetailsImpl.java   
/**
* getChartType
*/
public ims.core.vo.ChartTypeVo getChartType(ims.core.charting.vo.ChartTypeRefVo refObj)
{
    return ChartTypeVoAssembler.create((ChartType) getDomainFactory().getDomainObject(ChartType.class, refObj.getID_ChartType()));
}
项目:openmaxims-linux    文件:PathologyResultsImpl.java   
public ChartTypeVo getChartType(ChartTypeRefVo id)
{
    return ChartTypeVoAssembler.create((ChartType)getDomainFactory().getDomainObject(ChartType.class, id.getID_ChartType()));
}