1 2 3 package org.tigris.scarab.om; 4 5 6 import java.util.List ; 7 import java.util.HashMap ; 8 import org.apache.torque.TorqueException; 9 import org.apache.torque.om.Persistent; 10 11 12 18 public class AttributeClassManager 19 extends BaseAttributeClassManager 20 { 21 26 public AttributeClassManager() 27 throws TorqueException 28 { 29 super(); 30 setRegion(getClassName().replace('.', '_')); 31 validFields = new HashMap (); 32 validFields.put(AttributeClassPeer.ATTRIBUTE_CLASS_ID, null); 33 } 34 35 protected Persistent putInstanceImpl(Persistent om) 36 throws TorqueException 37 { 38 Persistent oldOm = super.putInstanceImpl(om); 39 List listeners = (List )listenersMap 40 .get(AttributeClassPeer.ATTRIBUTE_CLASS_ID); 41 notifyListeners(listeners, oldOm, om); 42 return oldOm; 43 } 44 45 46 public AttributeClass getInstanceImpl() 47 { 48 return new AttributeClass(); 49 } 50 } 51 52 53 54 55 56 | Popular Tags |