KMongoUtil

object KMongoUtil

Internal utility methods

Properties

Link copied to clipboard
val defaultCodecRegistry: CodecRegistry

The KMongo base codec registry.

Link copied to clipboard
const val EMPTY_JSON: String

Functions

Link copied to clipboard
Link copied to clipboard
fun <TItem : Any> encodeValue(writer: BsonDocumentWriter, value: TItem?, codecRegistry: CodecRegistry)
Link copied to clipboard
fun extractId(obj: Any, clazz: KClass<*>): Any
Link copied to clipboard
fun filterIdToBson(obj: Any, filterNullProperties: Boolean = !ObjectMappingConfiguration.serializeNull): BsonDocument
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getIdBsonValue(idValue: Any?): BsonValue?
Link copied to clipboard
fun getIdValue(value: Any): Any?
Link copied to clipboard
fun idFilterQuery(id: Any): Bson
Link copied to clipboard
fun setModifier(obj: Any, updateOnlyNotNullProperties: Boolean = false): Bson
Link copied to clipboard
fun toBson(json: String): BsonDocument
fun <T : Any> toBson(json: String, type: KClass<T>): BsonDocument
Link copied to clipboard
fun toBsonList(json: Array<out String>, codecRegistry: CodecRegistry): List<Bson>
Link copied to clipboard
fun toBsonModifier(obj: Any, updateOnlyNotNullProperties: Boolean = false): Bson
Link copied to clipboard
Link copied to clipboard
fun <T : Any> toWriteModel(json: Array<out String>, codecRegistry: CodecRegistry, type: KClass<T>): List<WriteModel<BsonDocument>>