/** * saveChartType */ public ims.core.vo.ChartTypeVo saveChartType(ims.core.vo.ChartTypeVo recordVo) throws ims.domain.exceptions.StaleObjectException, UniqueKeyViolationException { if (!recordVo.isValidated()) throw new DomainRuntimeException("ChartTypeVo record has not been validated"); DomainFactory factory = getDomainFactory(); ChartType bo = ChartTypeVoAssembler.extractChartType(factory, recordVo); try { factory.save(bo); } catch (UnqViolationUncheckedException e) { throw new UniqueKeyViolationException(e); } return ChartTypeVoAssembler.create(bo); }
/** * getChartType */ public ims.core.vo.ChartTypeVo getChartType(ims.core.charting.vo.ChartTypeRefVo refObj) { return ChartTypeVoAssembler.create((ChartType) getDomainFactory().getDomainObject(ChartType.class, refObj.getID_ChartType())); }
public ChartTypeVo getChartType(ChartTypeRefVo id) { return ChartTypeVoAssembler.create((ChartType)getDomainFactory().getDomainObject(ChartType.class, id.getID_ChartType())); }