Java 类ims.emergency.vo.domain.HCGTestItemVoAssembler 实例源码

项目:AvoinApotti    文件:HCGCcImpl.java   
public HCGTestItemVo saveItem(HCGTestItemVo hcgItemToSave) throws StaleObjectException
{
    if (hcgItemToSave == null)
        throw new CodingRuntimeException("Cannot save null HCGItem ");

    if (!hcgItemToSave.isValidated())
        throw new DomainRuntimeException("HCGItem Not Validated.");

    DomainFactory factory = getDomainFactory();
    HCGTestItem domainHCGItem = HCGTestItemVoAssembler.extractHCGTestItem(factory, hcgItemToSave);

    factory.save(domainHCGItem);

    return HCGTestItemVoAssembler.create(domainHCGItem);
}
项目:AvoinApotti    文件:HCGCcImpl.java   
public HCGTestItemVo getHCGItem(HCGTestItemRefVo hcgItemRef)
{
    if (hcgItemRef == null || hcgItemRef.getID_HCGTestItem() == null)
    {
        throw new CodingRuntimeException("Cannot get HCGItem on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    HCGTestItem domainHCGItem = (HCGTestItem) factory.getDomainObject(HCGTestItem.class, hcgItemRef.getID_HCGTestItem());

    return HCGTestItemVoAssembler.create(domainHCGItem);
}
项目:openMAXIMS    文件:HCGCcImpl.java   
public HCGTestItemVo saveItem(HCGTestItemVo hcgItemToSave) throws StaleObjectException
{
    if (hcgItemToSave == null)
        throw new CodingRuntimeException("Cannot save null HCGItem ");

    if (!hcgItemToSave.isValidated())
        throw new DomainRuntimeException("HCGItem Not Validated.");

    DomainFactory factory = getDomainFactory();
    HCGTestItem domainHCGItem = HCGTestItemVoAssembler.extractHCGTestItem(factory, hcgItemToSave);

    factory.save(domainHCGItem);

    return HCGTestItemVoAssembler.create(domainHCGItem);
}
项目:openMAXIMS    文件:HCGCcImpl.java   
public HCGTestItemVo getHCGItem(HCGTestItemRefVo hcgItemRef)
{
    if (hcgItemRef == null || hcgItemRef.getID_HCGTestItem() == null)
    {
        throw new CodingRuntimeException("Cannot get HCGItem on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    HCGTestItem domainHCGItem = (HCGTestItem) factory.getDomainObject(HCGTestItem.class, hcgItemRef.getID_HCGTestItem());

    return HCGTestItemVoAssembler.create(domainHCGItem);
}
项目:openMAXIMS    文件:HCGCcImpl.java   
public HCGTestItemVo saveItem(HCGTestItemVo hcgItemToSave) throws StaleObjectException
{
    if (hcgItemToSave == null)
        throw new CodingRuntimeException("Cannot save null HCGItem ");

    if (!hcgItemToSave.isValidated())
        throw new DomainRuntimeException("HCGItem Not Validated.");

    DomainFactory factory = getDomainFactory();
    HCGTestItem domainHCGItem = HCGTestItemVoAssembler.extractHCGTestItem(factory, hcgItemToSave);

    factory.save(domainHCGItem);

    return HCGTestItemVoAssembler.create(domainHCGItem);
}
项目:openMAXIMS    文件:HCGCcImpl.java   
public HCGTestItemVo getHCGItem(HCGTestItemRefVo hcgItemRef)
{
    if (hcgItemRef == null || hcgItemRef.getID_HCGTestItem() == null)
    {
        throw new CodingRuntimeException("Cannot get HCGItem on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    HCGTestItem domainHCGItem = (HCGTestItem) factory.getDomainObject(HCGTestItem.class, hcgItemRef.getID_HCGTestItem());

    return HCGTestItemVoAssembler.create(domainHCGItem);
}
项目:openmaxims-linux    文件:HCGCcImpl.java   
public HCGTestItemVo saveItem(HCGTestItemVo hcgItemToSave) throws StaleObjectException
{
    if (hcgItemToSave == null)
        throw new CodingRuntimeException("Cannot save null HCGItem ");

    if (!hcgItemToSave.isValidated())
        throw new DomainRuntimeException("HCGItem Not Validated.");

    DomainFactory factory = getDomainFactory();
    HCGTestItem domainHCGItem = HCGTestItemVoAssembler.extractHCGTestItem(factory, hcgItemToSave);

    factory.save(domainHCGItem);

    return HCGTestItemVoAssembler.create(domainHCGItem);
}
项目:openmaxims-linux    文件:HCGCcImpl.java   
public HCGTestItemVo getHCGItem(HCGTestItemRefVo hcgItemRef)
{
    if (hcgItemRef == null || hcgItemRef.getID_HCGTestItem() == null)
    {
        throw new CodingRuntimeException("Cannot get HCGItem on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    HCGTestItem domainHCGItem = (HCGTestItem) factory.getDomainObject(HCGTestItem.class, hcgItemRef.getID_HCGTestItem());

    return HCGTestItemVoAssembler.create(domainHCGItem);
}