Package de.bwaldvogel.mongo
Interface MongoDatabase
- All Known Implementing Classes:
AbstractMongoDatabase,AbstractSynchronizedMongoDatabase
public interface MongoDatabase
-
Method Summary
Modifier and TypeMethodDescriptiondefault MongoCollection<?> createCollectionOrThrowIfExists(String collectionName) createCollectionOrThrowIfExists(String collectionName, CollectionOptions options) voidvoiddropCollection(String collectionName, Oplog oplog) voidhandleClose(io.netty.channel.Channel channel) handleCommand(io.netty.channel.Channel channel, String command, Document query, DatabaseResolver databaseResolver, Oplog oplog) handleQuery(MongoQuery query) booleanisEmpty()voidmoveCollection(MongoDatabase oldDatabase, MongoCollection<?> collection, String newCollectionName) resolveCollection(String collectionName, boolean throwIfNotFound) voidunregisterCollection(String collectionName)
-
Method Details
-
getDatabaseName
String getDatabaseName() -
handleClose
void handleClose(io.netty.channel.Channel channel) -
handleCommand
Document handleCommand(io.netty.channel.Channel channel, String command, Document query, DatabaseResolver databaseResolver, Oplog oplog) -
handleQuery
-
isEmpty
boolean isEmpty() -
createCollectionOrThrowIfExists
-
createCollectionOrThrowIfExists
MongoCollection<?> createCollectionOrThrowIfExists(String collectionName, CollectionOptions options) -
resolveCollection
-
drop
-
dropCollection
-
moveCollection
void moveCollection(MongoDatabase oldDatabase, MongoCollection<?> collection, String newCollectionName) -
unregisterCollection
-