KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > tigris > scarab > om > AttributeTypeManager


1
2
3 package org.tigris.scarab.om;
4
5 import java.util.List JavaDoc;
6 import java.util.HashMap JavaDoc;
7 import org.apache.torque.TorqueException;
8 import org.apache.torque.om.Persistent;
9
10 /**
11  * This class manages AttributeType objects.
12  * The skeleton for this class was autogenerated by Torque * You should add additional methods to this class to meet the
13  * application requirements. This class will only be generated as
14  * long as it does not already exist in the output directory.
15  */

16 public class AttributeTypeManager
17     extends BaseAttributeTypeManager
18 {
19     /**
20      * Creates a new <code>AttributeTypeManager</code> instance.
21      *
22      * @exception TorqueException if an error occurs
23      */

24     public AttributeTypeManager()
25         throws TorqueException
26     {
27         super();
28         setRegion(getClassName().replace('.', '_'));
29         validFields = new HashMap JavaDoc();
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 JavaDoc listeners = (List JavaDoc)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