Uses of Class
dev.morphia.InsertOneOptions
-
Packages that use InsertOneOptions Package Description dev.morphia -
-
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. collection(String collection)
Specifies an alternate collection to use rather than the mapped collection.InsertOneOptions
InsertOneOptions. comment(String comment)
InsertOneOptions
InsertOneOptions. comment(BsonValue comment)
InsertOneOptions
InsertOneOptions. unsetMissing(boolean unset)
Applies the rules for storing null/empty values for fields no present in the object to be merged.InsertOneOptions
InsertOneOptions. writeConcern(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.<T> void
DatastoreImpl. insert(T entity, InsertOneOptions options)
abstract <T> InsertOneResult
DatastoreImpl.DatastoreOperations. insertOne(MongoCollection<T> collection, 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)
Constructors in dev.morphia with parameters of type InsertOneOptions Constructor Description InsertOneOptions(InsertOneOptions that)
-