1 23 24 25 package com.sun.jdo.api.persistence.enhancer.meta; 26 27 28 53 public interface JDOMetaData 55 { 56 String JDOExternalPath = "com/sun/jdo/api/persistence/support/"; String JDOPath = "com/sun/jdo/spi/persistence/support/sqlstore/"; 59 String JDOPersistenceCapableName = "PersistenceCapable"; String JDOPersistenceCapablePath 61 = JDOPath + JDOPersistenceCapableName; String JDOPersistenceCapableSig 63 = "L" + JDOPersistenceCapablePath + ";"; String JDOPersistenceCapableType 65 = JDOPersistenceCapablePath.replace('/', '.'); 66 67 static String javaLangCloneablePath = "java/lang/Cloneable"; 68 69 String JDOInstanceCallbacksName = "InstanceCallbacks"; String JDOInstanceCallbacksPath 71 = JDOPath + JDOInstanceCallbacksName; String JDOInstanceCallbacksSig 73 = "L" + JDOInstanceCallbacksPath + ";"; String JDOInstanceCallbacksType 75 = JDOInstanceCallbacksPath.replace('/', '.'); 76 77 String JDOSecondClassObjectBaseName = "SCO"; String JDOSecondClassObjectBasePath 79 = JDOPath + JDOSecondClassObjectBaseName; String JDOSecondClassObjectBaseSig 81 = "L" + JDOSecondClassObjectBasePath + ";"; String JDOSecondClassObjectBaseType 83 = JDOSecondClassObjectBasePath.replace('/', '.'); 84 85 String JDOPersistenceManagerName = "PersistenceManager"; String JDOPersistenceManagerPath 88 = JDOExternalPath + JDOPersistenceManagerName; String JDOPersistenceManagerSig 90 = "L" + JDOPersistenceManagerPath + ";"; String JDOPersistenceManagerType 92 = JDOPersistenceManagerPath.replace('/', '.'); 93 94 String JDOStateManagerName = "StateManager"; String JDOStateManagerPath 96 = JDOPath + JDOStateManagerName; String JDOStateManagerSig 98 = "L" + JDOStateManagerPath + ";"; String JDOStateManagerType 100 = JDOStateManagerPath.replace('/', '.'); 101 102 String JDOStateManagerFieldName = "jdoStateManager"; String JDOStateManagerFieldType = JDOStateManagerType; 104 String JDOStateManagerFieldSig = JDOStateManagerSig; 105 106 String JDOFlagsFieldName = "jdoFlags"; String JDOFlagsFieldType = "byte"; String JDOFlagsFieldSig = "B"; 110 119 boolean isTransientClass(String classPath) 120 throws JDOMetaDataUserException, JDOMetaDataFatalError; 121 122 132 boolean isPersistenceCapableClass(String classPath) 133 throws JDOMetaDataUserException, JDOMetaDataFatalError; 134 135 142 boolean isPersistenceCapableRootClass(String classPath) 143 throws JDOMetaDataUserException, JDOMetaDataFatalError; 144 145 153 String getPersistenceCapableRootClass(String classPath) 154 throws JDOMetaDataUserException, JDOMetaDataFatalError; 155 156 162 String getSuperClass(String classPath) 163 throws JDOMetaDataUserException, JDOMetaDataFatalError; 164 165 175 boolean isSecondClassObjectType(String classPath) 176 throws JDOMetaDataUserException, JDOMetaDataFatalError; 177 178 185 boolean isMutableSecondClassObjectType(String classPath) 186 throws JDOMetaDataUserException, JDOMetaDataFatalError; 187 188 195 boolean isPersistentField(String classPath, String fieldName) 196 throws JDOMetaDataUserException, JDOMetaDataFatalError; 197 198 205 boolean isTransactionalField(String classPath, String fieldName) 206 throws JDOMetaDataUserException, JDOMetaDataFatalError; 207 208 215 boolean isPrimaryKeyField(String classPath, String fieldName) 216 throws JDOMetaDataUserException, JDOMetaDataFatalError; 217 218 227 boolean isDefaultFetchGroupField(String classPath, String fieldName) 228 throws JDOMetaDataUserException, JDOMetaDataFatalError; 229 230 238 int getFieldNo(String classPath, String fieldName) 239 throws JDOMetaDataUserException, JDOMetaDataFatalError; 240 241 255 String [] getManagedFields(String classPath) 256 throws JDOMetaDataUserException, JDOMetaDataFatalError; 257 } 258 | Popular Tags |