Class PanacheUpdateImpl
java.lang.Object
io.quarkus.mongodb.panache.common.runtime.PanacheUpdateImpl
- All Implemented Interfaces:
PanacheUpdate
-
Constructor Summary
ConstructorDescriptionPanacheUpdateImpl
(MongoOperations operations, Class<?> entityClass, org.bson.conversions.Bson update, com.mongodb.client.MongoCollection collection) -
Method Summary
Modifier and TypeMethodDescriptionlong
all()
Execute an update on all documents with the update document.long
where
(String query, Parameters params) Execute the update query with the update document.long
Execute the update query with the update document.long
Execute the update query with the update document.long
where
(org.bson.Document query) Execute the update query with the update document.
-
Constructor Details
-
PanacheUpdateImpl
public PanacheUpdateImpl(MongoOperations operations, Class<?> entityClass, org.bson.conversions.Bson update, com.mongodb.client.MongoCollection collection)
-
-
Method Details
-
where
Description copied from interface:PanacheUpdate
Execute the update query with the update document.- Specified by:
where
in interfacePanacheUpdate
- Parameters:
query
- aquery string
params
- params optional sequence of indexed parameters- Returns:
- the number of entities updated.
-
where
Description copied from interface:PanacheUpdate
Execute the update query with the update document.- Specified by:
where
in interfacePanacheUpdate
- Parameters:
query
- aquery string
params
-Map
of named parameters- Returns:
- the number of entities updated.
-
where
Description copied from interface:PanacheUpdate
Execute the update query with the update document.- Specified by:
where
in interfacePanacheUpdate
- Parameters:
query
- aquery string
params
-Parameters
of named parameters- Returns:
- the number of entities updated.
-
where
public long where(org.bson.Document query) Description copied from interface:PanacheUpdate
Execute the update query with the update document.- Specified by:
where
in interfacePanacheUpdate
- Parameters:
query
- aDocument
query- Returns:
- the number of entities updated.
-
all
public long all()Description copied from interface:PanacheUpdate
Execute an update on all documents with the update document.- Specified by:
all
in interfacePanacheUpdate
- Returns:
- the number of entities updated.
-