Class MorphiaPropertySerialization

  • All Implemented Interfaces:
    org.bson.codecs.pojo.PropertySerialization

    public class MorphiaPropertySerialization
    extends Object
    implements org.bson.codecs.pojo.PropertySerialization
    Determines if a property should be serialized or not
    • Constructor Detail

      • MorphiaPropertySerialization

        public MorphiaPropertySerialization​(MapperOptions options,
                                            FieldModelBuilder field)
        Parameters:
        options - the options to apply
        field - the field in question
    • Method Detail

      • shouldSerialize

        public boolean shouldSerialize​(Object value)
        Specified by:
        shouldSerialize in interface org.bson.codecs.pojo.PropertySerialization