01: /*
02: $Header: /cvsroot/xorm/xorm/src/org/xorm/util/jdoxml/JDOClass.java,v 1.1 2002/10/03 06:54:57 wbiggs Exp $
03:
04: This file is part of XORM.
05:
06: XORM is free software; you can redistribute it and/or modify
07: it under the terms of the GNU General Public License as published by
08: the Free Software Foundation; either version 2 of the License, or
09: (at your option) any later version.
10:
11: XORM is distributed in the hope that it will be useful,
12: but WITHOUT ANY WARRANTY; without even the implied warranty of
13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: GNU General Public License for more details.
15:
16: You should have received a copy of the GNU General Public License
17: along with XORM; if not, write to the Free Software
18: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: */
20: package org.xorm.util.jdoxml;
21:
22: import java.util.ArrayList;
23: import java.util.Collection;
24:
25: /**
26: * Represents a JDO XML class declaration.
27: */
28: public class JDOClass {
29: private Collection fields = new ArrayList();
30: private Collection extensions = new ArrayList();
31: private String name;
32: private JDOIdentityType identityType;
33: private String objectIdClass;
34: private boolean requiresExtent;
35: private String persistenceCapableSuperclass;
36:
37: public String getName() {
38: return name;
39: }
40:
41: public void setName(String name) {
42: this .name = name;
43: }
44:
45: public Collection getFields() {
46: return fields;
47: }
48:
49: public Collection getExtensions() {
50: return extensions;
51: }
52:
53: public JDOIdentityType getIdentityType() {
54: return identityType;
55: }
56:
57: public void setIdentityType(JDOIdentityType identityType) {
58: this .identityType = identityType;
59: }
60:
61: public String getObjectIdClass() {
62: return objectIdClass;
63: }
64:
65: public void setObjectIdClass(String objectIdClass) {
66: this .objectIdClass = objectIdClass;
67: }
68:
69: public boolean requiresExtent() {
70: return requiresExtent;
71: }
72:
73: public void setRequiresExtent(boolean value) {
74: this .requiresExtent = value;
75: }
76:
77: public String getPersistenceCapableSuperclass() {
78: return persistenceCapableSuperclass;
79: }
80:
81: public void setPersistenceCapableSuperclass(
82: String persistenceCapableSuperclass) {
83: this.persistenceCapableSuperclass = persistenceCapableSuperclass;
84: }
85: }
|