|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.introspectors.relations.GlobalRelationStore
public final class GlobalRelationStore
The problems in finding releations using introspectors is to avaid cyclic dependencies. This singelton is used as such a store of properties (OneToMany, OneToOne,...) to avoid such dependencies
Method Summary | |
---|---|
Property |
getProperty(java.lang.Class forClass,
java.lang.Class forType)
Returns the releation properties for special class (entity bean). |
Property |
getProperty(java.lang.Class forClass,
java.lang.String propertyName)
Returns the property based on the class and the name. |
static GlobalRelationStore |
getStore()
Returns the singelton instance. |
void |
put(java.lang.Class forClass,
Property toSave)
Save a property wich represents a relation in a class (bean). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GlobalRelationStore getStore()
public void put(java.lang.Class forClass, Property toSave)
forClass
- -
the entity bean classtoSave
- -
the property to savepublic Property getProperty(java.lang.Class forClass, java.lang.String propertyName)
forClass
- -
the class where the property is inpropertyName
- -
the name of the property
public Property getProperty(java.lang.Class forClass, java.lang.Class forType)
forClass
- -
the class where the property is inforType
- -
the type of the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |