Package io.jsondb.query
Class Update
- java.lang.Object
-
- io.jsondb.query.Update
-
public class Update extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Update()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getUpdateData()Updateset(java.lang.String key, java.lang.Object value)static Updateupdate(java.lang.String key, java.lang.Object value)Static factory method to create an Update using the provided key
-
-
-
Method Detail
-
update
public static Update update(java.lang.String key, java.lang.Object value)
Static factory method to create an Update using the provided key- Parameters:
key- the field name for the update operationvalue- the value to set for the field- Returns:
- Updated object
-
set
public Update set(java.lang.String key, java.lang.Object value)
-
getUpdateData
public java.util.Map<java.lang.String,java.lang.Object> getUpdateData()
-
-