KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cayenne > jpa > map > JpaManagedClass


1 /*****************************************************************
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  ****************************************************************/

19
20 package org.apache.cayenne.jpa.map;
21
22 import org.apache.cayenne.util.TreeNodeChild;
23
24 public abstract class JpaManagedClass {
25
26     protected JpaClassDescriptor classDescriptor;
27
28     protected String JavaDoc className;
29     protected AccessType access;
30     protected boolean metadataComplete;
31     protected String JavaDoc description;
32
33     protected JpaAttributes attributes;
34
35     public JpaClassDescriptor getClassDescriptor() {
36         return classDescriptor;
37     }
38
39     public void setClassDescriptor(JpaClassDescriptor classDescriptor) {
40         this.classDescriptor = classDescriptor;
41     }
42
43     public AccessType getAccess() {
44         return access;
45     }
46
47     public void setAccess(AccessType access) {
48         this.access = access;
49     }
50
51     public String JavaDoc getClassName() {
52         return className;
53     }
54
55     public void setClassName(String JavaDoc className) {
56         this.className = className;
57     }
58
59     public boolean isMetadataComplete() {
60         return metadataComplete;
61     }
62
63     public void setMetadataComplete(boolean metadataComplete) {
64         this.metadataComplete = metadataComplete;
65     }
66
67     public String JavaDoc getDescription() {
68         return description;
69     }
70
71     public void setDescription(String JavaDoc description) {
72         this.description = description;
73     }
74
75     @TreeNodeChild
76     public JpaAttributes getAttributes() {
77         if (attributes == null) {
78             attributes = new JpaAttributes();
79         }
80         return attributes;
81     }
82
83     public void setAttributes(JpaAttributes attributes) {
84         this.attributes = attributes;
85     }
86 }
87
Popular Tags