Meta Integration® Model Bridge (MIMB)
"Metadata Integration" Solution

MIMB Bridge Documentation

MIMB Import Bridge from MongoDB NoSQL Database (JSON)

Bridge Specifications

Vendor MongoDB
Tool Name NoSQL Database
Tool Version 3.2
Tool Web Site
Supported Methodology [Database] Multi-Model, Data Store (Physical Data Model) via JDBC API

Import tool: MongoDB NoSQL Database 3.2 (
Import interface: [Database] Multi-Model, Data Store (Physical Data Model) via JDBC API from MongoDB NoSQL Database (JSON)
Import bridge: 'MongoDB' 10.0.0

IMPORTING FROM MONGODB USING NATIVE JAVA DRIVER. This bridge establishes a connection to the MongoDB server using native Java driver in order to extract the physical metadata. It is critical that the parameters are filled correctly to satisfy the local connection requirements on the client workstation that is running the bridge. Please refer to the individual parameter's tool tips for more detailed examples.

Bridge will assign a data type for each JSON attribute according to following samples:
"_id" : { "$oid": "50a9c951300493f64fbffdb6" } STRING (SQL_VARCHAR)
"dateExample" : { "$date" : "2014-01-01T05:00:00.000Z"} DATE_8 (SQL_DATE)
"isoDateExample" : { "$date" : 1491461103897 } DATE_8 (SQL_DATE)
"timestampExample" : { "$timestamp" : { "t" : 1412180887, "i" : 1 } } TIMESTAMP (SQL_TIMESTAMP)
"stringDateExample" : "Thu Apr 06 2017 09:41:51 GMT+0300 (FLE Standard Time)" STRING (SQL_VARCHAR)
"numberLongExample" : { "$numberLong": "7494814965" } LONG_8 (SQL_BIGINT)
"booleanSample" : true BOOLEAN_1 (SQL_BOOLEAN)
"stringSample" : "some text" STRING (SQL_VARCHAR)
"expNumberSample" : 2.99792458e8 DOUBLE_10_5 (SQL_DOUBLE)
"smallNumberSample" : -1 LONG_8 (SQL_BIGINT)
"numberSample" : 3 LONG_8 (SQL_BIGINT)
"floatSample" : 3.141592653589793238462643383279 DOUBLE_10_5 (SQL_DOUBLE)
"rfc7493bignumber" : "9007199254740992" STRING (SQL_VARCHAR)
"expStringSample" : "2.99792458e8" STRING (SQL_VARCHAR)
"arraySample" : [1, 2, 3] array (SQL_ARRAY)
"objectEmptySample" : {} STRING (SQL_VARCHAR)
"nullSample" : null undefined
"nullStringSample" : "null" STRING (SQL_VARCHAR)

Bridge Parameters

Parameter Name Description Type Values Default Scope
Driver version Choose driver version according to database server requirements:
Host Name or IP address of MongoDB server host. If not specified the default value of localhost ( will be used. STRING      
Port MongoDB service port. If not specified the default value of 27017 will be used. NUMERIC   27017  
Authentication Mode Specify Authentication Mode:
User The MongoDB user name on whose behalf the connection is being made. If not specified the anonymous will be used. STRING      
Password The MongoDB user's password on whose behalf the connection is being made. PASSWORD      
Authentication Database Description: you can specify user authentication database.

When the option is empty - will be used 'admin' database.

STRING   admin Mandatory
Databases Description: you can specify a list of MongoDB databases to be imported.

The list can have one or more database names separated by semicolons (e.g. database1; database2).
When the list is empty - all accessible databases are imported.

Collections Description: you can specify a list of MongoDB collections to be imported.
When the list is empty all available collections are imported.
The list can have one or more collection names separated by semicolons (e.g. collection1; collection2).
You can specify collection name patterns using wildcards expressions syntax.
Patterns support inclusions and exclusions.
Here is an example of inclusion syntax, "A%; %B; %C%; D" that tries to get collection names that:
- start with A or
- end with B or
- contain C or
- equal D

Note: when a pattern has special characters, like spaces enclose it in single quote marks (e.g. "'two wo%'; onewo%;").

To exclude a pattern prefix it with NOT. Here is an example of exclusion syntax, "A%; %B; NOT %SYS; NOT 'SYS%'"
Number of sample documents Number of sample documents to be analyzed. If not specified, the default value of 1000 will be used used. NUMERIC      
Use SSL protocol to connect Set this parameter to True when the MongoDB server uses TLS/SSL to encrypt MongoDB’s network traffic.

MongoDB uses SSL to encrypt connections between the server and clients. It does not use it for authenticating and authorizing clients. It the responsibility of the server to employ a valid certificate. The bridge accepts any server SSL certificate.

If you need to ensure that the bridge is able to validate the SSL certificate presented by the server you need to set several JVM system properties using the -j option in the Miscellaneous parameter according to:
Miscellaneous Specify miscellaneous options identified with a -letter and value.

For example, -m 4G -f 100 -j -Dname=value -Xms1G

-m the maximum Java memory size whole number (e.g. -m 4G or -m 2500M ).
-s import system objects that are skipped by default (e.g. -s)
-v set environment variable(s) (e.g. -v var1=value -v var2="value with spaces").
-zip exportFolder folder to store MongoDb documents as Json files (e.g -zip c:/temp/mongodb-json)
-j the last option that is followed by Java command line options (e.g. -j[path to a trust store][password] -Xms1G).
-hadoop key1=val1;key2=val2 to manualy set hadoop configuration options


Bridge Mapping

Meta Integration Repository (MIR)
(based on the OMG CWM standard)
"MongoDB NoSQL Database (JSON)"
MongoDB (Database)
Mapping Comments
Attribute Column, Partition Column Columns which are part of the partition on the table.
Comment Comment  
Description Description  
ExtraConstraint Constraint  
InitialValue Initial Value  
Name Name  
NativeId Native Id  
Optional Nullable  
Position Position  
CandidateKey Object Identifier  
Description Description  
Name Name  
Class Document  
Comment Comment  
Description Description  
Name Name  
NativeId Native Id  
NativeType Native Type  
ClassDiagram Diagram  
Description Description  
Name Name  
ClassType Reference  
Description Description  
Name Name  
DatabaseSchema Connection  
Description Description  
Name Name  
DesignPackage Subject Area, Collection  
Comment Comment  
Description Description  
Name Name  
NativeId Native Id  
Index Index  
Description Description  
Name Name  
Join Logical Relationship  
Description Description  
Name Name  
StoreModel MongoDB Model  
Author Author  
Comment Comment  
CreationTime Creation Time  
Description Description  
ModificationTime Modification Time  
Modifier Modifier  
Name Name  
NativeId Native Id  
StoreType Store Type  
SystemMajorVersion System Major Version  
SystemMinorVersion System Minor Version  
SystemReleaseVersion System Release Version  
SystemType System Type  
SystemTypeOld System Type Old  

Last updated on Tue, 10 Jul 2018 18:37:05

Copyright © Meta Integration Technology, Inc. 1997-2018 All Rights Reserved.

Meta Integration® is a registered trademark of Meta Integration Technology, Inc.
All other trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.