java.lang.Object
org.eclipse.persistence.internal.nosql.adapters.mongo.MongoDatabaseConnection
All Implemented Interfaces:
Connection

public class MongoDatabaseConnection extends Object implements Connection
Connection to Mongo This connection wraps a Mongo DB.
Since:
EclipseLink 2.7
  • Field Details

    • spec

      protected MongoJCAConnectionSpec spec
    • transaction

      protected MongoTransaction transaction
    • db

      protected com.mongodb.client.MongoDatabase db
    • isExternal

      protected boolean isExternal
  • Constructor Details

    • MongoDatabaseConnection

      public MongoDatabaseConnection(com.mongodb.MongoClient mongo, com.mongodb.client.MongoDatabase db, boolean isExternal, MongoJCAConnectionSpec spec)
      Create the connection on a native AQ session. The session must be connected to a JDBC connection.
  • Method Details