[JAVA-1661] Create generic builder for update operators Created: 25/Feb/15  Updated: 07/Oct/15  Resolved: 21/May/15

Status: Closed
Project: Java Driver
Component/s: Write Operations
Affects Version/s: None
Fix Version/s: 3.1.0

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

Related to JAVA-1660. The update builder will support a syntax like:

collection.updateOne(filter, inc("x", 1));
collection.updateOne(filter, updates(set("y", 4)), inc("x", 1));



 Comments   
Comment by Jeffrey Yemin [ 07/Oct/15 ]

Released in 3.1.0

Comment by Githook User [ 23/May/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Docs fix top matter

JAVA-1661
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/0c25bcc94ae9646a82bc36a055a4356ad9c58650

Comment by Githook User [ 21/May/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Reference documentation for Updates class

JAVA-1661
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a63bbd8511e509d84495a88e29242f53b0aa287f

Comment by Githook User [ 21/May/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Removed varargs for Updates.addToSet
Renamed Updates.addToSet List<TItem> overload to addEachToSet
Add Updates.pushEach overload that doesn't take PushOptions
Removed field name from Updates.pullByFilter so that callers can use Filters static factory methods
Added manual references to the Updates bitwise methods

JAVA-1661
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/3eabb082cffbd9c8590042b5f287d0ec7fbad2b1

Comment by Githook User [ 09/May/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Added Updates class containing static factory methods that are builders for all MongoDB update operators.

JAVA-1661
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/1a111c9c8a9f6305b0d3e1571144fec0271e4c08

Generated at Thu Feb 08 08:55:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.