lib/storages/databases/mongodb/MongoDatabase.js
function MongoDatabase(configuration) {
  MongoDatabase.super_.call(this, configuration);

  Object.defineProperties(this, {

    /**
     * The name of the replica set.
     *
     * @property replicaSet
     * @type String
     * @final
     */
    replicaSet: {value: configuration.replicaSet},

    /**
     * A comma separated list of secondary servers.
     *
     * @property seedlist
     * @type String
     * @final
     */
    seedlist: {value: configuration.seedlist},

    /**
     * The connected database.
     *
     * @property database
     * @type Db
     * @final
     */
    db: {
      value: null,
      writable: true
    }

  });
}
function MongoDatabase(configuration) {
  MongoDatabase.super_.call(this, configuration);

  Object.defineProperties(this, {

    /**
     * The name of the replica set.
     *
     * @property replicaSet
     * @type String
     * @final
     */
    replicaSet: {value: configuration.replicaSet},

    /**
     * A comma separated list of secondary servers.
     *
     * @property seedlist
     * @type String
     * @final
     */
    seedlist: {value: configuration.seedlist},

    /**
     * The connected database.
     *
     * @property database
     * @type Db
     * @final
     */
    db: {
      value: null,
      writable: true
    }

  });
}
function MongoDatabase ( configuration ) { MongoDatabase . super_ . call ( this , configuration ) ; Object . defineProperties ( this , { /**
     * The name of the replica set.
     *
     * @property replicaSet
     * @type String
     * @final
     */ replicaSet : { value : configuration . replicaSet } , /**
     * A comma separated list of secondary servers.
     *
     * @property seedlist
     * @type String
     * @final
     */ seedlist : { value : configuration . seedlist } , /**
     * The connected database.
     *
     * @property database
     * @type Db
     * @final
     */ db : { value : null , writable : true } } ) ; }
Defines a MongoDB Database.

@class MongoDatabase
@extends Database
@constructor
@param {Object} configuration A database configuration object
@param {String} configuration.host MongoDB server host
@param {Number} configuration.port MongoDB server port
@param {String} configuration.database The name of the database
@param {String} configuration.username The name of the database user
@param {String} configuration.password The password of the database user
@param {String} [configuration.replicaSet] The name of the ReplicaSet
@param {String} [configuration.seedlist] The comma separated list of secondary servers
Defines a MongoDB Database .