1 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 className; 29 protected AccessType access; 30 protected boolean metadataComplete; 31 protected String 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 getClassName() { 52 return className; 53 } 54 55 public void setClassName(String 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 getDescription() { 68 return description; 69 } 70 71 public void setDescription(String 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 |