[JAVA-924] Deprecate protected fields in com.mongodb.gridfs.{GridFS,GridFSFile} Created: 13/Aug/13  Updated: 12/May/14  Resolved: 16/Aug/13

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

Type: Task Priority: Major - P3
Reporter: Uladzimir Mihura Assignee: Unassigned
Resolution: Done Votes: 0
Labels: 2to3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JAVA-1210 Remove deprecated protected fields in... Closed

 Description   

Fields to be deprecated:
GridFS

  • protected final DB _db;
  • protected final String _bucketName;
  • protected final DBCollection _filesCollection;
  • protected final DBCollection _chunkCollection;

GridFSFile

  • protected GridFS _fs;

Following methods will be added to use instead:

  • GridFS.getFilesCollection()
  • GridFS.getChunksCollection()
  • GridFSFile.getGridFS()

For other deprecated fields there are getters already.



 Comments   
Comment by auto [ 15/Aug/13 ]

Author:

{u'username': u'trnl', u'name': u'Uladzimir Mihura', u'email': u'trnl.me@gmail.com'}

Message: JAVA-924: deprecate access to protected fields in gridfs
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c3e5e8aa2c372d297a305a1a29cc55bae25d962b

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