1 19 20 package org.apache.cayenne.reflect; 21 22 import java.util.Iterator ; 23 24 import org.apache.cayenne.map.ObjEntity; 25 26 32 public interface ClassDescriptor { 33 34 39 ObjEntity getEntity(); 40 41 44 Class getObjectClass(); 45 46 50 ClassDescriptor getSuperclassDescriptor(); 51 52 60 ClassDescriptor getSubclassDescriptor(Class objectClass); 61 62 65 Object createObject(); 66 67 71 void injectValueHolders(Object object) throws PropertyException; 72 73 77 void shallowMerge(Object from, Object to) throws PropertyException; 78 79 85 Property getProperty(String propertyName); 86 87 93 Property getDeclaredProperty(String propertyName); 94 95 101 Iterator getProperties(); 102 103 108 Iterator getIdProperties(); 109 110 115 boolean visitProperties(PropertyVisitor visitor); 116 117 125 boolean visitDeclaredProperties(PropertyVisitor visitor); 126 127 135 boolean visitAllProperties(PropertyVisitor visitor); 136 137 140 boolean isFault(Object object); 141 } 142 | Popular Tags |