Package dev.morphia.query
Class Update<T>
- java.lang.Object
-
- dev.morphia.query.UpdateBase<T>
-
- dev.morphia.query.Update<T>
-
- Type Parameters:
T
-
public class Update<T> extends UpdateBase<T>
Defines an update operation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mongodb.client.result.UpdateResult
execute()
Executes the updatecom.mongodb.client.result.UpdateResult
execute(UpdateOptions options)
Executes the update-
Methods inherited from class dev.morphia.query.UpdateBase
add, getCollection, getDatastore, getQuery, getUpdates, toDocument, toString
-
-
-
-
Method Detail
-
execute
public com.mongodb.client.result.UpdateResult execute()
Executes the update- Returns:
- the results
-
execute
public com.mongodb.client.result.UpdateResult execute(UpdateOptions options)
Executes the update- Parameters:
options
- the options to apply- Returns:
- the results
-
-