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

项目:AvoinApotti    文件:NeedsAssessmentImpl.java   
public ims.core.vo.NeedsAssessmentEditVo save(ims.core.vo.NeedsAssessmentEditVo record) throws StaleObjectException
{
    if(record == null)
        throw new DomainRuntimeException("Invalid need assessment record to save");     
    if(!record.isValidated())
        throw new DomainRuntimeException("Needs assessment record not validated");

    DomainFactory factory = getDomainFactory();     
    NeedsAssessment domainRecord = NeedsAssessmentEditVoAssembler.extractNeedsAssessment(factory, record);
    factory.save(domainRecord);      
    return NeedsAssessmentEditVoAssembler.create(domainRecord);     
}
项目:AvoinApotti    文件:NeedsAssessmentImpl.java   
public NeedsAssessmentEditVo get(NeedsAssessmentRefVo record) 
{
    if(record == null || record.getID_NeedsAssessment() == null)
        throw new DomainRuntimeException("Invalid need assessment record to get");

    return NeedsAssessmentEditVoAssembler.create((NeedsAssessment)getDomainFactory().getDomainObject(NeedsAssessment.class, record.getID_NeedsAssessment()));
}
项目:openMAXIMS    文件:NeedsAssessmentImpl.java   
public ims.core.vo.NeedsAssessmentEditVo save(ims.core.vo.NeedsAssessmentEditVo record) throws StaleObjectException
{
    if(record == null)
        throw new DomainRuntimeException("Invalid need assessment record to save");     
    if(!record.isValidated())
        throw new DomainRuntimeException("Needs assessment record not validated");

    DomainFactory factory = getDomainFactory();     
    NeedsAssessment domainRecord = NeedsAssessmentEditVoAssembler.extractNeedsAssessment(factory, record);
    factory.save(domainRecord);      
    return NeedsAssessmentEditVoAssembler.create(domainRecord);     
}
项目:openMAXIMS    文件:NeedsAssessmentImpl.java   
public NeedsAssessmentEditVo get(NeedsAssessmentRefVo record) 
{
    if(record == null || record.getID_NeedsAssessment() == null)
        throw new DomainRuntimeException("Invalid need assessment record to get");

    return NeedsAssessmentEditVoAssembler.create((NeedsAssessment)getDomainFactory().getDomainObject(NeedsAssessment.class, record.getID_NeedsAssessment()));
}
项目:openMAXIMS    文件:NeedsAssessmentImpl.java   
public ims.core.vo.NeedsAssessmentEditVo save(ims.core.vo.NeedsAssessmentEditVo record) throws StaleObjectException
{
    if(record == null)
        throw new DomainRuntimeException("Invalid need assessment record to save");     
    if(!record.isValidated())
        throw new DomainRuntimeException("Needs assessment record not validated");

    DomainFactory factory = getDomainFactory();     
    NeedsAssessment domainRecord = NeedsAssessmentEditVoAssembler.extractNeedsAssessment(factory, record);
    factory.save(domainRecord);      
    return NeedsAssessmentEditVoAssembler.create(domainRecord);     
}
项目:openMAXIMS    文件:NeedsAssessmentImpl.java   
public NeedsAssessmentEditVo get(NeedsAssessmentRefVo record) 
{
    if(record == null || record.getID_NeedsAssessment() == null)
        throw new DomainRuntimeException("Invalid need assessment record to get");

    return NeedsAssessmentEditVoAssembler.create((NeedsAssessment)getDomainFactory().getDomainObject(NeedsAssessment.class, record.getID_NeedsAssessment()));
}
项目:openmaxims-linux    文件:NeedsAssessmentImpl.java   
public ims.core.vo.NeedsAssessmentEditVo save(ims.core.vo.NeedsAssessmentEditVo record) throws StaleObjectException
{
    if(record == null)
        throw new DomainRuntimeException("Invalid need assessment record to save");     
    if(!record.isValidated())
        throw new DomainRuntimeException("Needs assessment record not validated");

    DomainFactory factory = getDomainFactory();     
    NeedsAssessment domainRecord = NeedsAssessmentEditVoAssembler.extractNeedsAssessment(factory, record);
    factory.save(domainRecord);      
    return NeedsAssessmentEditVoAssembler.create(domainRecord);     
}
项目:openmaxims-linux    文件:NeedsAssessmentImpl.java   
public NeedsAssessmentEditVo get(NeedsAssessmentRefVo record) 
{
    if(record == null || record.getID_NeedsAssessment() == null)
        throw new DomainRuntimeException("Invalid need assessment record to get");

    return NeedsAssessmentEditVoAssembler.create((NeedsAssessment)getDomainFactory().getDomainObject(NeedsAssessment.class, record.getID_NeedsAssessment()));
}