Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-383

MongoDB getDB() method deprecated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 1.3.0.Beta7
    • jberet-core, jberet-support
    • None

    Description

      MongoItemReaderWriterBase.java:[159,25] getDB(java.lang.String) in com.mongodb.Mongo has been deprecated. It should be updated to use the correct API.

      http://api.mongodb.com/java/3.3/com/mongodb/Mongo.html

      @Deprecated
      public DB getDB(String dbName)

      Deprecated. use MongoClient.getDatabase(String)

      Gets a database object. Users should use MongoClient.getDatabase(String) instead.
      The DB class has been superseded by MongoDatabase. The deprecation of this method effectively deprecates the DB, DBCollection, and DBCursor classes, among others; but in order to give users time to migrate to the new API without experiencing a huge number of compiler warnings, those classes have not yet been formally deprecated.

      Parameters:
      dbName - the name of the database to retrieve
      Returns:
      a DB representing the specified database

      Attachments

        Issue Links

          Activity

            People

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: