[JAVA-31] GridFS.read(String filename) should specify how it handles multiple files with the same name Created: 04/Sep/09  Updated: 02/Oct/09  Resolved: 04/Sep/09

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

Type: Improvement Priority: Minor - P4
Reporter: Jason Sachs Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Since it's possible to store multiple files with the same name (ObjectId unique), it's unclear what GridFS.read(String filename) should do. Either return the first one (hmmmm....) or throw an exception, or return a List<GridFSObject> or Collection<GridFSObject>. My suggestion would be a List<>, I suppose.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 04/Sep/09 ]

better in new api
com.mongodb.gridfs.GridFS

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