org.compass.core.config.process
Class NullValueMappingProcessor

java.lang.Object
  extended by org.compass.core.config.process.NullValueMappingProcessor
All Implemented Interfaces:
MappingProcessor

public class NullValueMappingProcessor
extends Object
implements MappingProcessor

Goes through each ClassMapping and handles its null value definition. If CompassEnvironment.NullValue.NULL_VALUE is set, will use it to set all unset null values. If it is not set, will leave the null values as is.

In case it is set, then will disable null value for mappings that have null value of CompassEnvironment.NullValue.DISABLE_NULL_VALUE_FOR_MAPPING value.

Author:
kimchy

Constructor Summary
NullValueMappingProcessor()
           
 
Method Summary
 CompassMapping process(CompassMapping compassMapping, PropertyNamingStrategy namingStrategy, ConverterLookup converterLookup, CompassSettings settings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullValueMappingProcessor

public NullValueMappingProcessor()
Method Detail

process

public CompassMapping process(CompassMapping compassMapping,
                              PropertyNamingStrategy namingStrategy,
                              ConverterLookup converterLookup,
                              CompassSettings settings)
                       throws MappingException
Specified by:
process in interface MappingProcessor
Throws:
MappingException


Copyright (c) 2004-2008 The Compass Project.