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 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.
-
Method Details
-
where
Execute the update query with the update document.- Parameters:
query
- aquery string
params
- params optional sequence of indexed parameters- Returns:
- the number of entities updated.
-
where
Execute the update query with the update document.- Parameters:
query
- aquery string
params
-Map
of named parameters- Returns:
- the number of entities updated.
-
where
Execute the update query with the update document.- Parameters:
query
- aquery string
params
-Parameters
of named parameters- Returns:
- the number of entities updated.
-
where
long where(org.bson.Document query) Execute the update query with the update document.- Parameters:
query
- aDocument
query- 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.
-