1 package org.tigris.scarab.om; 2 3 48 49 import java.util.List ; 50 import java.util.HashMap ; 51 import org.apache.torque.TorqueException; 52 import org.apache.torque.om.Persistent; 53 54 60 public class AttributeOptionManager 61 extends BaseAttributeOptionManager 62 { 63 68 public AttributeOptionManager() 69 throws TorqueException 70 { 71 super(); 72 setRegion(getClassName().replace('.', '_')); 73 validFields = new HashMap (); 74 validFields.put(AttributeOptionPeer.OPTION_ID, null); 75 } 76 77 protected Persistent putInstanceImpl(Persistent om) 78 throws TorqueException 79 { 80 Persistent oldOm = super.putInstanceImpl(om); 81 List listeners = (List )listenersMap.get(AttributeOptionPeer.OPTION_ID); 82 notifyListeners(listeners, oldOm, om); 83 return oldOm; 84 } 85 86 91 public AttributeOption getInstanceImpl() 92 { 93 return new AttributeOption(); 94 } 95 96 } 97 | Popular Tags |