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

项目:AvoinApotti    文件:EducationToCarerImpl.java   
public ims.therapies.vo.EducationToCarersVoCollection list(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new DomainRuntimeException("Contact Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();

    java.util.List educList = factory.find("from  EducationToCarers educs where educs.clinicalContact.id = :clinicalcontactId", new String[]{"clinicalcontactId"}, new Object[]{voClinicalContact.getID_ClinicalContact()});

    return EducationToCarersVoAssembler.createEducationToCarersVoCollectionFromEducationToCarers(educList).sort();
}
项目:AvoinApotti    文件:EducationToCarerImpl.java   
public EducationToCarersVoCollection listEduTocCarerForCareContext(CareContextRefVo careContextRefVo) 
{
    if(careContextRefVo == null)
        throw new DomainRuntimeException("Care Context is null. ");

    DomainFactory factory = getDomainFactory();

    java.util.List educList = factory.find("from  EducationToCarers educs where educs.careContext.id = :ccId", new String[]{"ccId"}, new Object[]{careContextRefVo.getID_CareContext()});

    return EducationToCarersVoAssembler.createEducationToCarersVoCollectionFromEducationToCarers(educList).sort();
}
项目:AvoinApotti    文件:EducationToCarerImpl.java   
/**
* get Education to Carer record for refresh
*/
public ims.therapies.vo.EducationToCarersVo getEducationToCarer(Integer educationToCarerId)
{
    if(educationToCarerId == null)
        throw new DomainRuntimeException("EducationToCarers Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.therapies.domain.objects.EducationToCarers educBo = (ims.therapies.domain.objects.EducationToCarers)factory.getDomainObject(EducationToCarers.class,educationToCarerId.intValue());
    return EducationToCarersVoAssembler.create(educBo);     
}
项目:AvoinApotti    文件:EducationToCarerImpl.java   
/**
* save education to carer record
*/
public ims.therapies.vo.EducationToCarersVo saveEducationToCarer(ims.therapies.vo.EducationToCarersVo voEducationToCarer) throws ims.domain.exceptions.StaleObjectException
{
    if(!voEducationToCarer.isValidated())
    {
        throw new DomainRuntimeException("EducationToCarers Value Object has not been validated");
    }

    DomainFactory factory = getDomainFactory();     
    EducationToCarers educBo = EducationToCarersVoAssembler.extractEducationToCarers(factory,voEducationToCarer);

    factory.save(educBo);

    return EducationToCarersVoAssembler.create(educBo);     
}
项目:openMAXIMS    文件:EducationToCarerImpl.java   
public ims.therapies.vo.EducationToCarersVoCollection list(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new DomainRuntimeException("Contact Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();

    java.util.List educList = factory.find("from  EducationToCarers educs where educs.clinicalContact.id = :clinicalcontactId", new String[]{"clinicalcontactId"}, new Object[]{voClinicalContact.getID_ClinicalContact()});

    return EducationToCarersVoAssembler.createEducationToCarersVoCollectionFromEducationToCarers(educList).sort();
}
项目:openMAXIMS    文件:EducationToCarerImpl.java   
public EducationToCarersVoCollection listEduTocCarerForCareContext(CareContextRefVo careContextRefVo) 
{
    if(careContextRefVo == null)
        throw new DomainRuntimeException("Care Context is null. ");

    DomainFactory factory = getDomainFactory();

    java.util.List educList = factory.find("from  EducationToCarers educs where educs.careContext.id = :ccId", new String[]{"ccId"}, new Object[]{careContextRefVo.getID_CareContext()});

    return EducationToCarersVoAssembler.createEducationToCarersVoCollectionFromEducationToCarers(educList).sort();
}
项目:openMAXIMS    文件:EducationToCarerImpl.java   
/**
* get Education to Carer record for refresh
*/
public ims.therapies.vo.EducationToCarersVo getEducationToCarer(Integer educationToCarerId)
{
    if(educationToCarerId == null)
        throw new DomainRuntimeException("EducationToCarers Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.therapies.domain.objects.EducationToCarers educBo = (ims.therapies.domain.objects.EducationToCarers)factory.getDomainObject(EducationToCarers.class,educationToCarerId.intValue());
    return EducationToCarersVoAssembler.create(educBo);     
}
项目:openMAXIMS    文件:EducationToCarerImpl.java   
/**
* save education to carer record
*/
public ims.therapies.vo.EducationToCarersVo saveEducationToCarer(ims.therapies.vo.EducationToCarersVo voEducationToCarer) throws ims.domain.exceptions.StaleObjectException
{
    if(!voEducationToCarer.isValidated())
    {
        throw new DomainRuntimeException("EducationToCarers Value Object has not been validated");
    }

    DomainFactory factory = getDomainFactory();     
    EducationToCarers educBo = EducationToCarersVoAssembler.extractEducationToCarers(factory,voEducationToCarer);

    factory.save(educBo);

    return EducationToCarersVoAssembler.create(educBo);     
}
项目:openMAXIMS    文件:EducationToCarerImpl.java   
public ims.therapies.vo.EducationToCarersVoCollection list(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new DomainRuntimeException("Contact Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();

    java.util.List educList = factory.find("from  EducationToCarers educs where educs.clinicalContact.id = :clinicalcontactId", new String[]{"clinicalcontactId"}, new Object[]{voClinicalContact.getID_ClinicalContact()});

    return EducationToCarersVoAssembler.createEducationToCarersVoCollectionFromEducationToCarers(educList).sort();
}
项目:openMAXIMS    文件:EducationToCarerImpl.java   
public EducationToCarersVoCollection listEduTocCarerForCareContext(CareContextRefVo careContextRefVo) 
{
    if(careContextRefVo == null)
        throw new DomainRuntimeException("Care Context is null. ");

    DomainFactory factory = getDomainFactory();

    java.util.List educList = factory.find("from  EducationToCarers educs where educs.careContext.id = :ccId", new String[]{"ccId"}, new Object[]{careContextRefVo.getID_CareContext()});

    return EducationToCarersVoAssembler.createEducationToCarersVoCollectionFromEducationToCarers(educList).sort();
}
项目:openMAXIMS    文件:EducationToCarerImpl.java   
/**
* get Education to Carer record for refresh
*/
public ims.therapies.vo.EducationToCarersVo getEducationToCarer(Integer educationToCarerId)
{
    if(educationToCarerId == null)
        throw new DomainRuntimeException("EducationToCarers Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.therapies.domain.objects.EducationToCarers educBo = (ims.therapies.domain.objects.EducationToCarers)factory.getDomainObject(EducationToCarers.class,educationToCarerId.intValue());
    return EducationToCarersVoAssembler.create(educBo);     
}
项目:openMAXIMS    文件:EducationToCarerImpl.java   
/**
* save education to carer record
*/
public ims.therapies.vo.EducationToCarersVo saveEducationToCarer(ims.therapies.vo.EducationToCarersVo voEducationToCarer) throws ims.domain.exceptions.StaleObjectException
{
    if(!voEducationToCarer.isValidated())
    {
        throw new DomainRuntimeException("EducationToCarers Value Object has not been validated");
    }

    DomainFactory factory = getDomainFactory();     
    EducationToCarers educBo = EducationToCarersVoAssembler.extractEducationToCarers(factory,voEducationToCarer);

    factory.save(educBo);

    return EducationToCarersVoAssembler.create(educBo);     
}
项目:openmaxims-linux    文件:EducationToCarerImpl.java   
public ims.therapies.vo.EducationToCarersVoCollection list(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if(voClinicalContact == null)
        throw new DomainRuntimeException("Contact Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();

    java.util.List educList = factory.find("from  EducationToCarers educs where educs.clinicalContact.id = :clinicalcontactId", new String[]{"clinicalcontactId"}, new Object[]{voClinicalContact.getID_ClinicalContact()});

    return EducationToCarersVoAssembler.createEducationToCarersVoCollectionFromEducationToCarers(educList).sort();
}
项目:openmaxims-linux    文件:EducationToCarerImpl.java   
public EducationToCarersVoCollection listEduTocCarerForCareContext(CareContextRefVo careContextRefVo) 
{
    if(careContextRefVo == null)
        throw new DomainRuntimeException("Care Context is null. ");

    DomainFactory factory = getDomainFactory();

    java.util.List educList = factory.find("from  EducationToCarers educs where educs.careContext.id = :ccId", new String[]{"ccId"}, new Object[]{careContextRefVo.getID_CareContext()});

    return EducationToCarersVoAssembler.createEducationToCarersVoCollectionFromEducationToCarers(educList).sort();
}
项目:openmaxims-linux    文件:EducationToCarerImpl.java   
/**
* get Education to Carer record for refresh
*/
public ims.therapies.vo.EducationToCarersVo getEducationToCarer(Integer educationToCarerId)
{
    if(educationToCarerId == null)
        throw new DomainRuntimeException("EducationToCarers Filter not provided for list call. ");

    DomainFactory factory = getDomainFactory();
    ims.therapies.domain.objects.EducationToCarers educBo = (ims.therapies.domain.objects.EducationToCarers)factory.getDomainObject(EducationToCarers.class,educationToCarerId.intValue());
    return EducationToCarersVoAssembler.create(educBo);     
}
项目:openmaxims-linux    文件:EducationToCarerImpl.java   
/**
* save education to carer record
*/
public ims.therapies.vo.EducationToCarersVo saveEducationToCarer(ims.therapies.vo.EducationToCarersVo voEducationToCarer) throws ims.domain.exceptions.StaleObjectException
{
    if(!voEducationToCarer.isValidated())
    {
        throw new DomainRuntimeException("EducationToCarers Value Object has not been validated");
    }

    DomainFactory factory = getDomainFactory();     
    EducationToCarers educBo = EducationToCarersVoAssembler.extractEducationToCarers(factory,voEducationToCarer);

    factory.save(educBo);

    return EducationToCarersVoAssembler.create(educBo);     
}