/** * 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)); }
private void populateParentNodes(FunctionalTransfersShortVoCollection voCollFunctTransParents) { if (voCollFunctTransParents == null || voCollFunctTransParents.size() <= 0) return; for (int i = 0; i < voCollFunctTransParents.size(); i++) { populateParentNode(voCollFunctTransParents.get(i)); } }