Class MongoUtils

java.lang.Object
io.micronaut.data.mongodb.operations.MongoUtils

@Internal public final class MongoUtils extends Object
Mongo internal utils.
  • Field Details

  • Method Details

    • entityIdValue

      public static org.bson.BsonValue entityIdValue(io.micronaut.core.convert.ConversionService conversionService, RuntimePersistentEntity<Object> persistentEntity, Object entity, org.bson.codecs.configuration.CodecRegistry codecRegistry)
    • idValue

      public static <T> org.bson.BsonValue idValue(io.micronaut.core.convert.ConversionService conversionService, RuntimePersistentEntity<T> persistentEntity, Object idValue, org.bson.codecs.configuration.CodecRegistry codecRegistry)
    • toBsonValue

      public static org.bson.BsonValue toBsonValue(@Nullable Object value, org.bson.codecs.configuration.CodecRegistry codecRegistry)