Package de.bwaldvogel.mongo
Interface MongoDatabase
-
- All Known Implementing Classes:
AbstractMongoDatabase
public interface MongoDatabase
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddrop()voiddropCollection(java.lang.String collectionName)java.lang.StringgetDatabaseName()voidhandleClose(io.netty.channel.Channel channel)DocumenthandleCommand(io.netty.channel.Channel channel, java.lang.String command, Document query)voidhandleDelete(MongoDelete delete)voidhandleInsert(MongoInsert insert)java.lang.Iterable<Document>handleQuery(MongoQuery query)voidhandleUpdate(MongoUpdate update)booleanisEmpty()voidmoveCollection(MongoDatabase oldDatabase, MongoCollection<?> collection, java.lang.String newCollectionName)MongoCollection<?>resolveCollection(java.lang.String collectionName, boolean throwIfNotFound)voidunregisterCollection(java.lang.String collectionName)
-
-
-
Method Detail
-
getDatabaseName
java.lang.String getDatabaseName()
-
handleClose
void handleClose(io.netty.channel.Channel channel)
-
handleCommand
Document handleCommand(io.netty.channel.Channel channel, java.lang.String command, Document query)
-
handleQuery
java.lang.Iterable<Document> handleQuery(MongoQuery query)
-
handleInsert
void handleInsert(MongoInsert insert)
-
handleDelete
void handleDelete(MongoDelete delete)
-
handleUpdate
void handleUpdate(MongoUpdate update)
-
isEmpty
boolean isEmpty()
-
resolveCollection
MongoCollection<?> resolveCollection(java.lang.String collectionName, boolean throwIfNotFound)
-
drop
void drop()
-
dropCollection
void dropCollection(java.lang.String collectionName)
-
moveCollection
void moveCollection(MongoDatabase oldDatabase, MongoCollection<?> collection, java.lang.String newCollectionName)
-
unregisterCollection
void unregisterCollection(java.lang.String collectionName)
-
-