Bug 416703 Mongodb : Display correctly the Number data type
data/org.eclipse.birt.data.oda.mongodb/src/org/eclipse/birt/data/oda/mongodb/internal/impl/MDbMetaData.java
import org.eclipse.birt.data.oda.mongodb.nls.Messages;
import org.eclipse.datatools.connectivity.oda.OdaException;
import com.mongodb.Bytes;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.DBCursor;
import com.mongodb.DBObject;
import com.mongodb.MapReduceOutput;
import com.mongodb.MongoException;
import com.mongodb.ServerAddress;
/**
 * Utility class to retrieve the metadata of a MongoDB database and collections.
 */
public class MDbMetaData
{
    public static final int DEFAULT_META_DATA_SEARCH_LIMIT = 1;
    private static final MDbMetaData sm_factory = new MDbMetaData();
    private static final DocumentsMetaData sm_emptyFields = sm_factory.new DocumentsMetaData();
    private static final FieldMetaData sm_emptyFieldMetaData =
            sm_factory.new FieldMetaData( DriverUtil.EMPTY_STRING );
    
    private static final String SYSTEM_NAMESPACE_PREFIX = "system."; 
    static final String FIELD_FULL_NAME_SEPARATOR = "."; 
    private DB m_connectedDB;
    
    public MDbMetaData( Properties connProperties ) throws OdaException
    {
        m_connectedDB = MDbConnection.getMongoDatabase( connProperties );
    }
    public MDbMetaData( DB connectedDB )