Features of Mongo DB viewer: Tabular view of mongo db data. Text view of mongo db data. Tree view (Document view) of mongo db data. Refine option for filtering our search. Paging facility to limit no of records shown per page. Server Monitoring facility to check for the status (live or down) of all servers added in list. Index viewing facility. GridFS files viewing facility. Database Users viewing facility. Snapshots: Tabular view of mongo db data. Text view of mongo db data. Tree view (Document view) of mongo db data. Refine option for filtering our search. Paging facility to limit no of records shown per page. Server Monitoring facility to check for the status (live or down) of all servers added in list. Index viewing facility. GridFS files viewing facility. Database Users viewing facility.
In Shallow copy all the fields are just copied from source object to destination object. If the source object is containing any field that holds a reference to another object then only the reference will be copied i.e. source and destination objects field(that particular field) will point to same memory location. Java code for Shallow Copy package shallow; class JobDescription { private String designation; public JobDescription(String designation) { this.designation = designation; } public String getDesignation() { return designation; } public void setDesignation(String designation) { this.designation = designation; } @Override public String toString() {...
Syntax and exampless in Interactive shell with its equivalent code in java. Use Database In order to operate over a database we first have to connect to that database. Type : use <database name> Suppose we have to connect to database named “mydb” then type: use mydb Mongo mongo = new Mongo("127.0.0.1",27017); DB db = mongo.getDB("mydb"); Show Collections To see all the currently existing collections in a database. Type: show collections Set<String> collections = db.getCollectionNames(); for(String collection : collections) System.out.println(collection); Create Collection Here we need not to create the table well in advance. Whenever we insert some data in some an arbitrary table the engine checks whether the mentioned table exist or not. If not then the table is automatically created. Drop Collection Type: ...
Comments
Post a Comment