Java 类ims.therapies.vo.domain.SportsActivityVoAssembler 实例源码

项目:AvoinApotti    文件:SportsActivitiesImpl.java   
public SportsActivityVo saveSportActivities(SportsActivityVo recordRef) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    if (recordRef == null || recordRef.getID_SportsActivity() == null)
        throw new CodingRuntimeException("This SportsActivityVo is null");


    DomainFactory factory = getDomainFactory(); 


    SportsActivity domSportsActivity = SportsActivityVoAssembler.extractSportsActivity(factory, recordRef);
    domSportsActivity.setIsRIE(recordRef.getIsRIE());
    factory.save(domSportsActivity);

    return SportsActivityVoAssembler.create(domSportsActivity);

}
项目:openMAXIMS    文件:SportsActivitiesImpl.java   
public SportsActivityVo saveSportActivities(SportsActivityVo recordRef) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    if (recordRef == null || recordRef.getID_SportsActivity() == null)
        throw new CodingRuntimeException("This SportsActivityVo is null");


    DomainFactory factory = getDomainFactory(); 


    SportsActivity domSportsActivity = SportsActivityVoAssembler.extractSportsActivity(factory, recordRef);
    domSportsActivity.setIsRIE(recordRef.getIsRIE());
    factory.save(domSportsActivity);

    return SportsActivityVoAssembler.create(domSportsActivity);

}
项目:openMAXIMS    文件:SportsActivitiesImpl.java   
public SportsActivityVo saveSportActivities(SportsActivityVo recordRef) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    if (recordRef == null || recordRef.getID_SportsActivity() == null)
        throw new CodingRuntimeException("This SportsActivityVo is null");


    DomainFactory factory = getDomainFactory(); 


    SportsActivity domSportsActivity = SportsActivityVoAssembler.extractSportsActivity(factory, recordRef);
    domSportsActivity.setIsRIE(recordRef.getIsRIE());
    factory.save(domSportsActivity);

    return SportsActivityVoAssembler.create(domSportsActivity);

}
项目:openmaxims-linux    文件:SportsActivitiesImpl.java   
public SportsActivityVo saveSportActivities(SportsActivityVo recordRef) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException 
{
    if (recordRef == null || recordRef.getID_SportsActivity() == null)
        throw new CodingRuntimeException("This SportsActivityVo is null");


    DomainFactory factory = getDomainFactory(); 


    SportsActivity domSportsActivity = SportsActivityVoAssembler.extractSportsActivity(factory, recordRef);
    domSportsActivity.setIsRIE(recordRef.getIsRIE());
    factory.save(domSportsActivity);

    return SportsActivityVoAssembler.create(domSportsActivity);

}