Package de.bwaldvogel.mongo.backend
Class AbstractSynchronizedMongoDatabase<P>
java.lang.Object
de.bwaldvogel.mongo.backend.AbstractMongoDatabase<P>
de.bwaldvogel.mongo.backend.AbstractSynchronizedMongoDatabase<P>
- All Implemented Interfaces:
AsyncMongoDatabase,MongoDatabase
public abstract class AbstractSynchronizedMongoDatabase<P> extends AbstractMongoDatabase<P>
-
Field Summary
Fields inherited from class de.bwaldvogel.mongo.backend.AbstractMongoDatabase
cursorRegistry, databaseName, indexes -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSynchronizedMongoDatabase(java.lang.String databaseName, CursorRegistry cursorRegistry) -
Method Summary
Modifier and Type Method Description protected voidclearLastStatus(io.netty.channel.Channel channel)protected intcountIndexes()protected MongoCollection<P>getOrCreateIndexesCollection()protected voidputLastResult(io.netty.channel.Channel channel, Document result)MongoCollection<P>resolveCollection(java.lang.String collectionName, boolean throwIfNotFound)protected MongoCollection<P>resolveOrCreateCollection(java.lang.String collectionName)Methods inherited from class de.bwaldvogel.mongo.backend.AbstractMongoDatabase
createCollectionOrThrowIfExists, drop, dropCollection, dropIndex, getDatabaseName, getFileSize, getFullCollectionNamespace, getStorageSize, handleClose, handleCommand, handleCommandAsync, handleDelete, handleInsert, handleQuery, handleQueryAsync, handleUpdate, initializeNamespacesAndIndexes, isEmpty, isPrimaryKeyIndex, moveCollection, openOrCreateCollection, openOrCreateSecondaryIndex, openOrCreateUniqueIndex, toString, unregisterCollectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.bwaldvogel.mongo.MongoDatabase
handleDeleteAsync, handleInsertAsync, handleUpdateAsync
-
Constructor Details
-
AbstractSynchronizedMongoDatabase
protected AbstractSynchronizedMongoDatabase(java.lang.String databaseName, CursorRegistry cursorRegistry)
-
-
Method Details
-
resolveOrCreateCollection
- Overrides:
resolveOrCreateCollectionin classAbstractMongoDatabase<P>
-
clearLastStatus
protected void clearLastStatus(io.netty.channel.Channel channel)- Overrides:
clearLastStatusin classAbstractMongoDatabase<P>
-
resolveCollection
public MongoCollection<P> resolveCollection(java.lang.String collectionName, boolean throwIfNotFound)- Specified by:
resolveCollectionin interfaceMongoDatabase- Overrides:
resolveCollectionin classAbstractMongoDatabase<P>
-
getOrCreateIndexesCollection
- Overrides:
getOrCreateIndexesCollectionin classAbstractMongoDatabase<P>
-
putLastResult
- Overrides:
putLastResultin classAbstractMongoDatabase<P>
-
countIndexes
protected int countIndexes()- Overrides:
countIndexesin classAbstractMongoDatabase<P>
-