public final class MongoDBHolder extends Object
DB
object created by MongoSourceElement
Constructor and Description |
---|
MongoDBHolder() |
Modifier and Type | Method and Description |
---|---|
static com.mongodb.DB |
getDBFromSource(String varName,
String dbName)
Get access to MongoDB object
|
static com.mongodb.DB |
getDBFromSource(String varName,
String dbName,
String login,
String password)
Get access to MongoDB object
|
public static com.mongodb.DB getDBFromSource(String varName, String dbName)
varName
- String MongoDB sourcedbName
- Mongo DB database nameDB
public static com.mongodb.DB getDBFromSource(String varName, String dbName, String login, String password)
varName
- String MongoDB sourcedbName
- Mongo DB database namelogin
- name to use for loginpassword
- password to use for loginDB
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.