org.objectweb.jorm.api

Interface PClassMapping.ReferenceConfigurator

public static interface PClassMapping.ReferenceConfigurator

Method Summary

PClassMapping
getGenClassMapping(String sourceclassName, String refFieldName, String[] genClassNames)
It retrieves the PClassMapping which must be associated to the field specified in parameter.
PClassMapping
getGenClassMapping(String sourceclassName, String refFieldName, String[] genClassNames, String destclassName)
It retrieves the PClassMapping which must be associated to the field specified in parameter.
PNameCoder
getPNameCoder(String sourceclassName, String refFieldName, String destclassName)
It retrieves the PNameCoder which must be associated to the field specified in parameter.
PNameCoder
getPNameCoder(String sourceclassName, String refFieldName, String[] genClassNames)
It retrieves the PNameCoder which should manage the reference.

Method Details

getGenClassMapping

public PClassMapping getGenClassMapping(String sourceclassName,
                                        String refFieldName,
                                        String[] genClassNames)
It retrieves the PClassMapping which must be associated to the field specified in parameter.

Parameters:
sourceclassName - is the class name of the non generic class name which references a begin of the chain of generic Object.
refFieldName - is the reference field.
genClassNames - is the list of the generic class name.

Returns:
the PClassMapping to use for the specified field


getGenClassMapping

public PClassMapping getGenClassMapping(String sourceclassName,
                                        String refFieldName,
                                        String[] genClassNames,
                                        String destclassName)
It retrieves the PClassMapping which must be associated to the field specified in parameter.

Parameters:
sourceclassName - is the class name of the non generic class name which references a begin of the chain of generic Object.
refFieldName - is the reference field.
genClassNames - is the list of the generic class name.
destclassName - is the class name of the referenced Object.

Returns:
the PClassMapping to use for the specified field


getPNameCoder

public PNameCoder getPNameCoder(String sourceclassName,
                                String refFieldName,
                                String destclassName)
It retrieves the PNameCoder which must be associated to the field specified in parameter.

Parameters:
sourceclassName - is the class name which reference the object.
refFieldName - is the reference field.
destclassName - is the class name of the referenced Object.

Returns:
the PNameCoder to use for the specified field


getPNameCoder

public PNameCoder getPNameCoder(String sourceclassName,
                                String refFieldName,
                                String[] genClassNames)
It retrieves the PNameCoder which should manage the reference.

Parameters:
sourceclassName - is the class name of the non generic class name which references a begin of the chain of generic Object.
refFieldName - is the reference field.
genClassNames - is the list of the generic class name.

Returns:
the PNameCoder to use for the specified field