Examples of MongoDBDataSource


Examples of no.priv.garshol.duke.datasources.MongoDBDataSource

      writeParam(pp, "password", jdbc.getPassword());
      writeParam(pp, "query", jdbc.getQuery());

    } else if (src instanceof MongoDBDataSource) {
      name = "data-source";
      MongoDBDataSource mongodb = (MongoDBDataSource) src;
      String klass = mongodb.getClass().getName();
      AttributeListImpl attribs = new AttributeListImpl();
      attribs.addAttribute("class", "CDATA", klass);
      pp.startElement(name, attribs);

      writeParam(pp, "server-address", mongodb.getServerAddress());
      writeParam(pp, "port-number", mongodb.getPortNumber());
      writeParam(pp, "user-name", mongodb.getUserName());
      writeParam(pp, "password", mongodb.getPassword());
      writeParam(pp, "db-auth", mongodb.getDbAuth());
      writeParam(pp, "database", mongodb.getDatabase());
      writeParam(pp, "cursor-notimeout", mongodb.getCursorNotimeout());
      writeParam(pp, "collection", mongodb.getCollection());
      writeParam(pp, "query", mongodb.getQuery());
      writeParam(pp, "projection", mongodb.getProjection());
    } else if (src instanceof CSVDataSource) {
      name = "csv";
      CSVDataSource csv = (CSVDataSource) src;
      pp.startElement(name, null);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.