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 InsertOneOptionsInsertOneOptions. bypassDocumentValidation(Boolean bypassDocumentValidation)Sets whether to bypass document validation.InsertOneOptionsInsertOneOptions. collection(String collection)Specifies an alternate collection to use rather than the mapped collection.InsertOneOptionsInsertOneOptions. comment(String comment)InsertOneOptionsInsertOneOptions. comment(BsonValue comment)InsertOneOptionsInsertOneOptions. unsetMissing(boolean unset)Applies the rules for storing null/empty values for fields no present in the object to be merged.InsertOneOptionsInsertOneOptions. 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> voidDatastore. insert(T entity, InsertOneOptions options)Inserts an entity in to the mapped collection.<T> voidDatastoreImpl. insert(T entity, InsertOneOptions options)abstract <T> InsertOneResultDatastoreImpl.DatastoreOperations. insertOne(MongoCollection<T> collection, T entity, InsertOneOptions options)<T> TDatastore. 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> TDatastoreImpl. merge(T entity, InsertOneOptions options)<T> TDatastore. save(T entity, InsertOneOptions options)Saves an entity (Object) and updates the @Id field<T> TDatastoreImpl. save(T entity, InsertOneOptions options)Constructors in dev.morphia with parameters of type InsertOneOptions Constructor Description InsertOneOptions(InsertOneOptions that)
-