Pro MongoDB Development, 1st ed.

Author:

Language: English

Approximative price 47.46 €

In Print (Delivery period: 15 days).

Add to cartAdd to cart
Publication date:
481 p. · 17.8x25.4 cm · Paperback
Pro MongoDB Development is about MongoDB, a NoSQL database based on the BSON (binary JSON) document model. The book discusses all aspects of using MongoDB in web applications: Java, PHP, Ruby, JavaScript are the most commonly used programming/scripting languages and the book discusses accessing MongoDB database with these languages. 

The book also discusses using Java EE frameworks Kundera and Spring Data with MongoDB. As NoSQL databases are commonly used with the Hadoop ecosystem the book also discusses using MongoDB with Apache Hive. Migration from other NoSQL databases (Apache Cassandra and Couchbase) and from relational databases (Oracle Database) is also discussed. 

What You'll Learn:
  • How to use a Java client and MongoDB shell
  • How to use MongoDB with PHP, Ruby, and Node.js as well
  • How to migrate Apache Cassandra tables to MongoDB documents; Couchbase to MongoDB; and transferring data between Oracle and MongoDB
  • How to use Kundera, Spring Data, and Spring XD with MongoDB
  • How to load MongoDB data into Oracle Database and integrating MongoDB with Oracle Database in Oracle Data Integrator

  • Audience:

    The target audience of the book is NoSQL database developers. Target audience includes Java, PHP and Ruby developers. The book is suitable for an intermediate level course in NoSQL database. 

    Section I: Java Client and Shell

    1. Using a Java Client with MongoDB
    Setting the Environment
    Creating a Java Project
    Creating a BSON Document in MongoDB
    Using a Model to Create a BSON Document in MongoDB 
    Getting Data from MongoDB
    Updating Data in MongoDB
    Deleting Data in MongoDB

    2. Using the MongoDB Shell
    Setting the Environment
    Starting the mongo Shell
    Connecting to MongoDB from the mongo Shell
    Running a Command or Method in mongo Shell
    Getting Databases Info
    Creating a Database Instance
    Creating a Collection
    Adding a Document
    Adding a Batch of Documents
    Saving a Document
    Updating a Document
    Updating Multiple Documents
    Finding One Document
    Finding All Documents
    Finding Selected Fields 
    Using the Cursor
    Finding and Modifying a Document
    Removing  a Document
    Dropping a Collection
    Dropping a Database

    Section II-Scripting Languages
    3. Using MongoDB with PHP

    Overview of the MongoDB database Driver
    Setting the Environment
    Creating a Connection 
    Getting Collections Info
    Getting a Collection
    Adding a Document
    Adding Multiple D
    ocuments
    A
    dding a Batch of Documents
    Finding a Single Document
    Finding All Documents
    Finding a Subset of Documents
    Updating a Document
    Updating Multiple Documents
    Saving a Document
    Removing a Document
    Dropping a Collection

    4. Using MongoDB with Ruby

    Overview of the Ruby Driver for MongoDB
    Setting the Environment
    Creating a Connection with MongoDB
    Getting Database Info
    Creating a Collection
    Adding a Single Document
    Adding Multiple Documents
    Finding a Single Document
    Finding Documents
    Using Queries for Finding Documents
    Finding and Modifying a Document
    Updating a Document
    Updating Multiple Documents
    Saving a Document
    Deleting a Document

    5. Using MongoDB with Node.js

    Overview of Node Driver for MongoDB
    Setting the Environment
    Creating a MongoDB Connection
    Creating a Database  
    Creating a Collection
    Adding Documents
    Finding a Single Document
    Finding All Documents
    Finding a Subset of Documents
    Using the Cursor
    Finding and Modifying a Document
    Finding and Removing a Document
    Updating a Single Document
    Updating Multiple Docume
    nt
    Saving a Doc
    ument
    Removing a Document

    Section III-Migration
    6. Migrating a Apache Cassandra Table to a MongoDB Document
    Setting the Environment
    Creating a Java Project
    Creating a Document in Apache Cassandra
    Migrating the Cassandra Document to MongoDB   
     
    7. Migrating   Couchbase to MongoDB
    Setting the Environment
    Creating a Java Project
    Adding a Document to Couchbase
    Migrating Couchbase Document to MongoDB

    8. Transferring Data Between Oracle Database and MongoDB
        Setting the Environment
        Creating a Oracle Database Table
        Exporting Oracle Database to a CSV File
        Importing the CSV File in MongoDB
        Exporting MongoDB Document as CSV File
        Importing a CSV File to Oracle Database

    Section IV-Java EE

    9. Using Kundera with MongoDB

    Setting the Environment
    Creating a MongoDB Collection
    Creating a Maven Project in Eclipse
    Installing the kundera-mongo Module
    Creating a JPA Entity Class
    Configuring JPA in persistence.xml Configu
    ration file
    Creating  a JPA Client Class
    Running JPA CRUD Operations
        Creating a Catalog
        Finding a Catalog Entry using the Entity Class
        Finding a Catalog Entry
    using a JPA Query
        Updating a Catalog Entry
        Deleting a Catalog Entry
    The Kundera Mongo  JPA Client Class
    Running the Kundera Mongo  JPA Client Class
     
            
    10. Using Spring Data with MongoDB

    Setting the Environment
    Creating a Maven Project
    Installing Spring Data MongoDB
    Configuring JavaConfig
    Creating  a Model
    Using Spring Data with Couchbase with Template
      Creating a MongoDB Collection
      Creating Document Instances
      Adding a Document
      Adding a Document Batch
      Finding a Document by Id
      Finding One Document
      Finding All Documents
      Finding Documents using a Query
      Updating the First Document 
      Update Multiple Documents
      Removing Documents
    Using Spring Data Repositories with MongoDB 
      Document Count
      Find
    ing Entities from Repository
        Finding All Documents
        Finding  One Document
      Saving
    Entities
        Saving a Single Document
        Saving a Batch of Documents
      Deleting Entities
        Deleting a Document By Id
    Deleting All Documents 
     
    Section V-Hadoop
    11. Loading MongoDB Data into Oracle Database  
                Overview of Hive Storage Handler for MongoDB
                Setting the Environment
                Creating a MongoDB Data Store
                Creating an External Table in Hive
    Loading the Hive Table with Oracle Loader for Hadoop
    12. Integrating MongoDB  with Oracle Database in Oracle Data Integrator
                Setting the Environment
                Creating the Physical Architecture
               Creating the Logical Architecture
           
       Creating the Data Models
               Creating the Integration Project
               Creating the Integration Interface
               Running the Interface
               Selecting Integrated Data in Oracle Data
    base Table

    Deepak Vohra is an Oracle Certified Associate and a Sun Certified Java Programmer. Deepak is a Fellow British Computer Scoiety.  Deepak has published in Oracle Magazine, OTN, IBM developerWorks, ONJava, DevSource,  WebLogic Developer’s Journal, XML Journal, Java Developer’s Journal, FTPOnline, and devx.




    A unique book focused on development with MongoDB using Java as well as scripting programming languages and techniques

    Deepak Vohra is a certified Java programmer/developer who has experience in big data and NoSQL programming

    MongoDB along with Hadoop and Java are some of today's most important big data and cloud computing technologies for today's professionals