DropCollectionOperation dropCollection() { return new DropCollectionOperation(namespace, writeConcern); }
/** * Drops (deletes) this collection from the database. Use with care. * * @throws MongoException if the operation failed * @mongodb.driver.manual reference/command/drop/ Drop Command */ public void drop() { try { executor.execute(new DropCollectionOperation(getNamespace(), getWriteConcern()), getReadConcern()); } catch (MongoWriteConcernException e) { throw createWriteConcernException(e); } }
DropCollectionOperation dropCollection() { return new DropCollectionOperation(namespace, writeConcern); }
/** * Drops (deletes) this collection from the database. Use with care. * * @throws MongoException if the operation failed * @mongodb.driver.manual reference/command/drop/ Drop Command */ public void drop() { try { executor.execute(new DropCollectionOperation(getNamespace(), getWriteConcern()), getReadConcern()); } catch (MongoWriteConcernException e) { throw createWriteConcernException(e); } }