Package de.bwaldvogel.mongo.backend
Class AbstractSynchronizedMongoCollection<P>
java.lang.Object
de.bwaldvogel.mongo.backend.AbstractMongoCollection<P>
de.bwaldvogel.mongo.backend.AbstractSynchronizedMongoCollection<P>
- All Implemented Interfaces:
AsyncMongoCollection,MongoCollection<P>
-
Field Summary
Fields inherited from class de.bwaldvogel.mongo.backend.AbstractMongoCollection
cursorRegistry, options -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSynchronizedMongoCollection(MongoDatabase database, String collectionName, CollectionOptions options, CursorRegistry cursorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDocument(Document document) voidaddDocuments(Stream<Document> documents) intdeleteDocuments(Document selector, int limit, Oplog oplog) findAndModify(Document query) handleDistinct(Document query) handleQuery(QueryParameters queryParameters) insertDocuments(List<Document> documents, boolean isOrdered) voidremoveDocument(Document document) voidrenameTo(MongoDatabase newDatabase, String newCollectionName) updateDocuments(Document selector, Document updateQuery, ArrayFilters arrayFilters, boolean isMulti, boolean isUpsert, Oplog oplog) Methods inherited from class de.bwaldvogel.mongo.backend.AbstractMongoCollection
addDocumentInternal, addIndex, count, createCursor, createQueryResult, deriveComparator, documentMatchesQuery, drop, dropIndex, findDocumentPosition, getCollectionName, getDatabase, getDataSize, getDocument, getIdField, getIndexes, getStats, handleUpdate, isNaturalDescending, matchDocuments, matchDocuments, matchDocumentsFromStream, matchDocumentsFromStream, queryDocuments, removeDocument, streamAllDocumentsWithPosition, toString, tracksDataSize, updateDataSize, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.bwaldvogel.mongo.MongoCollection
addDocumentIfMissing, count, deleteDocuments, getDatabaseName, getFullName, getNumIndexes, handleQuery, handleQuery, handleQueryAsStream, handleQueryAsync, insertDocuments, isEmpty, queryAll, queryAllAsStream
-
Constructor Details
-
AbstractSynchronizedMongoCollection
protected AbstractSynchronizedMongoCollection(MongoDatabase database, String collectionName, CollectionOptions options, CursorRegistry cursorRegistry)
-
-
Method Details
-
addDocument
- Specified by:
addDocumentin interfaceMongoCollection<P>- Overrides:
addDocumentin classAbstractMongoCollection<P>
-
addDocuments
-
findAndModify
- Specified by:
findAndModifyin interfaceMongoCollection<P>- Overrides:
findAndModifyin classAbstractMongoCollection<P>
-
handleQuery
- Specified by:
handleQueryin interfaceMongoCollection<P>- Overrides:
handleQueryin classAbstractMongoCollection<P>
-
handleDistinct
- Specified by:
handleDistinctin interfaceMongoCollection<P>- Overrides:
handleDistinctin classAbstractMongoCollection<P>
-
insertDocuments
- Specified by:
insertDocumentsin interfaceMongoCollection<P>- Overrides:
insertDocumentsin classAbstractMongoCollection<P>
-
deleteDocuments
- Specified by:
deleteDocumentsin interfaceMongoCollection<P>- Overrides:
deleteDocumentsin classAbstractMongoCollection<P>
-
updateDocuments
public Document updateDocuments(Document selector, Document updateQuery, ArrayFilters arrayFilters, boolean isMulti, boolean isUpsert, Oplog oplog) - Specified by:
updateDocumentsin interfaceMongoCollection<P>- Overrides:
updateDocumentsin classAbstractMongoCollection<P>
-
removeDocument
- Specified by:
removeDocumentin interfaceMongoCollection<P>- Overrides:
removeDocumentin classAbstractMongoCollection<P>
-
renameTo
- Specified by:
renameToin interfaceMongoCollection<P>- Overrides:
renameToin classAbstractMongoCollection<P>
-