|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Default impl that returns parentName & childName accordingly.
Method Summary | |
---|---|
String |
getIdentifierFor(String nodeName)
Returns the name of the property that will identify the node. |
String |
getReferenceFor(String nodeName)
Returns the name of the property that references another node. |
Object |
newInstance(Class klass, Map attributes)
Create a new instance of Class klass. |
String |
resolveChildRelationName(String parentName, Object parent, String childName, Object child)
Follow the most conventional plural in English, add 's' to childName. |
String |
resolveChildRelationName(String parentName, Object parent, String childName, Object child)
Returns the mapping name of child -> parent |
String |
resolveParentRelationName(String parentName, Object parent, String childName, Object child)
Follow the most conventional pattern, returns the parentName unchanged. |
String |
resolveParentRelationName(String parentName, Object parent, String childName, Object child)
Returns the mapping name of child -> parent |
Method Detail |
---|
public String getIdentifierFor(String nodeName)
public String getReferenceFor(String nodeName)
public Object newInstance(Class klass, Map attributes)
public String resolveChildRelationName(String parentName, Object parent, String childName, Object child)
public String resolveChildRelationName(String parentName, Object parent, String childName, Object child)
public String resolveParentRelationName(String parentName, Object parent, String childName, Object child)
public String resolveParentRelationName(String parentName, Object parent, String childName, Object child)