[JAVA-1659] Add Bson interface to enable type-safe MongoCollection API Created: 24/Feb/15  Updated: 31/Mar/15  Resolved: 27/Feb/15

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.0.0

Type: Improvement 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


 Description   

Introduce the Bson interface, and replaced all use of Object in the high-level API with it.

BasicDBObject, Document, and BsonDocument will implement this interface, so any of them can be used to specify filter, sort, projection, update, etc. Third parties can create their own implementations to allow for other types to be used that are not included in the driver proper.



 Comments   
Comment by Jeffrey Yemin [ 31/Mar/15 ]

Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.

Comment by Githook User [ 27/Feb/15 ]

Author:

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

Message: Updated names / documentation based on new conventions

Refs: JAVA-1659
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/08f94b3b6aab5273d30440b98154261fe01bef83

Comment by Githook User [ 27/Feb/15 ]

Author:

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

Message: Completed work of replacing Object with the Bson type in the high-level API.

JAVA-1659
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/7e284496435cdcccc07a8cd80e6d15519db839e3

Comment by Githook User [ 24/Feb/15 ]

Author:

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

Message: Introduced Bson interface, and replaced all use of Object in the high-level API with it.
BasicDBObject, Document, and BsonDocument all implement this interface, so any of them can
be used to specify filter, sort, projection, update, etc. Third parties can create their
own implementations to allow for other types to be used that are not included in the driver
proper.

JAVA-1659
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/30630b6c216a67a2a0fb1162f2f931f068f13d74

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