* INTERNAL:
* Process this converter for the given mapping.
*/
public void process(DatabaseMapping mapping, boolean isForMapKey, String attributeName) {
if (mapping.isDirectMapMapping() && isForMapKey) {
((DirectMapMapping) mapping).setKeyConverter(new ConverterClass(getJavaClassName(), isForMapKey, fieldClassification.getName()));
} else if (mapping.isDirectCollectionMapping()) {
((DirectCollectionMapping) mapping).setValueConverter(new ConverterClass(getJavaClassName(), isForMapKey, fieldClassification.getName()));
} else if (mapping.isDirectToFieldMapping()) {
((AbstractDirectMapping) mapping).setConverter(new ConverterClass(getJavaClassName(), isForMapKey, fieldClassification.getName()));
} else if (mapping.isAggregateObjectMapping()) {
((AggregateObjectMapping) mapping).addConverter(new ConverterClass(getJavaClassName(), isForMapKey, fieldClassification.getName()), attributeName);
} else if (mapping.isAggregateCollectionMapping()) {
// TODO: Be nice to support converters on AggregateCollections keys.
// For now they are silently ignored.
}
}