Interface PanacheUpdate
- All Known Implementing Classes:
PanacheUpdateImpl
public interface PanacheUpdate
Interface representing an update query.
Use one of its methods to perform the update query.
-
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.
-
Method Details
-
where
Execute the update query with the update document.- Parameters:
query- ainvalid reference
query stringparams- params optional sequence of indexed parameters- Returns:
- the number of entities updated.
-
where
Execute the update query with the update document.- Parameters:
query- ainvalid reference
query stringparams-Mapof named parameters- Returns:
- the number of entities updated.
-
where
Execute the update query with the update document.- Parameters:
query- ainvalid reference
query stringparams-Parametersof named parameters- Returns:
- the number of entities updated.
-
where
long where(org.bson.conversions.Bson query) Execute the update query with the update document.- Parameters:
query- aBsonquery- Returns:
- the number of entities updated.
-
all
long all()Execute an update on all documents with the update document.- Returns:
- the number of entities updated.
-