/** * * @param transport */ private void setDetailsContainer(TransportBookingRefVo transport) { // Clear container details clearDetailsContainer(); // Check for passed value if (transport == null) return; // Populate with data populateScreenFromData(domain.getTransportBooking(transport)); }
/** * Retrieves from data base a TransportBookingVo based on the id provided. */ public TransportBookingDisplayVo getTransportBooking(TransportBookingRefVo transportBookingRef) { if (transportBookingRef == null) return null; DomainFactory factory = getDomainFactory(); DomainObject result = factory.getDomainObject(TransportBooking.class, transportBookingRef.getID_TransportBooking()); return TransportBookingDisplayVoAssembler.create((TransportBooking) result); }