Class PanacheUpdateImpl
- java.lang.Object
-
- io.quarkus.mongodb.panache.common.runtime.PanacheUpdateImpl
-
- All Implemented Interfaces:
PanacheUpdate
public class PanacheUpdateImpl extends Object implements PanacheUpdate
-
-
Constructor Summary
Constructors Constructor Description PanacheUpdateImpl(MongoOperations operations, Class<?> entityClass, org.bson.conversions.Bson update, com.mongodb.client.MongoCollection collection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
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
where(String query, Object... params)
Execute the update query with the update document.long
where(String query, Map<String,Object> params)
Execute the update query with the update document.
-
-
-
Constructor Detail
-
PanacheUpdateImpl
public PanacheUpdateImpl(MongoOperations operations, Class<?> entityClass, org.bson.conversions.Bson update, com.mongodb.client.MongoCollection collection)
-
-
Method Detail
-
where
public long where(String query, Object... params)
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
public long where(String query, Map<String,Object> params)
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
public long where(String query, Parameters params)
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.
-
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.
-
-