public ReferralsRecordingVo get(ReferralsRecordingRefVo record) { if(record == null || record.getID_ReferralsRecording() == null) { throw new DomainRuntimeException("Invalid record"); } DomainFactory factory = getDomainFactory(); ReferralsRecording domainRecord = (ReferralsRecording)factory.getDomainObject (ReferralsRecording.class, record.getID_ReferralsRecording().intValue()); return ReferralsRecordingVoAssembler.create(domainRecord); }
public ReferralsRecordingShortVo getReferralsRecording(ReferralsRecordingRefVo voRef) { if(voRef == null || voRef.getID_ReferralsRecording() == null) { throw new DomainRuntimeException("Invalid record"); } DomainFactory factory = getDomainFactory(); ReferralsRecording domainRecord = (ReferralsRecording)factory. getDomainObject(ReferralsRecording.class, voRef.getID_ReferralsRecording().intValue()); return ReferralsRecordingShortVoAssembler.create(domainRecord); }
public ReferralsRecordingVo getReferralRecording(ReferralsRecordingRefVo rrRefVo) { return ReferralsRecordingVoAssembler.create((ReferralsRecording)getDomainFactory().getDomainObject(ReferralsRecording.class, rrRefVo.getID_ReferralsRecording())); }