Java 类ims.clinical.vo.domain.OtherAssessmentSummaryVoAssembler 实例源码

项目:AvoinApotti    文件:OtherAssessmentImpl.java   
/**
* Lists all other assessments for current care context
*/
public ims.clinical.vo.OtherAssessmentSummaryVoCollection listOtherAssessments(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if (!careContextRef.getID_CareContextIsNotNull())
    {
        throw new DomainRuntimeException("Invalid care context specified . It has a null id");
    }
    String query = "from OtherAssessmentSummary as oas where (oas.careContext.id = :CareContext_id) order by oas.assessmentDate asc ";
    List<?> objects = getDomainFactory().find(query,"CareContext_id",careContextRef.getID_CareContext());
    if (objects == null || objects.size() == 0)
        return null;
    return OtherAssessmentSummaryVoAssembler.createOtherAssessmentSummaryVoCollectionFromOtherAssessmentSummary(objects);
}
项目:AvoinApotti    文件:OtherAssessmentImpl.java   
/**
* Saves an other assessment sumary record
*/
public ims.clinical.vo.OtherAssessmentSummaryVo save(ims.clinical.vo.OtherAssessmentSummaryVo record) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (record == null)
        throw new DomainRuntimeException("OtherAssessmentSummaryVo must be not null.");
    if (!record.isValidated())
        throw new DomainRuntimeException("OtherAssessmentSummaryVo must be validated");

    DomainFactory domainFactory = getDomainFactory();
    OtherAssessmentSummary doRecord = OtherAssessmentSummaryVoAssembler.extractOtherAssessmentSummary(domainFactory,record);
    domainFactory.save(doRecord);
    return OtherAssessmentSummaryVoAssembler.create(doRecord);
}
项目:openMAXIMS    文件:OtherAssessmentImpl.java   
/**
* Lists all other assessments for current care context
*/
public ims.clinical.vo.OtherAssessmentSummaryVoCollection listOtherAssessments(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if (!careContextRef.getID_CareContextIsNotNull())
    {
        throw new DomainRuntimeException("Invalid care context specified . It has a null id");
    }
    String query = "from OtherAssessmentSummary as oas where (oas.careContext.id = :CareContext_id) order by oas.assessmentDate asc ";
    List<?> objects = getDomainFactory().find(query,"CareContext_id",careContextRef.getID_CareContext());
    if (objects == null || objects.size() == 0)
        return null;
    return OtherAssessmentSummaryVoAssembler.createOtherAssessmentSummaryVoCollectionFromOtherAssessmentSummary(objects);
}
项目:openMAXIMS    文件:OtherAssessmentImpl.java   
/**
* Saves an other assessment sumary record
*/
public ims.clinical.vo.OtherAssessmentSummaryVo save(ims.clinical.vo.OtherAssessmentSummaryVo record) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (record == null)
        throw new DomainRuntimeException("OtherAssessmentSummaryVo must be not null.");
    if (!record.isValidated())
        throw new DomainRuntimeException("OtherAssessmentSummaryVo must be validated");

    DomainFactory domainFactory = getDomainFactory();
    OtherAssessmentSummary doRecord = OtherAssessmentSummaryVoAssembler.extractOtherAssessmentSummary(domainFactory,record);
    domainFactory.save(doRecord);
    return OtherAssessmentSummaryVoAssembler.create(doRecord);
}
项目:openMAXIMS    文件:OtherAssessmentImpl.java   
/**
* Lists all other assessments for current care context
*/
public ims.clinical.vo.OtherAssessmentSummaryVoCollection listOtherAssessments(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if (!careContextRef.getID_CareContextIsNotNull())
    {
        throw new DomainRuntimeException("Invalid care context specified . It has a null id");
    }
    String query = "from OtherAssessmentSummary as oas where (oas.careContext.id = :CareContext_id) order by oas.assessmentDate asc ";
    List<?> objects = getDomainFactory().find(query,"CareContext_id",careContextRef.getID_CareContext());
    if (objects == null || objects.size() == 0)
        return null;
    return OtherAssessmentSummaryVoAssembler.createOtherAssessmentSummaryVoCollectionFromOtherAssessmentSummary(objects);
}
项目:openMAXIMS    文件:OtherAssessmentImpl.java   
/**
* Saves an other assessment sumary record
*/
public ims.clinical.vo.OtherAssessmentSummaryVo save(ims.clinical.vo.OtherAssessmentSummaryVo record) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (record == null)
        throw new DomainRuntimeException("OtherAssessmentSummaryVo must be not null.");
    if (!record.isValidated())
        throw new DomainRuntimeException("OtherAssessmentSummaryVo must be validated");

    DomainFactory domainFactory = getDomainFactory();
    OtherAssessmentSummary doRecord = OtherAssessmentSummaryVoAssembler.extractOtherAssessmentSummary(domainFactory,record);
    domainFactory.save(doRecord);
    return OtherAssessmentSummaryVoAssembler.create(doRecord);
}
项目:openmaxims-linux    文件:OtherAssessmentImpl.java   
/**
* Lists all other assessments for current care context
*/
public ims.clinical.vo.OtherAssessmentSummaryVoCollection listOtherAssessments(ims.core.admin.vo.CareContextRefVo careContextRef)
{
    if (!careContextRef.getID_CareContextIsNotNull())
    {
        throw new DomainRuntimeException("Invalid care context specified . It has a null id");
    }
    String query = "from OtherAssessmentSummary as oas where (oas.careContext.id = :CareContext_id) order by oas.assessmentDate asc ";
    List<?> objects = getDomainFactory().find(query,"CareContext_id",careContextRef.getID_CareContext());
    if (objects == null || objects.size() == 0)
        return null;
    return OtherAssessmentSummaryVoAssembler.createOtherAssessmentSummaryVoCollectionFromOtherAssessmentSummary(objects);
}
项目:openmaxims-linux    文件:OtherAssessmentImpl.java   
/**
* Saves an other assessment sumary record
*/
public ims.clinical.vo.OtherAssessmentSummaryVo save(ims.clinical.vo.OtherAssessmentSummaryVo record) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException
{
    if (record == null)
        throw new DomainRuntimeException("OtherAssessmentSummaryVo must be not null.");
    if (!record.isValidated())
        throw new DomainRuntimeException("OtherAssessmentSummaryVo must be validated");

    DomainFactory domainFactory = getDomainFactory();
    OtherAssessmentSummary doRecord = OtherAssessmentSummaryVoAssembler.extractOtherAssessmentSummary(domainFactory,record);
    domainFactory.save(doRecord);
    return OtherAssessmentSummaryVoAssembler.create(doRecord);
}