@Override @Transactional(value="cacheTransactionManager") public List<ProcessChange> doCreateEquipment(ConfigurationElement element) throws IllegalAccessException {
  Equipment equipment=super.createAbstractEquipment(element);
  equipmentFacade.addEquipmentToProcess(equipment.getId(),equipment.getProcessId());
  EquipmentUnitAdd equipmentUnitAdd=new EquipmentUnitAdd(element.getSequenceId(),equipment.getId(),processXMLProvider.getEquipmentConfigXML(equipment.getId()));
  List<ProcessChange> result=new ArrayList<ProcessChange>();
  result.add(new ProcessChange(equipment.getProcessId(),equipmentUnitAdd));
  updateControlTagInformation(element,equipment);
  return result;
}

@ Override @ Transactional ( value = "cacheTransactionManager" ) public List < ProcessChange > doCreateEquipment ( ConfigurationElement element ) throws IllegalAccessException { Equipment equipment = super . createAbstractEquipment ( element ) ; equipmentFacade . addEquipmentToProcess ( equipment . getId ( ) , equipment . getProcessId ( ) ) ; EquipmentUnitAdd equipmentUnitAdd = new EquipmentUnitAdd ( element . getSequenceId ( ) , equipment . getId ( ) , processXMLProvider . getEquipmentConfigXML ( equipment . getId ( ) ) ) ; List < ProcessChange > result = new ArrayList < ProcessChange > ( ) ; result . add ( new ProcessChange ( equipment . getProcessId ( ) , equipmentUnitAdd ) ) ; updateControlTagInformation ( element , equipment ) ; return result ; }
inserts the equipment into the cache and updates the db . the process in the cache is updated to refer to the new equipment . < p > also updates the associated cache object in the alivetimer and commfaulttag caches .
