KickJava   Java API By Example, From Geeks To Geeks.

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


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

18 public class AttributeClassManager
19     extends BaseAttributeClassManager
20 {
21     /**
22      * Creates a new <code>AttributeClassManager</code> instance.
23      *
24      * @exception TorqueException if an error occurs
25      */

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