This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes MongoDB and the fly likes nested documents checker Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » MongoDB
Bookmark "nested documents checker" Watch "nested documents checker" New topic
Author

nested documents checker

Dmitriy Shafeyev
Greenhorn

Joined: Aug 20, 2014
Posts: 1

Hello everyone,

Is there any way to check does DBobject have nested documents ?
For example, I have tree table and I want to fill it with DBObject document. To parse DBObject document, as a row for this table, and embedded documents as children of this rows.
For this I should know structure of document (to prevent cases when embedded documents is parsed as rows and not as nodes), and I need to check is this just value or nested document (something like isObject).
I use vaadin framework, maybe it has something that could help me.

Thanks in advance.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: nested documents checker