|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.hibernate.tool.class2hbm.ReflectedClass
public class ReflectedClass
a ReflectedClass is created by MapGenerator instances for every class encountered, from map.addClass(), while chasing the superclass chain, or grokking properties
Constructor Summary | |
---|---|
protected |
ReflectedClass(MapGenerator map,
Class cls)
|
Method Summary | |
---|---|
protected void |
addReflectedClass(ReflectedClass rc)
|
protected void |
addSuperclassProps()
add to this class the properties of all its superclasses |
String |
getName()
used by gui |
ReflectedProperty[] |
getProperties()
used by gui |
ReflectedClass[] |
getSubclasses()
used by gui |
protected ReflectedProperty |
getUidProp(String[] niceKeys)
called to determine if the class has a UID property |
protected void |
getXML(int level)
dump the OR-Mapping XML for a root class and all of its subclasses that share a table and UID |
protected void |
getXMLasComponent(int level,
String propName)
dump the OR-Mapping XML for a class used as a component |
protected void |
getXMLasComposite(int level)
|
protected void |
getXMLasMany2Many(int level)
|
protected void |
getXMLasSubclass(int level)
dump the OR-Mapping XML for a non-root class and all of its subclasses that share its table and UID |
protected boolean |
hasProperties()
does this class have any properties? this is not reliable until addSuperclassProps() is called once first |
protected boolean |
isPersistent()
has the class been deemed hibernate-persistable? if not, it may still be useful as a component or may be serializable |
protected void |
setPersistent(boolean p)
called by MappinByReflection when this class has been deemed hibernate-persistable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ReflectedClass(MapGenerator map, Class cls)
Method Detail |
---|
public String getName()
public ReflectedProperty[] getProperties()
public ReflectedClass[] getSubclasses()
protected void addReflectedClass(ReflectedClass rc)
protected boolean isPersistent()
protected void setPersistent(boolean p)
protected boolean hasProperties()
protected void addSuperclassProps()
protected void getXML(int level)
protected void getXMLasSubclass(int level)
protected void getXMLasComponent(int level, String propName)
propName
- the property name of the property containing this componentprotected void getXMLasComposite(int level)
protected void getXMLasMany2Many(int level)
protected ReflectedProperty getUidProp(String[] niceKeys)
niceKeys
- an array of candidate UID names
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |