public class KMongoUtil
Internal utility methods
@NotNull public static java.lang.String EMPTY_JSON
public static KMongoUtil INSTANCE
Internal utility methods
@NotNull public org.bson.codecs.configuration.CodecRegistry getDefaultCodecRegistry()
@NotNull
public java.lang.Object generateNewIdForIdClass(@NotNull
kotlin.reflect.KClass<? extends java.lang.Object> idClass)
@NotNull
public org.bson.BsonDocument toBson(@NotNull
java.lang.String json)
@NotNull
public <T> org.bson.BsonDocument toBson(@NotNull
java.lang.String json,
@NotNull
kotlin.reflect.KClass<T> type)
@NotNull
public java.util.List<org.bson.conversions.Bson> toBsonList(@NotNull
java.lang.String[] json,
@NotNull
org.bson.codecs.configuration.CodecRegistry codecRegistry)
@NotNull
public org.bson.BsonDocument filterIdToBson(@NotNull
java.lang.Object obj,
boolean filterNullProperties)
@NotNull
public java.lang.String formatJson(@NotNull
java.lang.String json)
@NotNull
public java.lang.String toExtendedJson(@NotNull
java.lang.Object obj)
@NotNull
public org.bson.conversions.Bson idFilterQuery(@NotNull
java.lang.Object id)
@NotNull
public org.bson.conversions.Bson toBsonModifier(@NotNull
java.lang.Object obj,
boolean updateOnlyNotNullProperties)
@NotNull
public org.bson.conversions.Bson setModifier(@NotNull
java.lang.Object obj,
boolean updateOnlyNotNullProperties)
@NotNull
public java.lang.Object extractId(@NotNull
java.lang.Object obj,
@NotNull
kotlin.reflect.KClass<?> clazz)
@NotNull
public <T> java.util.List<com.mongodb.client.model.WriteModel> toWriteModel(@NotNull
java.lang.String[] json,
@NotNull
org.bson.codecs.configuration.CodecRegistry codecRegistry,
@NotNull
kotlin.reflect.KClass<T> type)
@NotNull
public java.lang.String defaultCollectionName(@NotNull
kotlin.reflect.KClass<?> clazz)
@Nullable
public java.lang.Object getIdValue(@NotNull
java.lang.Object value)
public <TItem> void encodeValue(@NotNull
org.bson.BsonDocumentWriter writer,
@Nullable
TItem value,
@NotNull
org.bson.codecs.configuration.CodecRegistry codecRegistry)
@Nullable
public org.bson.BsonValue getIdBsonValue(@Nullable
java.lang.Object idValue)