1 package org.tigris.scarab.om; 2 3 48 49 import java.util.List ; 50 import java.util.HashMap ; 51 52 import org.apache.torque.TorqueException; 53 import org.apache.torque.om.Persistent; 54 55 63 public class DependManager 64 extends BaseDependManager 65 { 66 71 public DependManager() 72 throws TorqueException 73 { 74 super(); 75 validFields = new HashMap (); 76 validFields.put(DependPeer.DEPEND_ID, null); 77 validFields.put(DependPeer.OBSERVER_ID, null); 78 validFields.put(DependPeer.OBSERVED_ID, null); 79 validFields.put(DependPeer.DEPEND_TYPE_ID, null); 80 validFields.put(DependPeer.DELETED, null); 81 } 82 83 protected Persistent putInstanceImpl(Persistent om) 84 throws TorqueException 85 { 86 Persistent oldOm = super.putInstanceImpl(om); 87 List listeners = (List )listenersMap.get(DependPeer.DEPEND_ID); 88 notifyListeners(listeners, oldOm, om); 89 listeners = (List )listenersMap.get(DependPeer.OBSERVER_ID); 90 notifyListeners(listeners, oldOm, om); 91 listeners = (List )listenersMap.get(DependPeer.OBSERVED_ID); 92 notifyListeners(listeners, oldOm, om); 93 listeners = (List )listenersMap.get(DependPeer.DEPEND_TYPE_ID); 94 notifyListeners(listeners, oldOm, om); 95 listeners = (List )listenersMap.get(DependPeer.DELETED); 96 notifyListeners(listeners, oldOm, om); 97 return oldOm; 98 } 99 } 100 | Popular Tags |