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