Package groovy.util
Interface ObjectGraphBuilder.RelationNameResolver
-
- All Known Implementing Classes:
ObjectGraphBuilder.DefaultRelationNameResolver
- Enclosing class:
- ObjectGraphBuilder
public static interface ObjectGraphBuilder.RelationNameResolverStrategy for resolving a relationship property name.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringresolveChildRelationName(String parentName, Object parent, String childName, Object child)Returns the mapping name of child -> parentStringresolveParentRelationName(String parentName, Object parent, String childName, Object child)Returns the mapping name of parent -> child
-
-
-
Method Detail
-
resolveChildRelationName
String resolveChildRelationName(String parentName, Object parent, String childName, Object child)
Returns the mapping name of child -> parent- Parameters:
parentName- the name of the parent nodeparent- the parent nodechildName- the name of the child nodechild- the child node
-
resolveParentRelationName
String resolveParentRelationName(String parentName, Object parent, String childName, Object child)
Returns the mapping name of parent -> child- Parameters:
parentName- the name of the parent nodeparent- the parent nodechildName- the name of the child nodechild- the child node
-
-