public ims.admin.vo.AppointmentTrackingstatusColourConfigVo getColorConfig(ims.vo.LookupInstVo lookupInstance) { if(lookupInstance == null) throw new CodingRuntimeException("Can not get AppointmentTrackingColorConfigVo for null LookupInstVo."); DomainFactory factory = getDomainFactory(); return AppointmentTrackingstatusColourConfigVoAssembler.create((AppointmentTrackingstatusColourConfig) factory.findFirst("from AppointmentTrackingstatusColourConfig as atsc where atsc.trackingStatus.id = :statusLookup and atsc.isRIE is null", new String[] {"statusLookup"}, new Object[] {lookupInstance.getID()})); }
public ims.admin.vo.AppointmentTrackingstatusColourConfigVo saveColorConfig(ims.admin.vo.AppointmentTrackingstatusColourConfigVo colorConfig) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.UniqueKeyViolationException { if(colorConfig == null) throw new CodingRuntimeException("record is null in method save"); if(!colorConfig.isValidated()) throw new CodingRuntimeException("record has not been validated in method save"); DomainFactory factory = getDomainFactory(); AppointmentTrackingstatusColourConfig doColorConfig = AppointmentTrackingstatusColourConfigVoAssembler.extractAppointmentTrackingstatusColourConfig(factory, colorConfig); factory.save(doColorConfig); return AppointmentTrackingstatusColourConfigVoAssembler.create(doColorConfig); }
public AppointmentTrackingstatusColourConfigVo getTrackingColorConfig(LookupInstVo trackingStatus) { if(trackingStatus == null) throw new CodingRuntimeException("Can not get AppointmentTrackingColorConfigVo for null LookupInstVo."); DomainFactory factory = getDomainFactory(); return AppointmentTrackingstatusColourConfigVoAssembler.create((AppointmentTrackingstatusColourConfig) factory.findFirst("from AppointmentTrackingstatusColourConfig as atsc where atsc.trackingStatus.id = :statusLookup and atsc.isRIE is null", new String[] {"statusLookup"}, new Object[] {trackingStatus.getID()})); }
private AppointmentTrackingstatusColourConfigVoCollection listTrackingStatusColorConfiguration() { return AppointmentTrackingstatusColourConfigVoAssembler.createAppointmentTrackingstatusColourConfigVoCollectionFromAppointmentTrackingstatusColourConfig(getDomainFactory().find(" from AppointmentTrackingstatusColourConfig")); }