public ims.oncology.vo.PrognosticLocationConfigVo get( ims.oncology.configuration.vo.PrognosticLocationConfigRefVo record) { if (record == null || record.getID_PrognosticLocationConfig() == null) return null; return PrognosticLocationConfigVoAssembler.create( (PrognosticLocationConfig) getDomainFactory() .getDomainObject( PrognosticLocationConfig.class, record.getID_PrognosticLocationConfig())); }
public ims.oncology.vo.PrognosticLocationConfigVo save( ims.oncology.vo.PrognosticLocationConfigVo record) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException { if (record == null) throw new CodingRuntimeException("Can not save a null PrognosticLocationConfigVo"); if (!record.isValidated()) throw new CodingRuntimeException("PrognosticLocationConfigVo must be validated before save."); DomainFactory factory = getDomainFactory(); PrognosticLocationConfig doRecord = PrognosticLocationConfigVoAssembler.extractPrognosticLocationConfig(factory, record); factory.save(doRecord); return PrognosticLocationConfigVoAssembler.create(doRecord); }
public ims.oncology.vo.PrognosticLocationConfigVoCollection list() { return PrognosticLocationConfigVoAssembler .createPrognosticLocationConfigVoCollectionFromPrognosticLocationConfig( getDomainFactory() .find("from PrognosticLocationConfig as plc order by plc.locationName asc")); }