[JAVA-1866] the getDB() is disposed by the getDatabase, but the GridFS use DB as a parameter only Created: 19/Jun/15  Updated: 11/Sep/19  Resolved: 22/Jun/15

Status: Closed
Project: Java Driver
Component/s: GridFS
Affects Version/s: 3.0.2
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: smithbob Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

linux ubuntu 14.04 LTS
mongoDB
netbeans 8.02
java drivers



 Description   

i just found that the using MongoClient to replace Mongo, so use client.getDatabase() to replace mongo.getDB(), but why the GridFS only receive the DB params as the only type , i just can case MongoDatabase to DB, but the getDB is disposed from the mongoClient



 Comments   
Comment by Jeffrey Yemin [ 19/Jun/15 ]

In scope of JAVA-1713 we will be creating a new GridFS API, and that API will depend on MongoDatabase rather than DB. Until then you'll have to make due with the current GridFS API. Please watch JAVA-1713 for updates.

Comment by smithbob [ 19/Jun/15 ]

sorry, the problem is to cast MongoDatabase to DB.

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