Examples of DBPointer


Examples of com.mongodb.DBPointer

        ObjectId id = new ObjectId();
        foo = new BasicDBObject();
        foo.put( "_id", id );
        foo.put( "that", 2 );
        DBPointer ref = new DBPointer( "c", id );
        foo.put( "thiz", ref );
        db.getCollection( "c" ).save( foo );

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.