Class PanacheUpdateImpl
java.lang.Object
io.quarkus.mongodb.panache.common.runtime.PanacheUpdateImpl
- All Implemented Interfaces:
PanacheUpdate
-
Constructor Summary
ConstructorsConstructorDescriptionPanacheUpdateImpl(MongoOperations operations, Class<?> entityClass, org.bson.conversions.Bson update, com.mongodb.client.MongoCollection collection) -
Method Summary
Modifier and TypeMethodDescriptionlongall()Execute an update on all documents with the update document.longExecute the update query with the update document.longExecute the update query with the update document.longExecute the update query with the update document.longwhere(org.bson.conversions.Bson 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:PanacheUpdateExecute the update query with the update document.- Specified by:
wherein interfacePanacheUpdate- Parameters:
query- ainvalid reference
query stringparams- params optional sequence of indexed parameters- Returns:
- the number of entities updated.
-
where
Description copied from interface:PanacheUpdateExecute the update query with the update document.- Specified by:
wherein interfacePanacheUpdate- Parameters:
query- ainvalid reference
query stringparams-Mapof named parameters- Returns:
- the number of entities updated.
-
where
Description copied from interface:PanacheUpdateExecute the update query with the update document.- Specified by:
wherein interfacePanacheUpdate- Parameters:
query- ainvalid reference
query stringparams-Parametersof named parameters- Returns:
- the number of entities updated.
-
where
public long where(org.bson.conversions.Bson query) Description copied from interface:PanacheUpdateExecute the update query with the update document.- Specified by:
wherein interfacePanacheUpdate- Parameters:
query- aBsonquery- Returns:
- the number of entities updated.
-
all
public long all()Description copied from interface:PanacheUpdateExecute an update on all documents with the update document.- Specified by:
allin interfacePanacheUpdate- Returns:
- the number of entities updated.
-