1 2 12 package com.versant.core.jdo.tools.enhancer.info; 13 14 import java.util.*; 15 import java.io.*; 16 17 18 19 22 public class ClassInfo { 23 private String className; 24 private String objectidClass; 25 private String persistenceCapableSuperclass; 26 private String topName; 27 28 private ClassInfo topPersistenceCapableSuperclass; 29 30 private Set fieldList = new TreeSet(); 31 32 private int identityType; 33 private boolean hasKeyGen; 34 private boolean isInstanceCallbacks = false; 35 36 public boolean isInstanceCallbacks() { 37 return isInstanceCallbacks; 38 } 39 40 public void setInstanceCallbacks(boolean instanceCallbacks) { 41 isInstanceCallbacks = instanceCallbacks; 42 } 43 44 public String getTopName() { 45 return topName; 46 } 47 48 public void setTopName(String topName) { 49 this.topName = topName; 50 } 51 52 public boolean isKeyGen() { 53 return hasKeyGen; 54 } 55 56 public void setKeyGen(boolean hasKeyGen) { 57 this.hasKeyGen = hasKeyGen; 58 } 59 60 61 public ClassInfo() {} 62 65 public void setTopPCSuperClass(ClassInfo topPersistenceCapableSuperclass){ 66 this.topPersistenceCapableSuperclass = topPersistenceCapableSuperclass; 67 } 68 71 public ClassInfo getTopPCSuperClass(){ 72 return topPersistenceCapableSuperclass; 73 } 74 77 public void setClassName(String className){ 78 this.className = className; 79 } 80 83 public String getClassName(){ 84 return className; 85 } 86 89 public void setIdentityType(int identityType){ 90 this.identityType = identityType; 91 } 92 95 public int getIdentityType(){ 96 return identityType; 97 } 98 101 public void setObjectidClass(String objectidClass){ 102 this.objectidClass = objectidClass; 103 } 104 107 public String getObjectidClass(){ 108 return objectidClass; 109 } 110 111 114 public void setPersistenceCapableSuperclass(String persistenceCapableSuperclass){ 115 this.persistenceCapableSuperclass = persistenceCapableSuperclass; 116 } 117 120 public String getPersistenceCapableSuperclass(){ 121 return persistenceCapableSuperclass; 122 } 123 124 127 public void setFieldList(Set fieldList){ 128 this.fieldList = fieldList; 129 } 130 133 public Set getFieldList(){ 134 return fieldList; 135 } 136 137 138 public String toString(){ 139 return "\n************ Class "+className+"************\n"+ 140 "className = "+className+"\n"+ 141 "identityType = "+identityType+"\n"+ 142 "objectidClass = "+objectidClass+"\n"+ 143 "persistenceCapableSuperclass = "+persistenceCapableSuperclass+"\n"+ 144 "topPersistenceCapableSuperclass= "+(topPersistenceCapableSuperclass == null ? null : topPersistenceCapableSuperclass.className)+"\n"+ 145 "fieldList = "+fieldList+"\n"+ 146 "********************************************\n"; 147 } 148 } 149 | Popular Tags |