1 package org.tigris.scarab.om; 2 3 48 49 import java.util.HashMap ; 50 import java.util.List ; 51 52 import org.apache.torque.TorqueException; 53 import org.apache.torque.om.Persistent; 54 55 61 public class AttributeManager 62 extends BaseAttributeManager 63 { 64 69 public AttributeManager() 70 throws TorqueException 71 { 72 super(); 73 setRegion(getClassName().replace('.', '_')); 74 validFields = new HashMap (); 75 validFields.put(AttributePeer.ATTRIBUTE_ID, null); 76 } 77 78 protected Persistent putInstanceImpl(Persistent om) 79 throws TorqueException 80 { 81 Persistent oldOm = super.putInstanceImpl(om); 82 List listeners = (List )listenersMap.get(AttributePeer.ATTRIBUTE_ID); 83 notifyListeners(listeners, oldOm, om); 84 return oldOm; 85 } 86 87 public Attribute getInstanceImpl() 88 { 89 return new Attribute(); 90 } 91 } 92 | Popular Tags |