Java 类ims.nursing.vo.domain.PropertyChecklistVoAssembler 实例源码

项目:AvoinApotti    文件:PropertyChecklistImpl.java   
public PropertyChecklistVo save(PropertyChecklistVo record) throws StaleObjectException 
{   
    if(record == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }
    if(!record.isValidated())
    {
        throw new CodingRuntimeException("Record not validated");
    }

    DomainFactory factory = getDomainFactory();
    PropertyChecklist domainRecord = PropertyChecklistVoAssembler.extractPropertyChecklist(factory, record);        

    factory.save(domainRecord);

    return PropertyChecklistVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:PropertyChecklistImpl.java   
public PropertyChecklistVo save(PropertyChecklistVo record) throws StaleObjectException 
{   
    if(record == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }
    if(!record.isValidated())
    {
        throw new CodingRuntimeException("Record not validated");
    }

    DomainFactory factory = getDomainFactory();
    PropertyChecklist domainRecord = PropertyChecklistVoAssembler.extractPropertyChecklist(factory, record);        

    factory.save(domainRecord);

    return PropertyChecklistVoAssembler.create(domainRecord);
}
项目:openMAXIMS    文件:PropertyChecklistImpl.java   
public PropertyChecklistVo save(PropertyChecklistVo record) throws StaleObjectException 
{   
    if(record == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }
    if(!record.isValidated())
    {
        throw new CodingRuntimeException("Record not validated");
    }

    DomainFactory factory = getDomainFactory();
    PropertyChecklist domainRecord = PropertyChecklistVoAssembler.extractPropertyChecklist(factory, record);        

    factory.save(domainRecord);

    return PropertyChecklistVoAssembler.create(domainRecord);
}
项目:openmaxims-linux    文件:PropertyChecklistImpl.java   
public PropertyChecklistVo save(PropertyChecklistVo record) throws StaleObjectException 
{   
    if(record == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }
    if(!record.isValidated())
    {
        throw new CodingRuntimeException("Record not validated");
    }

    DomainFactory factory = getDomainFactory();
    PropertyChecklist domainRecord = PropertyChecklistVoAssembler.extractPropertyChecklist(factory, record);        

    factory.save(domainRecord);

    return PropertyChecklistVoAssembler.create(domainRecord);
}
项目:AvoinApotti    文件:PropertyChecklistImpl.java   
public PropertyChecklistVo get(PropertyChecklistRefVo record) 
{
    if(record == null || record.getID_PropertyChecklist() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    PropertyChecklist domainRecord = (PropertyChecklist)factory.getDomainObject
                (PropertyChecklist.class, record.getID_PropertyChecklist().intValue());

    return PropertyChecklistVoAssembler.create(domainRecord);

}
项目:openMAXIMS    文件:PropertyChecklistImpl.java   
public PropertyChecklistVo get(PropertyChecklistRefVo record) 
{
    if(record == null || record.getID_PropertyChecklist() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    PropertyChecklist domainRecord = (PropertyChecklist)factory.getDomainObject
                (PropertyChecklist.class, record.getID_PropertyChecklist().intValue());

    return PropertyChecklistVoAssembler.create(domainRecord);

}
项目:openMAXIMS    文件:PropertyChecklistImpl.java   
public PropertyChecklistVo get(PropertyChecklistRefVo record) 
{
    if(record == null || record.getID_PropertyChecklist() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    PropertyChecklist domainRecord = (PropertyChecklist)factory.getDomainObject
                (PropertyChecklist.class, record.getID_PropertyChecklist().intValue());

    return PropertyChecklistVoAssembler.create(domainRecord);

}
项目:openmaxims-linux    文件:PropertyChecklistImpl.java   
public PropertyChecklistVo get(PropertyChecklistRefVo record) 
{
    if(record == null || record.getID_PropertyChecklist() == null)
    {
        throw new DomainRuntimeException("Invalid record");
    }

    DomainFactory factory = getDomainFactory();
    PropertyChecklist domainRecord = (PropertyChecklist)factory.getDomainObject
                (PropertyChecklist.class, record.getID_PropertyChecklist().intValue());

    return PropertyChecklistVoAssembler.create(domainRecord);

}