/** * 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)); }