Uses of Class
dev.morphia.InsertOneOptions
-
Packages that use InsertOneOptions Package Description dev.morphia dev.morphia.experimental -
-
Uses of InsertOneOptions in dev.morphia
Methods in dev.morphia that return InsertOneOptions Modifier and Type Method Description InsertOneOptions
InsertOneOptions. bypassDocumentValidation(Boolean bypassDocumentValidation)
Sets whether to bypass document validation.InsertOneOptions
InsertOneOptions. clientSession(com.mongodb.client.ClientSession clientSession)
InsertOneOptions
InsertOneOptions. writeConcern(com.mongodb.WriteConcern writeConcern)
Set the write concern to use for the insert.Methods in dev.morphia with parameters of type InsertOneOptions Modifier and Type Method Description <T> void
Datastore. insert(T entity, InsertOneOptions options)
Inserts an entity in to the mapped collection.protected <T> void
DatastoreImpl. insert(com.mongodb.client.MongoCollection collection, T entity, InsertOneOptions options)
<T> void
DatastoreImpl. insert(T entity, InsertOneOptions options)
<T> T
Datastore. merge(T entity, InsertOneOptions options)
Work as if you did an update with each field in the entity doing a $set; Only at the top level of the entity.<T> T
DatastoreImpl. merge(T entity, InsertOneOptions options)
<T> T
Datastore. save(T entity, InsertOneOptions options)
Saves an entity (Object) and updates the @Id field<T> T
DatastoreImpl. save(T entity, InsertOneOptions options)
protected <T> void
DatastoreImpl. saveDocument(T entity, com.mongodb.client.MongoCollection<T> collection, InsertOneOptions options)
Constructors in dev.morphia with parameters of type InsertOneOptions Constructor Description InsertOneOptions(InsertOneOptions that)
-
Uses of InsertOneOptions in dev.morphia.experimental
Methods in dev.morphia.experimental with parameters of type InsertOneOptions Modifier and Type Method Description <T> void
MorphiaSessionImpl. insert(T entity, InsertOneOptions options)
<T> T
MorphiaSessionImpl. merge(T entity, InsertOneOptions options)
<T> T
MorphiaSessionImpl. save(T entity, InsertOneOptions options)
-