evt_spec_sel); } public function setEvtSpecSel($evt_spec_sel) { parent::setEvtSpecSel($evt_spec_sel->getValue()); } public function getEvtSpec() { return new EventSpec($this->evt_spec_sel, $this->evt_spec_val); } public function setEvtSpec(EventSpec $evt_spec) { parent::setEvtSpecSel($evt_spec->getSelector()->getValue()); parent::setEvtSpecVal($evt_spec->getValue()); } public function getByName($name, $type = BasePeer::TYPE_PHPNAME) { switch ($name) { case 'evt_spec': return $this->getEvtSpec(); break; default: } return parent::getByName($name, $type); } public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) { switch ($name) { case 'evt_spec': return $this->setEvtSpec($value); break; default: } return parent::setByName($name, $value, $type); } /** * Overrides parent method to maintain modification counting */ public function save(PropelPDO $con = null) { if ($this->isNew() || $this->mod >= 999999) { $this->setMod(0); } else { $this->setMod($this->mod + 1); } return parent::save($con); } /** * Overrides and extents parent method to check ref int */ public function delete(PropelPDO $con = null) { $rels = $this->getAess(); if (! $rels->isEmpty()) return GenericAdmin::EC_INT_VIOL; $rels = $this->getBess(); if (! $rels->isEmpty()) return GenericAdmin::EC_INT_VIOL; $rels = $this->getFess(); if (! $rels->isEmpty()) return GenericAdmin::EC_INT_VIOL; $rels = $this->getTasars(); if (! $rels->isEmpty()) return GenericAdmin::EC_INT_VIOL; $rels = $this->getTasars(); if (! $rels->isEmpty()) return GenericAdmin::EC_INT_VIOL; return parent::delete($con); } } // AlarmEventDescriptor