public interface MongoDatabase
| Modifier and Type | Method and Description |
|---|---|
MongoCollection<?> |
deregisterCollection(java.lang.String collectionName) |
void |
drop() |
void |
dropCollection(java.lang.String collectionName) |
java.lang.String |
getDatabaseName() |
void |
handleClose(io.netty.channel.Channel channel) |
org.bson.BSONObject |
handleCommand(io.netty.channel.Channel channel,
java.lang.String command,
org.bson.BSONObject query) |
void |
handleDelete(MongoDelete delete) |
void |
handleInsert(MongoInsert insert) |
java.lang.Iterable<org.bson.BSONObject> |
handleQuery(MongoQuery query) |
void |
handleUpdate(MongoUpdate update) |
boolean |
isEmpty() |
void |
moveCollection(MongoDatabase oldDatabase,
MongoCollection<?> collection,
java.lang.String newCollectionName) |
MongoCollection<?> |
resolveCollection(java.lang.String collectionName,
boolean throwIfNotFound) |
java.lang.String getDatabaseName()
void handleClose(io.netty.channel.Channel channel)
org.bson.BSONObject handleCommand(io.netty.channel.Channel channel,
java.lang.String command,
org.bson.BSONObject query)
throws MongoServerException
MongoServerExceptionjava.lang.Iterable<org.bson.BSONObject> handleQuery(MongoQuery query) throws MongoServerException
MongoServerExceptionvoid handleInsert(MongoInsert insert) throws MongoServerException
MongoServerExceptionvoid handleDelete(MongoDelete delete) throws MongoServerException
MongoServerExceptionvoid handleUpdate(MongoUpdate update) throws MongoServerException
MongoServerExceptionboolean isEmpty()
MongoCollection<?> resolveCollection(java.lang.String collectionName, boolean throwIfNotFound) throws MongoServerException
MongoServerExceptionvoid drop() throws MongoServerException
MongoServerExceptionvoid dropCollection(java.lang.String collectionName)
throws MongoServerException
MongoServerExceptionvoid moveCollection(MongoDatabase oldDatabase, MongoCollection<?> collection, java.lang.String newCollectionName) throws MongoServerException
MongoServerExceptionMongoCollection<?> deregisterCollection(java.lang.String collectionName) throws MongoServerException
MongoServerException