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

项目:AvoinApotti    文件:FunctionalTransfersImpl.java   
/**
 *  Domain Interface function used to retrieve Functional Transfers for specific CareContext
 */
public FunctionalTransfersShortVoCollection listFunctionalTransfersByCareContext(CareContextRefVo careContextRef)
{
    // Check parameter
    if (careContextRef == null || !careContextRef.getID_CareContextIsNotNull())
        throw new DomainRuntimeException("Invalid parameter CareContext");

    String query = "from FunctionalTransfers as ft where ft.clinicalContact.careContext.id = :CCID";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("CCID");
    paramValues.add(careContextRef.getID_CareContext());

    return FunctionalTransfersShortVoAssembler.createFunctionalTransfersShortVoCollectionFromFunctionalTransfers(getDomainFactory().find(query, paramNames, paramValues));
}
项目:openMAXIMS    文件:FunctionalTransfersImpl.java   
/**
 *  Domain Interface function used to retrieve Functional Transfers for specific CareContext
 */
public FunctionalTransfersShortVoCollection listFunctionalTransfersByCareContext(CareContextRefVo careContextRef)
{
    // Check parameter
    if (careContextRef == null || !careContextRef.getID_CareContextIsNotNull())
        throw new DomainRuntimeException("Invalid parameter CareContext");

    String query = "from FunctionalTransfers as ft where ft.clinicalContact.careContext.id = :CCID";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("CCID");
    paramValues.add(careContextRef.getID_CareContext());

    return FunctionalTransfersShortVoAssembler.createFunctionalTransfersShortVoCollectionFromFunctionalTransfers(getDomainFactory().find(query, paramNames, paramValues));
}
项目:openMAXIMS    文件:FunctionalTransfersImpl.java   
/**
 *  Domain Interface function used to retrieve Functional Transfers for specific CareContext
 */
public FunctionalTransfersShortVoCollection listFunctionalTransfersByCareContext(CareContextRefVo careContextRef)
{
    // Check parameter
    if (careContextRef == null || !careContextRef.getID_CareContextIsNotNull())
        throw new DomainRuntimeException("Invalid parameter CareContext");

    String query = "from FunctionalTransfers as ft where ft.clinicalContact.careContext.id = :CCID";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("CCID");
    paramValues.add(careContextRef.getID_CareContext());

    return FunctionalTransfersShortVoAssembler.createFunctionalTransfersShortVoCollectionFromFunctionalTransfers(getDomainFactory().find(query, paramNames, paramValues));
}
项目:openmaxims-linux    文件:FunctionalTransfersImpl.java   
/**
 *  Domain Interface function used to retrieve Functional Transfers for specific CareContext
 */
public FunctionalTransfersShortVoCollection listFunctionalTransfersByCareContext(CareContextRefVo careContextRef)
{
    // Check parameter
    if (careContextRef == null || !careContextRef.getID_CareContextIsNotNull())
        throw new DomainRuntimeException("Invalid parameter CareContext");

    String query = "from FunctionalTransfers as ft where ft.clinicalContact.careContext.id = :CCID";

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    paramNames.add("CCID");
    paramValues.add(careContextRef.getID_CareContext());

    return FunctionalTransfersShortVoAssembler.createFunctionalTransfersShortVoCollectionFromFunctionalTransfers(getDomainFactory().find(query, paramNames, paramValues));
}