@Internal
public final class MongoUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
MongoUtils() |
Modifier and Type | Method and Description |
---|---|
static com.mongodb.client.model.Collation |
bsonDocumentAsCollation(org.bson.BsonDocument collationDocument) |
static org.bson.BsonValue |
entityIdValue(io.micronaut.core.convert.ConversionService<?> conversionService,
RuntimePersistentEntity<?> persistentEntity,
java.lang.Object entity,
org.bson.codecs.configuration.CodecRegistry codecRegistry) |
static org.bson.BsonValue |
idValue(io.micronaut.core.convert.ConversionService<?> conversionService,
RuntimePersistentEntity<?> persistentEntity,
java.lang.Object idValue,
org.bson.codecs.configuration.CodecRegistry codecRegistry) |
static org.bson.BsonValue |
toBsonValue(io.micronaut.core.convert.ConversionService<?> conversionService,
java.lang.Object value,
org.bson.codecs.configuration.CodecRegistry codecRegistry) |
public static final java.lang.String ID
public static com.mongodb.client.model.Collation bsonDocumentAsCollation(@Nullable org.bson.BsonDocument collationDocument)
public static org.bson.BsonValue entityIdValue(io.micronaut.core.convert.ConversionService<?> conversionService, RuntimePersistentEntity<?> persistentEntity, java.lang.Object entity, org.bson.codecs.configuration.CodecRegistry codecRegistry)
public static org.bson.BsonValue idValue(io.micronaut.core.convert.ConversionService<?> conversionService, RuntimePersistentEntity<?> persistentEntity, java.lang.Object idValue, org.bson.codecs.configuration.CodecRegistry codecRegistry)
public static org.bson.BsonValue toBsonValue(io.micronaut.core.convert.ConversionService<?> conversionService, java.lang.Object value, org.bson.codecs.configuration.CodecRegistry codecRegistry)