Class MongoUtils

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

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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bson.BsonValue
    entityIdValue(io.micronaut.core.convert.ConversionService conversionService, RuntimePersistentEntity<Object> persistentEntity, Object entity, org.bson.codecs.configuration.CodecRegistry codecRegistry)
     
    static <T> org.bson.BsonValue
    idValue(io.micronaut.core.convert.ConversionService conversionService, RuntimePersistentEntity<T> persistentEntity, Object idValue, org.bson.codecs.configuration.CodecRegistry codecRegistry)
     
    static org.bson.BsonValue
    toBsonValue(io.micronaut.core.convert.ConversionService conversionService, Object value, org.bson.codecs.configuration.CodecRegistry codecRegistry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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(io.micronaut.core.convert.ConversionService conversionService, Object value, org.bson.codecs.configuration.CodecRegistry codecRegistry)