KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > caucho > amber > cfg > MappedSuperclassConfig


1 /*
2  * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved
3  *
4  * This file is part of Resin(R) Open Source
5  *
6  * Each copy or derived work must preserve the copyright notice and this
7  * notice unmodified.
8  *
9  * Resin Open Source is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * Resin Open Source is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
17  * of NON-INFRINGEMENT. See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Resin Open Source; if not, write to the
22  *
23  * Free Software Foundation, Inc.
24  * 59 Temple Place, Suite 330
25  * Boston, MA 02111-1307 USA
26  *
27  * @author Rodrigo Westrupp
28  */

29
30 package com.caucho.amber.cfg;
31
32
33 /**
34  * <mapped-superclass> tag in the orm.xml
35  */

36 public class MappedSuperclassConfig extends AbstractEnhancedConfig {
37
38   // attributes
39
private String JavaDoc _className;
40   private boolean _isMetadataComplete;
41
42   // elements
43
private String JavaDoc _description;
44   private IdClassConfig _idClass;
45   private boolean _excludeDefaultListeners;
46   private boolean _excludeSuperclassListeners;
47   private EntityListenersConfig _entityListeners;
48   private PrePersistConfig _prePersist;
49   private PostPersistConfig _postPersist;
50   private PreRemoveConfig _preRemove;
51   private PostRemoveConfig _postRemove;
52   private PreUpdateConfig _preUpdate;
53   private PostUpdateConfig _postUpdate;
54   private PostLoadConfig _postLoad;
55   private AttributesConfig _attributes;
56
57   /**
58    * Returns the attributes.
59    */

60   public AttributesConfig getAttributes()
61   {
62     return _attributes;
63   }
64
65   /**
66    * Returns the class name.
67    */

68   public String JavaDoc getClassName()
69   {
70     return _className;
71   }
72
73   /**
74    * Returns true if the metadata is complete.
75    */

76   public boolean isMetaDataComplete()
77   {
78     return _isMetadataComplete;
79   }
80
81   /**
82    * Sets the attributes.
83    */

84   public void setAttributes(AttributesConfig attributes)
85   {
86     _attributes = attributes;
87   }
88
89   /**
90    * Sets the class name.
91    */

92   public void addClass(String JavaDoc className)
93   {
94     _className = className;
95   }
96
97   /**
98    * Sets the metadata is complete (true) or not (false).
99    */

100   public void setMetaDataComplete(boolean isMetaDataComplete)
101   {
102     _isMetadataComplete = isMetaDataComplete;
103   }
104
105   public String JavaDoc getDescription()
106   {
107     return _description;
108   }
109
110   public void setDescription(String JavaDoc description)
111   {
112     _description = description;
113   }
114
115   public IdClassConfig getIdClass()
116   {
117     return _idClass;
118   }
119
120   public void setIdClass(IdClassConfig idClass)
121   {
122     _idClass = idClass;
123   }
124
125   public boolean getExcludeDefaultListeners()
126   {
127     return _excludeDefaultListeners;
128   }
129
130   public void setExcludeDefaultListeners(boolean excludeDefaultListeners)
131   {
132     _excludeDefaultListeners = excludeDefaultListeners;
133   }
134
135   public boolean getExcludeSuperclassListeners()
136   {
137     return _excludeSuperclassListeners;
138   }
139
140   public void setExcludeSuperclassListeners(boolean excludeSuperclassListeners)
141   {
142     _excludeSuperclassListeners = excludeSuperclassListeners;
143   }
144
145   public EntityListenersConfig getEntityListeners()
146   {
147     return _entityListeners;
148   }
149
150   public void setEntityListeners(EntityListenersConfig entityListeners)
151   {
152     _entityListeners = entityListeners;
153   }
154
155   public PrePersistConfig getPrePersist()
156   {
157     return _prePersist;
158   }
159
160   public void setPrePersist(PrePersistConfig prePersist)
161   {
162     _prePersist = prePersist;
163   }
164
165   public PostPersistConfig getPostPersist()
166   {
167     return _postPersist;
168   }
169
170   public void setPostPersist(PostPersistConfig postPersist)
171   {
172     _postPersist = postPersist;
173   }
174
175   public PreRemoveConfig getPreRemove()
176   {
177     return _preRemove;
178   }
179
180   public void setPreRemove(PreRemoveConfig preRemove)
181   {
182     _preRemove = preRemove;
183   }
184
185   public PostRemoveConfig getPostRemove()
186   {
187     return _postRemove;
188   }
189
190   public void setPostRemove(PostRemoveConfig postRemove)
191   {
192     _postRemove = postRemove;
193   }
194
195   public PreUpdateConfig getPreUpdate()
196   {
197     return _preUpdate;
198   }
199
200   public void setPreUpdate(PreUpdateConfig preUpdate)
201   {
202     _preUpdate = preUpdate;
203   }
204
205   public PostUpdateConfig getPostUpdate()
206   {
207     return _postUpdate;
208   }
209
210   public void setPostUpdate(PostUpdateConfig postUpdate)
211   {
212     _postUpdate = postUpdate;
213   }
214
215   public PostLoadConfig getPostLoad()
216   {
217     return _postLoad;
218   }
219
220   public void setPostLoad(PostLoadConfig postLoad)
221   {
222     _postLoad = postLoad;
223   }
224
225   public String JavaDoc toString()
226   {
227     return "MappedSuperclassConfig[" + _className + "]";
228   }
229 }
230
Popular Tags