Package com.mongodb

Examples of com.mongodb.ObjectId


        return new MongoStateReader(db, specName, key);
    }

    public void delete(final String specificationName, final String key) {
        final DBCollection instances = db.getCollection(specificationName);
        final ObjectId id = new ObjectId(key);
        final DBObject object = instances.findOne(id);
        instances.remove(object);
        LOG.info("removed " + key);
    }
View Full Code Here


        return new MongoStateReader(db, specName, key);
    }

    public void delete(final String specificationName, final String key) {
        final DBCollection instances = db.getCollection(specificationName);
        final ObjectId id = new ObjectId(key);
        final DBObject object = instances.findOne(id);
        instances.remove(object);
        LOG.info("removed " + key);
    }
View Full Code Here

TOP

Related Classes of com.mongodb.ObjectId

Copyright © 2018 www.massapicom. 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.