public ims.core.vo.MotorChartAreaDetailVoCollection saveConfiguration(ims.core.vo.MotorChartAreaDetailVoCollection configuration) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.ForeignKeyViolationException, ims.domain.exceptions.UniqueKeyViolationException { if (configuration == null) throw new DomainInterfaceException("Configuration is empty"); if (!configuration.isValidated()) throw new DomainRuntimeException("Motor Chart Area Configuration not validated"); DomainFactory domainFactory = getDomainFactory(); for (int i = 0; i < configuration.size(); i++) { domainFactory.save(MotorChartAreaDetailVoAssembler.extractMotorChartAreaDetail(domainFactory, configuration.get(i))); } return configuration; }
public MotorChartAreaDetailVo getMotorChartArea(MotorChartAreaDetailRefVo motorChartArea) throws DomainInterfaceException { if (motorChartArea == null || !motorChartArea.getID_MotorChartAreaDetailIsNotNull()) return null; return MotorChartAreaDetailVoAssembler.create((MotorChartAreaDetail) getDomainFactory().getDomainObject(MotorChartAreaDetail.class, motorChartArea.getID_MotorChartAreaDetail())); }
public MotorChartAreaDetailVoCollection listMotorCharAreaDetail() { String hqlString = "from MotorChartAreaDetail"; return MotorChartAreaDetailVoAssembler.createMotorChartAreaDetailVoCollectionFromMotorChartAreaDetail(getDomainFactory().find(hqlString)); }
public ims.core.vo.MotorChartAreaDetailVoCollection listConfiguration() throws ims.domain.exceptions.DomainInterfaceException { String hqlQuery = "from MotorChartAreaDetail as mc"; return MotorChartAreaDetailVoAssembler.createMotorChartAreaDetailVoCollectionFromMotorChartAreaDetail(getDomainFactory().find(hqlQuery)); }