com.bm.introspectors.relations
Class RelationPropertyResolver

java.lang.Object
  extended by com.bm.introspectors.relations.RelationPropertyResolver

public final class RelationPropertyResolver
extends java.lang.Object

Helper class to find properties wich are inwolved in releations.

Author:
Daniel Wiese

Method Summary
static Property findAttributeForRelationAtOtherSide(java.lang.Class<java.lang.Object> declaredInClass, java.lang.String mappedBy)
          Search the attribute representing the releation on the !other side!
static Property findAttributeForRelationAtOtherSide(Property aktProperty)
          Search the attribute representing the relation on the !other side!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findAttributeForRelationAtOtherSide

public static Property findAttributeForRelationAtOtherSide(java.lang.Class<java.lang.Object> declaredInClass,
                                                           java.lang.String mappedBy)
Search the attribute representing the releation on the !other side!

Parameters:
declaredInClass - - the other side class holding the mappedBy attribute
mappedBy - - the attribute name mapping the property (on the other side)
Returns:
- the property (if found)

findAttributeForRelationAtOtherSide

public static Property findAttributeForRelationAtOtherSide(Property aktProperty)
Search the attribute representing the relation on the !other side!

Parameters:
aktProperty - - the current property representing this side
Returns:
- the property (if found)


Copyright © 2008. All Rights Reserved.