Class DbUpdate
java.lang.Object
io.clonecloudstore.common.database.utils.DbUpdate
DbUpdate (Update command) for both SQL and NoSQL.
A DbUpdate is not ready to use as is. It must be used through PostgreSqlHelper or
MongoSqlHelper or natively using Repository.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DbUpdate
public DbUpdate()
-
-
Method Details
-
set
Add one value to a field Set- Returns:
- this
-
addToSet
Add one value to a set field (or array for Postgre)- Returns:
- this
-
setArray
Set a collection of values plus one to a field array- Returns:
- this
-
getSqlParams
- Returns:
- the Parameters (SQL) of this Update
-
getSqlQuery
- Returns:
- the StringBuilder of this Sql Update command
-
getBson
public org.bson.conversions.Bson getBson()- Returns:
- the Bson form of this Update for NoSQL
-