Class MongoDatabase
java.lang.Object
com.codename1.backend.mongo.MongoDatabase
One database of a
MongoClient.-
Method Summary
Modifier and TypeMethodDescriptioncollection(String collection) A collection by name; nothing is sent until it is used.voiddrop()Drops the whole database.getName()The database's name.runCommand(Map command) Runs a command against this database and returns the reply.
-
Method Details
-
getName
The database's name. -
collection
A collection by name; nothing is sent until it is used. -
runCommand
Runs a command against this database and returns the reply.- Throws:
IOException
-
drop
-