Package fr.eolya.utils.nosql.mongodb

Examples of fr.eolya.utils.nosql.mongodb.MongoDBConnection


public class DBConnectionFactory {

  public static IDBConnection getDBConnectionInstance(String type, String dbHost, int dbPort, String userName, String userPassword) {
    if ("mongodb".equals(type)) {
      try {
        return  new MongoDBConnection(dbHost, dbPort, userName, userPassword);
      } catch (UnknownHostException e) {
        e.printStackTrace();
        return null;
      }
    }
View Full Code Here

TOP

Related Classes of fr.eolya.utils.nosql.mongodb.MongoDBConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.